[java8] Added tests for using java language features in transformations.

This commit is contained in:
Roel Spilker committed 2014-05-08 01:14:06 +02:00
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);
}
}