From f75057b7d5fec5631996a5d72b3d03c134e5d11b Mon Sep 17 00:00:00 2001 From: Matej Novotny Date: Wed, 21 Aug 2024 14:41:23 +0200 Subject: [PATCH] Fix BeansXmlValidator#loadXsds to operate on StreamSource types --- impl/src/main/java/org/jboss/weld/xml/BeansXmlValidator.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/impl/src/main/java/org/jboss/weld/xml/BeansXmlValidator.java b/impl/src/main/java/org/jboss/weld/xml/BeansXmlValidator.java index 1918fe350a..64212140b3 100644 --- a/impl/src/main/java/org/jboss/weld/xml/BeansXmlValidator.java +++ b/impl/src/main/java/org/jboss/weld/xml/BeansXmlValidator.java @@ -28,7 +28,6 @@ import java.util.List; import javax.xml.XMLConstants; -import javax.xml.transform.Source; import javax.xml.transform.stream.StreamSource; import javax.xml.validation.Schema; import javax.xml.validation.SchemaFactory; @@ -131,9 +130,9 @@ public void fatalError(SAXParseException e) throws SAXException { } private static StreamSource[] loadXsds(XmlSchema[] schemas) { - List xsds = new ArrayList<>(); + List xsds = new ArrayList<>(); for (XmlSchema schema : schemas) { - Source source = loadXsd(schema.getFileName(), schema.getClassLoader()); + StreamSource source = loadXsd(schema.getFileName(), schema.getClassLoader()); if (source != null) { xsds.add(source); }