From: kkolinko Date: Mon, 4 Jul 2011 13:10:38 +0000 (+0000) Subject: Remove publicId field from SchemaResolver class, X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=9bb03d9c3a229272b43a415dda538327b63cb16a;p=tomcat7.0 Remove publicId field from SchemaResolver class, because is never read and is not cleared when digester is reused. If anyone needs this, this value is available by calling SchemaResolver.digester.getPublicId(). git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1142649 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/catalina/util/SchemaResolver.java b/java/org/apache/catalina/util/SchemaResolver.java index d178290b1..af12d2562 100644 --- a/java/org/apache/catalina/util/SchemaResolver.java +++ b/java/org/apache/catalina/util/SchemaResolver.java @@ -48,13 +48,6 @@ public class SchemaResolver implements EntityResolver { /** - * The public identifier of the DTD we are currently parsing under - * (if any). - */ - protected String publicId = null; - - - /** * Extension to make the difference between DTD and Schema. */ protected String schemaExtension = "xsd"; @@ -103,7 +96,6 @@ public class SchemaResolver implements EntityResolver { throws SAXException { if (publicId != null) { - this.publicId = publicId; digester.setPublicId(publicId); }