tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r374196 - in /tomcat/container/branches/tc4.1.x/catalina/src/share/org/apache/catalina/realm: MemoryRealm.java MemoryRuleSet.java
Date Wed, 01 Feb 2006 22:18:16 GMT
Author: markt
Date: Wed Feb  1 14:18:12 2006
New Revision: 374196

URL: http://svn.apache.org/viewcvs?rev=374196&view=rev
Log:
Fix digester deprecation warnings in o.a.c.realm using approach suggested in digester javadocs

Modified:
    tomcat/container/branches/tc4.1.x/catalina/src/share/org/apache/catalina/realm/MemoryRealm.java
    tomcat/container/branches/tc4.1.x/catalina/src/share/org/apache/catalina/realm/MemoryRuleSet.java

Modified: tomcat/container/branches/tc4.1.x/catalina/src/share/org/apache/catalina/realm/MemoryRealm.java
URL: http://svn.apache.org/viewcvs/tomcat/container/branches/tc4.1.x/catalina/src/share/org/apache/catalina/realm/MemoryRealm.java?rev=374196&r1=374195&r2=374196&view=diff
==============================================================================
--- tomcat/container/branches/tc4.1.x/catalina/src/share/org/apache/catalina/realm/MemoryRealm.java
(original)
+++ tomcat/container/branches/tc4.1.x/catalina/src/share/org/apache/catalina/realm/MemoryRealm.java
Wed Feb  1 14:18:12 2006
@@ -210,7 +210,6 @@
 
         if (digester == null) {
             digester = new Digester();
-            digester.setDebug(this.debug);
             digester.setValidating(false);
             digester.addRuleSet(new MemoryRuleSet());
         }

Modified: tomcat/container/branches/tc4.1.x/catalina/src/share/org/apache/catalina/realm/MemoryRuleSet.java
URL: http://svn.apache.org/viewcvs/tomcat/container/branches/tc4.1.x/catalina/src/share/org/apache/catalina/realm/MemoryRuleSet.java?rev=374196&r1=374195&r2=374196&view=diff
==============================================================================
--- tomcat/container/branches/tc4.1.x/catalina/src/share/org/apache/catalina/realm/MemoryRuleSet.java
(original)
+++ tomcat/container/branches/tc4.1.x/catalina/src/share/org/apache/catalina/realm/MemoryRuleSet.java
Wed Feb  1 14:18:12 2006
@@ -88,9 +88,7 @@
      */
     public void addRuleInstances(Digester digester) {
 
-        digester.addRule
-            (prefix + "user",
-             new MemoryUserRule(digester));
+        digester.addRule(prefix + "user", new MemoryUserRule());
 
     }
 
@@ -102,18 +100,6 @@
  * Private class used when parsing the XML database file.
  */
 final class MemoryUserRule extends Rule {
-
-
-    /**
-     * Construct a new instance of this <code>Rule</code>.
-     *
-     * @param digester The <code>Digester</code> we are associated with.
-     */
-    public MemoryUserRule(Digester digester) {
-
-        super(digester);
-
-    }
 
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message