commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1088101 - /commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/resource/names/DiscoverNamesInDictionary.java
Date Sat, 02 Apr 2011 20:05:40 GMT
Author: simonetripodi
Date: Sat Apr  2 20:05:40 2011
New Revision: 1088101

URL: http://svn.apache.org/viewvc?rev=1088101&view=rev
Log:
added generics to internal Dictionary

Modified:
    commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/resource/names/DiscoverNamesInDictionary.java

Modified: commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/resource/names/DiscoverNamesInDictionary.java
URL: http://svn.apache.org/viewvc/commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/resource/names/DiscoverNamesInDictionary.java?rev=1088101&r1=1088100&r2=1088101&view=diff
==============================================================================
--- commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/resource/names/DiscoverNamesInDictionary.java
(original)
+++ commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/resource/names/DiscoverNamesInDictionary.java
Sat Apr  2 20:05:40 2011
@@ -43,28 +43,28 @@ public class DiscoverNamesInDictionary
         log = _log;
     }
 
-    private Dictionary dictionary;
+    private Dictionary<String, Object> dictionary;
     
     /** Construct a new resource discoverer
      */
     public DiscoverNamesInDictionary() {
-        setDictionary(new Hashtable());
+        setDictionary(new Hashtable<String, Object>());
     }
     
     /** Construct a new resource discoverer
      */
-    public DiscoverNamesInDictionary(Dictionary dictionary) {
+    public DiscoverNamesInDictionary(Dictionary<String, Object> dictionary) {
         setDictionary(dictionary);
     }
 
-    protected Dictionary getDictionary() {
+    protected Dictionary<String, Object> getDictionary() {
         return dictionary;
     }
 
     /**
      * Specify set of class loaders to be used in searching.
      */
-    public void setDictionary(Dictionary table) {
+    public void setDictionary(Dictionary<String, Object> table) {
         this.dictionary = table;
     }
     



Mime
View raw message