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); }