[infinispan-commits] Infinispan SVN: r764 - trunk/core/src/main/java/org/infinispan/util.

infinispan-commits at lists.jboss.org infinispan-commits at lists.jboss.org
Thu Sep 3 05:18:03 EDT 2009


Author: mircea.markus
Date: 2009-09-03 05:18:02 -0400 (Thu, 03 Sep 2009)
New Revision: 764

Modified:
   trunk/core/src/main/java/org/infinispan/util/ImmutableListCopy.java
Log:
findbugs:
Ambiguous invocation of either an inherited or outer method
An inner class is invoking a method that could be resolved to either a inherited method or a method defined in an outer class. By the Java semantics, it will be resolved to invoke the inherited method, but this may not be want you intend. If you really intend to invoke the inherited method, invoke it by invoking the method on super (e.g., invoke super.foo(17)), and thus it will be clear to other readers of your code and to FindBugs that you want to invoke the inherited method, not the method in the outer class.

Modified: trunk/core/src/main/java/org/infinispan/util/ImmutableListCopy.java
===================================================================
--- trunk/core/src/main/java/org/infinispan/util/ImmutableListCopy.java	2009-09-03 09:15:19 UTC (rev 763)
+++ trunk/core/src/main/java/org/infinispan/util/ImmutableListCopy.java	2009-09-03 09:18:02 UTC (rev 764)
@@ -337,7 +337,7 @@
 
       @Override
       public final Iterator<E> iterator() {
-         return listIterator();
+         return super.listIterator();
       }
 
       @Override



More information about the infinispan-commits mailing list