From a4345d11453fc7d80e7814c27605ce1a5caa23f8 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Wed, 8 Jan 2020 01:20:27 +0100 Subject: new versions for docker --- docker/shared/classpath/src/main/java/HelloWorld.java | 12 ++++++++++++ .../shared/classpath/src/main/java/SneakyThrowsExample.java | 6 ++++++ 2 files changed, 18 insertions(+) create mode 100644 docker/shared/classpath/src/main/java/HelloWorld.java create mode 100644 docker/shared/classpath/src/main/java/SneakyThrowsExample.java (limited to 'docker/shared/classpath/src/main/java') 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"); + } +} -- cgit