8014891: Redundant setting of external access properties in setFeatures

Reviewed-by: lancea
This commit is contained in:
Joe Wang 2013-05-20 16:11:49 -07:00
parent 98c17c258e
commit 80041e51d1
2 changed files with 0 additions and 8 deletions

View File

@ -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, "");
}
}
}
}

View File

@ -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, "");
}
}
}
}