common: Fix compilation error with recent JDT
authorAlexandre Montplaisir <alexmonthy@efficios.com>
Wed, 23 Nov 2016 20:25:03 +0000 (15:25 -0500)
committerAlexandre Montplaisir <alexmonthy@efficios.com>
Wed, 30 Nov 2016 21:24:29 +0000 (16:24 -0500)
An error pops up with the latest integration build. The type
inference seems weird, but we can specify the expected type
manually.

Change-Id: I83da0970e87991138ca8afbb776ce22ab5d46b67
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/85623
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
common/org.eclipse.tracecompass.common.core/src/org/eclipse/tracecompass/common/core/NonNullUtils.java

index e594ea31901a4f6aa679ee89e053a796ef4314e5..50f1d7863d3d9b71931889058c74d93516b3f2e0 100644 (file)
@@ -110,7 +110,7 @@ public final class NonNullUtils {
         if (stream == null) {
             throw new NullPointerException();
         }
-        return checkNotNull(stream.map(t -> checkNotNull(t)));
+        return checkNotNull(stream.<@NonNull T> map(t -> checkNotNull(t)));
     }
 
     /**
This page took 0.024898 seconds and 5 git commands to generate.