You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ra...@apache.org on 2008/12/23 22:09:14 UTC

svn commit: r729117 - /commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginContext.java

Author: rahul
Date: Tue Dec 23 13:09:13 2008
New Revision: 729117

URL: http://svn.apache.org/viewvc?rev=729117&view=rev
Log:
Generify.

Modified:
    commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginContext.java

Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginContext.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginContext.java?rev=729117&r1=729116&r2=729117&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginContext.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginContext.java Tue Dec 23 13:09:13 2008
@@ -76,7 +76,7 @@
      * indirectly by all PluginCreateRules to locate the custom rules
      * for plugin classes.
      */
-    private List ruleFinders;
+    private List<RuleFinder> ruleFinders;
 
     //------------------- constructors ---------------------------------------
     
@@ -94,12 +94,12 @@
      * It is explicitly permitted for the caller to modify this list
      * by inserting or removing RuleFinder objects.
      */
-    public List getRuleFinders() {
+    public List<RuleFinder> getRuleFinders() {
         if (ruleFinders == null) {
             // when processing a plugin declaration, attempts are made to
             // find custom rules in the order in which the Finder objects
             // are added below. However this list can be modified
-            ruleFinders = new LinkedList();
+            ruleFinders = new LinkedList<RuleFinder>();
             ruleFinders.add(new FinderFromFile());
             ruleFinders.add(new FinderFromResource());
             ruleFinders.add(new FinderFromClass());
@@ -123,7 +123,7 @@
      * it may be better to call #getRuleFinders, and insert a new object into 
      * the start of the list.
      */
-    public void setRuleFinders(List ruleFinders) {
+    public void setRuleFinders(List<RuleFinder> ruleFinders) {
         this.ruleFinders = ruleFinders;
     }