fix xml annotation suppression

This commit is contained in:
Grahame Grieve 2024-09-25 10:08:58 -04:00
parent 7b0cf668ae
commit e38f40b0de
1 changed files with 2 additions and 2 deletions

View File

@ -75,14 +75,14 @@ public class XmlLocationAnnotator extends XMLFilterImpl {
@Override
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException {
if (!name.equals("http://javax.xml.xmlconstants/property/accessExternalDTD")) {
if (!name.equals("http://javax.xml.XMLConstants/property/accessExternalDTD")) {
super.setProperty(name, value);
}
}
@Override
public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException {
if (!name.equals("http://javax.xml.xmlconstants/property/accessExternalDTD")) {
if (!name.equals("http://javax.xml.XMLConstants/property/accessExternalDTD")) {
return null;
} else {
return super.getProperty(name);