Skip to content

Commit

Permalink
add a note; fix alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeWang-Java committed Nov 20, 2023
1 parent c1059a8 commit 4914278
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ private void initJdkCatalogResolver() {
private StaxXMLInputSource resolveWithCatalogStAX(CatalogResolver cr, String cFile,
String publicId, String systemId) {
InputSource is = resolveWithCatalog(cr, cFile, publicId, systemId);
// if (is != null && !is.isEmpty()) {
// note that empty source isn't considered resolved
if (is != null) {
return new StaxXMLInputSource(new XMLInputSource(is, true), true);
}
Expand All @@ -1099,8 +1099,8 @@ private InputSource resolveWithCatalog(CatalogResolver cr, String cFile,
return cr.resolveEntity(publicId, systemId);
} catch (CatalogException e) {
fErrorReporter.reportError(XMLMessageFormatter.XML_DOMAIN,"CatalogException",
new Object[]{SecuritySupport.sanitizePath(cFile)},
XMLErrorReporter.SEVERITY_FATAL_ERROR, e );
new Object[]{SecuritySupport.sanitizePath(cFile)},
XMLErrorReporter.SEVERITY_FATAL_ERROR, e );
}
}
return null;
Expand Down Expand Up @@ -1442,7 +1442,7 @@ public void startEntity(boolean isGE, String name,
fSecurityManager.debugPrint(fLimitAnalyzer);
fErrorReporter.reportError(XMLMessageFormatter.XML_DOMAIN,"EntityExpansionLimit",
new Object[]{fSecurityManager.getLimitValueByIndex(entityExpansionIndex)},
XMLErrorReporter.SEVERITY_FATAL_ERROR );
XMLErrorReporter.SEVERITY_FATAL_ERROR );
// is there anything better to do than reset the counter?
// at least one can envision debugging applications where this might
// be useful...
Expand Down

0 comments on commit 4914278

Please sign in to comment.