diff options
| author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2015-02-02 04:47:21 +0100 |
|---|---|---|
| committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2015-02-02 04:52:20 +0100 |
| commit | d8da2b9438056e945ecc38d98fed413444c847b3 (patch) | |
| tree | 6d421923faaaf8566a7f827f3a803513c96c602b /test/transform/resource/after-ecj | |
| parent | 46ce592dff458a0561fed900c0659bccb1755a1a (diff) | |
| download | lombok-d8da2b9438056e945ecc38d98fed413444c847b3.tar.gz lombok-d8da2b9438056e945ecc38d98fed413444c847b3.tar.bz2 lombok-d8da2b9438056e945ecc38d98fed413444c847b3.zip | |
added impl for @UtilityClass.
Diffstat (limited to 'test/transform/resource/after-ecj')
| -rw-r--r-- | test/transform/resource/after-ecj/UtilityClass.java | 33 | ||||
| -rw-r--r-- | test/transform/resource/after-ecj/UtilityClassErrors.java | 20 |
2 files changed, 53 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/UtilityClass.java b/test/transform/resource/after-ecj/UtilityClass.java new file mode 100644 index 00000000..c3e06fbc --- /dev/null +++ b/test/transform/resource/after-ecj/UtilityClass.java @@ -0,0 +1,33 @@ +final @lombok.experimental.UtilityClass class UtilityClass { + protected static class InnerClass { + private String innerInnerMember; + protected InnerClass() { + super(); + } + } + private static String someField; + static void someMethod() { + System.out.println(); + } + private @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") UtilityClass() { + super(); + throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated"); + } +} +class UtilityInner { + static class InnerInner { + static final @lombok.experimental.UtilityClass class InnerInnerInner { + static int member; + private @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") InnerInnerInner() { + super(); + throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated"); + } + } + InnerInner() { + super(); + } + } + UtilityInner() { + super(); + } +}
\ No newline at end of file diff --git a/test/transform/resource/after-ecj/UtilityClassErrors.java b/test/transform/resource/after-ecj/UtilityClassErrors.java new file mode 100644 index 00000000..03206592 --- /dev/null +++ b/test/transform/resource/after-ecj/UtilityClassErrors.java @@ -0,0 +1,20 @@ +final @lombok.experimental.UtilityClass class UtilityClassErrors1 { + private static String someField; + protected UtilityClassErrors1() { + super(); + } + static void method() { + @lombok.experimental.UtilityClass class MethodLocalClass { + MethodLocalClass() { + super(); + } + } + } +} +@lombok.experimental.UtilityClass enum UtilityClassErrors2 { + <clinit>() { + } + UtilityClassErrors2() { + super(); + } +} |
