aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/resources/java')
-rw-r--r--src/test/resources/java/lambda/com/example/Lambda.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/resources/java/lambda/com/example/Lambda.java b/src/test/resources/java/lambda/com/example/Lambda.java
new file mode 100644
index 0000000..be8404e
--- /dev/null
+++ b/src/test/resources/java/lambda/com/example/Lambda.java
@@ -0,0 +1,10 @@
+package com.example;
+
+import java.util.function.Function;
+
+public class Lambda {
+ public static int value() {
+ Function<Integer, Integer> function = value -> value * 2;
+ return function.apply(21);
+ }
+}