aboutsummaryrefslogtreecommitdiff
path: root/docker/shared/classpath/src
diff options
context:
space:
mode:
Diffstat (limited to 'docker/shared/classpath/src')
-rw-r--r--docker/shared/classpath/src/main/java/HelloWorld.java12
-rw-r--r--docker/shared/classpath/src/main/java/SneakyThrowsExample.java6
2 files changed, 18 insertions, 0 deletions
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");
+ }
+}