You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tn...@apache.org on 2015/11/23 22:23:14 UTC
svn commit: r1715956 -
/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/FluentIterableTest.java
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