commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1074416 - in /commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3: internal/rulesbinder/FactoryCreateBuilderImpl.java rulesbinder/FactoryCreateBuilder.java
Date Fri, 25 Feb 2011 07:21:24 GMT
Author: simonetripodi
Date: Fri Feb 25 07:21:24 2011
New Revision: 1074416

URL: http://svn.apache.org/viewvc?rev=1074416&view=rev
Log:
changes FactoryCreateBuilder.ofType(Class) signature to humorize javac compiler ()eclipse
compiler did not complain about it

Modified:
    commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/internal/rulesbinder/FactoryCreateBuilderImpl.java
    commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/FactoryCreateBuilder.java

Modified: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/internal/rulesbinder/FactoryCreateBuilderImpl.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/internal/rulesbinder/FactoryCreateBuilderImpl.java?rev=1074416&r1=1074415&r2=1074416&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/internal/rulesbinder/FactoryCreateBuilderImpl.java
(original)
+++ commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/internal/rulesbinder/FactoryCreateBuilderImpl.java
Fri Feb 25 07:21:24 2011
@@ -75,9 +75,10 @@ final class FactoryCreateBuilderImpl
     /**
      * {@inheritDoc}
      */
-    public <T, F extends ObjectCreationFactory<T>> FactoryCreateBuilder ofType(Class<F>
type) {
+    public FactoryCreateBuilder ofType(Class<? extends ObjectCreationFactory<?>>
type) {
         if (type == null) {
-            this.reportError("factoryCreate().ofType(Class<?>)", "NULL Java type not
allowed");
+            this.reportError("factoryCreate().ofType(Class<? extends ObjectCreationFactory<?>>)",
+                    "NULL Java type not allowed");
         }
 
         this.type = type;

Modified: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/FactoryCreateBuilder.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/FactoryCreateBuilder.java?rev=1074416&r1=1074415&r2=1074416&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/FactoryCreateBuilder.java
(original)
+++ commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rulesbinder/FactoryCreateBuilder.java
Fri Feb 25 07:21:24 2011
@@ -41,7 +41,7 @@ public interface FactoryCreateBuilder ex
      * @param type Java class of the object creation factory class
      * @return this builder instance
      */
-    <T, F extends ObjectCreationFactory<T>> FactoryCreateBuilder ofType(Class<F>
type);
+    FactoryCreateBuilder ofType(Class<? extends ObjectCreationFactory<?>> type);
 
     /**
      * Construct a factory create rule using the given, already instantiated, {@link ObjectCreationFactory}.



Mime
View raw message