mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 10:18:46 +00:00
#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:
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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user