Skip to content

Commit

Permalink
CLDR-17371 fix ElementAttributeInfo to use DoctypeXmlStreamWrapper (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
srl295 authored Mar 5, 2024
1 parent a4b612f commit adb07af
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,14 @@ private ElementAttributeInfo(String filename, DtdType type) throws IOException {
is.setSystemId(filename);
// xmlReader.setContentHandler(me);
// xmlReader.setErrorHandler(me);
xmlReader.parse(is);
xmlReader.parse(DoctypeXmlStreamWrapper.wrap(is));
this.elementAttribute2Data =
Collections.unmodifiableMap(getElementAttribute2Data()); // TODO, protect rows
getElement2Children().freeze();
getElement2Parents().freeze();
getElement2Attributes().freeze();
} catch (Exception e) {
// TODO: why is this being caught here?
e.printStackTrace();
} finally {
fis.close();
Expand Down

0 comments on commit adb07af

Please sign in to comment.