commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject svn commit: r729120 - in /commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins: Declaration.java RuleFinder.java RulesFactory.java
Date Tue, 23 Dec 2008 21:11:39 GMT
Author: rahul
Date: Tue Dec 23 13:11:38 2008
New Revision: 729120

URL: http://svn.apache.org/viewvc?rev=729120&view=rev
Log:
Generics improvements.

Modified:
    commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/Declaration.java
    commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/RuleFinder.java
    commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/RulesFactory.java

Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/Declaration.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/Declaration.java?rev=729120&r1=729119&r2=729120&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/Declaration.java
(original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/Declaration.java
Tue Dec 23 13:11:38 2008
@@ -32,7 +32,7 @@
 public class Declaration {
    
     /** The class of the object to be instantiated. */
-    private Class pluginClass;
+    private Class<?> pluginClass;
 
     /** The name of the class of the object to be instantiated. */
     private String pluginClassName;
@@ -68,7 +68,7 @@
     /**
      * Constructor.
      */
-    public Declaration(Class pluginClass) {
+    public Declaration(Class<?> pluginClass) {
         this.pluginClass = pluginClass;
         this.pluginClassName = pluginClass.getName();
     }
@@ -78,7 +78,7 @@
      * is provided by the caller instead of having the PluginManager
      * "discover" an appropriate one.
      */
-    public Declaration(Class pluginClass, RuleLoader ruleLoader) {
+    public Declaration(Class<?> pluginClass, RuleLoader ruleLoader) {
         this.pluginClass = pluginClass;
         this.pluginClassName = pluginClass.getName();
         this.ruleLoader = ruleLoader;
@@ -129,7 +129,7 @@
      * 
      * @return The pluginClass.
      */
-    public Class getPluginClass() {
+    public Class<?> getPluginClass() {
         return pluginClass;
     }
 

Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/RuleFinder.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/RuleFinder.java?rev=729120&r1=729119&r2=729120&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/RuleFinder.java
(original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/RuleFinder.java
Tue Dec 23 13:11:38 2008
@@ -70,7 +70,7 @@
      */
 
      public abstract RuleLoader findLoader(
-                        Digester d, Class pluginClass, 
+                        Digester d, Class<?> pluginClass, 
                         Properties p) throws PluginException;
 }
 

Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/RulesFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/RulesFactory.java?rev=729120&r1=729119&r2=729120&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/RulesFactory.java
(original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/RulesFactory.java
Tue Dec 23 13:11:38 2008
@@ -50,7 +50,7 @@
      * of rules, but there is something invalid about that source.
      */
 
-     public abstract Rules newRules(Digester d, Class pluginClass) 
+     public abstract Rules newRules(Digester d, Class<?> pluginClass) 
                         throws PluginException;
 }
 



Mime
View raw message