Remove publicId field from SchemaResolver class,
authorkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 4 Jul 2011 13:10:38 +0000 (13:10 +0000)
committerkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 4 Jul 2011 13:10:38 +0000 (13:10 +0000)
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

java/org/apache/catalina/util/SchemaResolver.java

index d178290..af12d25 100644 (file)
@@ -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);
         }