8014891: Redundant setting of external access properties in setFeatures
Reviewed-by: lancea
This commit is contained in:
parent
98c17c258e
commit
80041e51d1
@ -236,10 +236,6 @@ public class DocumentBuilderImpl extends DocumentBuilder
|
||||
String feature = (String) entry.getKey();
|
||||
boolean value = ((Boolean) entry.getValue()).booleanValue();
|
||||
domParser.setFeature(feature, value);
|
||||
if (feature.equals(XMLConstants.FEATURE_SECURE_PROCESSING)) {
|
||||
domParser.setProperty(ACCESS_EXTERNAL_DTD, "");
|
||||
domParser.setProperty(ACCESS_EXTERNAL_SCHEMA, "");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -242,10 +242,6 @@ public class SAXParserImpl extends javax.xml.parsers.SAXParser
|
||||
String feature = (String) entry.getKey();
|
||||
boolean value = ((Boolean) entry.getValue()).booleanValue();
|
||||
xmlReader.setFeature0(feature, value);
|
||||
if (feature.equals(XMLConstants.FEATURE_SECURE_PROCESSING) && value) {
|
||||
xmlReader.setProperty0(ACCESS_EXTERNAL_DTD, "");
|
||||
xmlReader.setProperty0(ACCESS_EXTERNAL_SCHEMA, "");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user