mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 20:15:09 +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
@@ -10,7 +10,7 @@ class ValLambda {
|
||||
}
|
||||
|
||||
public void easyLubLambda() {
|
||||
lombok.val foo = (System.currentTimeMillis() > 0) ? (Runnable)()-> {} : (Runnable)System.out::println;
|
||||
lombok.val foo = (System.currentTimeMillis() > 0) ? (Runnable)()-> {} : System.out::println;
|
||||
}
|
||||
|
||||
// public void castLubLambda() {
|
||||
|
||||
Reference in new issue
Block a user