#1976. naive fix of the eclipse compiler's error 'The target type of this expression must be a functional interface' in code like 'lombok.val foo = (System.currentTimeMillis() > 0) ? (Runnable)()-> {} : System.out::println;'

This commit is contained in:
Bulgakov Alexander committed 2019-05-07 10:49:25 +03:00
1 parent 8276dee255
commit 06fb1034ea
4 files changed
+37 -6

No files matched your search

@@ -14,6 +14,6 @@ class ValLambda {
}
public void easyLubLambda() {
final @lombok.val java.lang.Runnable foo = ((System.currentTimeMillis() > 0) ? (Runnable) () -> {
} : (Runnable) System.out::println);
} : System.out::println);
}
}