Author: tn
Date: Mon Nov 23 21:23:14 2015
New Revision: 1715956

URL: http://svn.apache.org/viewvc?rev=1715956&view=rev
Log:
Add explicit cast to prevent compilation error with jdk 1.8

Modified:
    
commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/FluentIterableTest.java

Modified: 
commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/FluentIterableTest.java
URL: 
http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/FluentIterableTest.java?rev=1715956&r1=1715955&r2=1715956&view=diff
==============================================================================
--- 
commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/FluentIterableTest.java
 (original)
+++ 
commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/FluentIterableTest.java
 Mon Nov 23 21:23:14 2015
@@ -239,7 +239,7 @@ public class FluentIterableTest {
         assertEquals(expectedSum, sum.get());
 
         try {
-            FluentIterable.of(iterableA).forEach(null);
+            FluentIterable.of(iterableA).forEach((Closure<Integer>) null);
             fail("expecting NullPointerException");
         } catch (NullPointerException npe) {
             // expected


Reply via email to