commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1066818 - /commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/DigesterImpl.java
Date Thu, 03 Feb 2011 14:37:57 GMT
Author: simonetripodi
Date: Thu Feb  3 14:37:56 2011
New Revision: 1066818

URL: http://svn.apache.org/viewvc?rev=1066818&view=rev
Log:
using Map interface over direct use of HashMap

Modified:
    commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/DigesterImpl.java

Modified: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/DigesterImpl.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/DigesterImpl.java?rev=1066818&r1=1066817&r2=1066818&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/DigesterImpl.java
(original)
+++ commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/DigesterImpl.java
Thu Feb  3 14:37:56 2011
@@ -100,7 +100,7 @@ final class DigesterImpl implements Dige
     /**
      * Stacks used for interrule communication, indexed by name String
      */
-    private final HashMap<String, Stack<Object>> stacksByName = new HashMap<String,
Stack<Object>>();
+    private final Map<String, Stack<Object>> stacksByName = new HashMap<String,
Stack<Object>>();
 
     /**
      * <p><code>List</code> of <code>InputSource</code> instances
@@ -126,7 +126,7 @@ final class DigesterImpl implements Dige
      * The URLs of entityValidator that have been registered, keyed by the public
      * identifier that corresponds.
      */
-    private final HashMap<String, URL> entityValidator;
+    private final Map<String, URL> entityValidator;
 
     private final XMLReader reader;
 
@@ -163,7 +163,7 @@ final class DigesterImpl implements Dige
             Rules rules,
             ClassLoader classLoader,
             Substitutor substitutor,
-            HashMap<String, URL> entityValidator) {
+            Map<String, URL> entityValidator) {
         this.reader = reader;
         this.reader.setDTDHandler(this);
         this.reader.setContentHandler(this);



Mime
View raw message