commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1171157 - /commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/CompositeUnaryFunction.java
Date Thu, 15 Sep 2011 16:04:31 GMT
Author: simonetripodi
Date: Thu Sep 15 16:04:31 2011
New Revision: 1171157

URL: http://svn.apache.org/viewvc?rev=1171157&view=rev
Log:
resolved generic types warnings - if Helper<?, A, T> can not  be assumed

Modified:
    commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/CompositeUnaryFunction.java

Modified: commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/CompositeUnaryFunction.java
URL: http://svn.apache.org/viewvc/commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/CompositeUnaryFunction.java?rev=1171157&r1=1171156&r2=1171157&view=diff
==============================================================================
--- commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/CompositeUnaryFunction.java
(original)
+++ commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/CompositeUnaryFunction.java
Thu Sep 15 16:04:31 2011
@@ -95,10 +95,10 @@ public class CompositeUnaryFunction<A, T
          */
         @Override
         public boolean equals(Object obj) {
-            return obj == this || obj instanceof Helper<?, ?, ?> && equals((Helper<?,
A, T>) obj);
+            return obj == this || obj instanceof Helper<?, ?, ?> && equals((Helper<?,
?, ?>) obj);
         }
 
-        private boolean equals(Helper<?, A, T> helper) {
+        private boolean equals(Helper<?, ?, ?> helper) {
             return helper.following.equals(following) && helper.preceding.equals(preceding);
         }
 



Mime
View raw message