aboutsummaryrefslogtreecommitdiff
path: root/docker/shared/classpath/src/main
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2020-01-08 01:20:27 +0100
committerRoel Spilker <r.spilker@gmail.com>2020-01-08 01:32:24 +0100
commita4345d11453fc7d80e7814c27605ce1a5caa23f8 (patch)
treed72ddb8d12c4adc2d78f3d06408c3f7ec486dd01 /docker/shared/classpath/src/main
parent20952446671d78533e3662bfa8206e3801c70b54 (diff)
downloadlombok-a4345d11453fc7d80e7814c27605ce1a5caa23f8.tar.gz
lombok-a4345d11453fc7d80e7814c27605ce1a5caa23f8.tar.bz2
lombok-a4345d11453fc7d80e7814c27605ce1a5caa23f8.zip
new versions for docker
Diffstat (limited to 'docker/shared/classpath/src/main')
-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");
+ }
+}