Skip to content

Commit

Permalink
Fix BeansXmlValidator#loadXsds to operate on StreamSource types
Browse files Browse the repository at this point in the history
  • Loading branch information
manovotn committed Aug 21, 2024
1 parent 4791fec commit f77149e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions impl/src/main/java/org/jboss/weld/xml/BeansXmlValidator.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ public void fatalError(SAXParseException e) throws SAXException {
}

private static StreamSource[] loadXsds(XmlSchema[] schemas) {
List<Source> xsds = new ArrayList<>();
List<StreamSource> xsds = new ArrayList<>();
for (XmlSchema schema : schemas) {
Source source = loadXsd(schema.getFileName(), schema.getClassLoader());
StreamSource source = loadXs d(schema.getFileName(), schema.getClassLoader());
if (source != null) {
xsds.add(source);
}
Expand Down

0 comments on commit f77149e

Please sign in to comment.