diff options
Diffstat (limited to 'docker/shared/classpath')
-rw-r--r-- | docker/shared/classpath/lombok.config | 4 | ||||
-rw-r--r-- | docker/shared/classpath/src/main/java/HelloWorld.java | 12 | ||||
-rw-r--r-- | docker/shared/classpath/src/main/java/SneakyThrowsExample.java | 6 |
3 files changed, 22 insertions, 0 deletions
diff --git a/docker/shared/classpath/lombok.config b/docker/shared/classpath/lombok.config new file mode 100644 index 00000000..62f16b08 --- /dev/null +++ b/docker/shared/classpath/lombok.config @@ -0,0 +1,4 @@ +lombok.addJavaxGeneratedAnnotation = false
+lombok.anyConstructor.suppressConstructorProperties = true
+
+config.stopBubbling = true
\ No newline at end of file diff --git a/docker/shared/classpath/src/main/java/HelloWorld.java b/docker/shared/classpath/src/main/java/HelloWorld.java new file mode 100644 index 00000000..ff12d248 --- /dev/null +++ b/docker/shared/classpath/src/main/java/HelloWorld.java @@ -0,0 +1,12 @@ +@lombok.Data
+public class HelloWorld {
+ private final int answer;
+
+ public static void main(String... args) {
+ System.out.println(new HelloWorld(42).getAnswer());
+ }
+
+ @FunctionalInterface interface Foo {
+ String name();
+ }
+}
diff --git a/docker/shared/classpath/src/main/java/SneakyThrowsExample.java b/docker/shared/classpath/src/main/java/SneakyThrowsExample.java new file mode 100644 index 00000000..54e1425c --- /dev/null +++ b/docker/shared/classpath/src/main/java/SneakyThrowsExample.java @@ -0,0 +1,6 @@ +public class SneakyThrowsExample { + @lombok.SneakyThrows + public static void main(String... args) { + throw new java.io.IOException("boo"); + } +} |