mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 20:15:59 +00:00
[java8] Added tests for using java language features in transformations.
This commit is contained in:
1 parent
8bfed5d51c
commit
22c5e0daaf
6 files changed
+84
No files matched your search
@@ -0,0 +1,19 @@
|
||||
class ValLambda {
|
||||
ValLambda() {
|
||||
super();
|
||||
}
|
||||
public void easyLambda() {
|
||||
final @lombok.val java.lang.Runnable foo = (Runnable) () -> {
|
||||
};
|
||||
}
|
||||
public void easyIntersectionLambda() {
|
||||
final @lombok.val java.lang.Object foo = (Runnable & java.io.Serializable) () -> {
|
||||
};
|
||||
final @lombok.val java.lang.Object bar = (java.io.Serializable & Runnable) () -> {
|
||||
};
|
||||
}
|
||||
public void easyLubLambda() {
|
||||
final @lombok.val java.lang.Runnable foo = ((System.currentTimeMillis() > 0) ? (Runnable) () -> {
|
||||
} : (Runnable) System.out::println);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user