From 94440a8bd73f176637a9890dc10df67d26615674 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Sun, 15 Mar 2020 06:59:31 +0100 Subject: [UtilityClass] [issue #2384] Added a test to confirm no issue. added some tests to confirm that lombok makes things static if needed. --- test/transform/resource/after-ecj/UtilityClassInner.java | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/transform/resource/after-ecj/UtilityClassInner.java (limited to 'test/transform/resource/after-ecj') diff --git a/test/transform/resource/after-ecj/UtilityClassInner.java b/test/transform/resource/after-ecj/UtilityClassInner.java new file mode 100644 index 00000000..eebc5d13 --- /dev/null +++ b/test/transform/resource/after-ecj/UtilityClassInner.java @@ -0,0 +1,11 @@ +class UtilityClassInner { + static final @lombok.experimental.UtilityClass class UtilClass { + private @java.lang.SuppressWarnings("all") UtilClass() { + super(); + throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated"); + } + } + UtilityClassInner() { + super(); + } +} \ No newline at end of file -- cgit