fix xml annotation suppression

This commit is contained in:
Grahame Grieve 2024-09-25 10:08:58 -04:00
parent 7b0cf668ae
commit e38f40b0de

View File

@ -75,14 +75,14 @@ public class XmlLocationAnnotator extends XMLFilterImpl {
@Override @Override
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { 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); super.setProperty(name, value);
} }
} }
@Override @Override
public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException { 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; return null;
} else { } else {
return super.getProperty(name); return super.getProperty(name);