diff options
Diffstat (limited to 'docker/shared')
-rw-r--r-- | docker/shared/classpath/lombok.config (renamed from docker/shared/lombok.config) | 0 | ||||
-rw-r--r-- | docker/shared/classpath/src/main/java/HelloWorld.java | 12 | ||||
-rw-r--r-- | docker/shared/classpath/src/main/java/SneakyThrowsExample.java (renamed from docker/shared/src/main/java/SneakyThrowsExample.java) | 5 | ||||
-rw-r--r-- | docker/shared/modules/lombok.config | 4 | ||||
-rw-r--r-- | docker/shared/modules/src/main/java/foo/HelloWorld.java | 14 | ||||
-rw-r--r-- | docker/shared/modules/src/main/java/module-info.java | 3 | ||||
-rw-r--r-- | docker/shared/src/main/java/HelloWorld.java | 13 |
7 files changed, 35 insertions, 16 deletions
diff --git a/docker/shared/lombok.config b/docker/shared/classpath/lombok.config index 62f16b08..62f16b08 100644 --- a/docker/shared/lombok.config +++ b/docker/shared/classpath/lombok.config 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/src/main/java/SneakyThrowsExample.java b/docker/shared/classpath/src/main/java/SneakyThrowsExample.java index 04811bae..54e1425c 100644 --- a/docker/shared/src/main/java/SneakyThrowsExample.java +++ b/docker/shared/classpath/src/main/java/SneakyThrowsExample.java @@ -1,7 +1,6 @@ public class SneakyThrowsExample { - @lombok.SneakyThrows - public static void main(String... args) { + public static void main(String... args) { throw new java.io.IOException("boo"); - } + } } diff --git a/docker/shared/modules/lombok.config b/docker/shared/modules/lombok.config new file mode 100644 index 00000000..cd8b7392 --- /dev/null +++ b/docker/shared/modules/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/modules/src/main/java/foo/HelloWorld.java b/docker/shared/modules/src/main/java/foo/HelloWorld.java new file mode 100644 index 00000000..9c2abbba --- /dev/null +++ b/docker/shared/modules/src/main/java/foo/HelloWorld.java @@ -0,0 +1,14 @@ +package foo; + +@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/modules/src/main/java/module-info.java b/docker/shared/modules/src/main/java/module-info.java new file mode 100644 index 00000000..2ba5f10b --- /dev/null +++ b/docker/shared/modules/src/main/java/module-info.java @@ -0,0 +1,3 @@ +module foo { + requires static lombok; +}
\ No newline at end of file diff --git a/docker/shared/src/main/java/HelloWorld.java b/docker/shared/src/main/java/HelloWorld.java deleted file mode 100644 index f4c30218..00000000 --- a/docker/shared/src/main/java/HelloWorld.java +++ /dev/null @@ -1,13 +0,0 @@ -@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();
- }
-}
|