From d8da2b9438056e945ecc38d98fed413444c847b3 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Mon, 2 Feb 2015 04:47:21 +0100 Subject: added impl for @UtilityClass. --- .../resource/after-delombok/UtilityClass.java | 26 ++++++++++++++++++++++ .../after-delombok/UtilityClassErrors.java | 12 ++++++++++ 2 files changed, 38 insertions(+) create mode 100644 test/transform/resource/after-delombok/UtilityClass.java create mode 100644 test/transform/resource/after-delombok/UtilityClassErrors.java (limited to 'test/transform/resource/after-delombok') diff --git a/test/transform/resource/after-delombok/UtilityClass.java b/test/transform/resource/after-delombok/UtilityClass.java new file mode 100644 index 00000000..f9fe02a0 --- /dev/null +++ b/test/transform/resource/after-delombok/UtilityClass.java @@ -0,0 +1,26 @@ +final class UtilityClass { + private static String someField; + static void someMethod() { + System.out.println(); + } + protected static class InnerClass { + private String innerInnerMember; + } + @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") + private UtilityClass() { + throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated"); + } +} +class UtilityInner { + static class InnerInner { + static final class InnerInnerInner { + static int member; + @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") + private InnerInnerInner() { + throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated"); + } + } + } +} \ No newline at end of file diff --git a/test/transform/resource/after-delombok/UtilityClassErrors.java b/test/transform/resource/after-delombok/UtilityClassErrors.java new file mode 100644 index 00000000..b19b4e72 --- /dev/null +++ b/test/transform/resource/after-delombok/UtilityClassErrors.java @@ -0,0 +1,12 @@ +final class UtilityClassErrors1 { + private static String someField; + protected UtilityClassErrors1() { + } + static void method() { + class MethodLocalClass { + } + } +} +enum UtilityClassErrors2 { +; +} \ No newline at end of file -- cgit