aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2015-02-02 04:47:21 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2015-02-02 04:52:20 +0100
commitd8da2b9438056e945ecc38d98fed413444c847b3 (patch)
tree6d421923faaaf8566a7f827f3a803513c96c602b /test/transform/resource/after-delombok
parent46ce592dff458a0561fed900c0659bccb1755a1a (diff)
downloadlombok-d8da2b9438056e945ecc38d98fed413444c847b3.tar.gz
lombok-d8da2b9438056e945ecc38d98fed413444c847b3.tar.bz2
lombok-d8da2b9438056e945ecc38d98fed413444c847b3.zip
added impl for @UtilityClass.
Diffstat (limited to 'test/transform/resource/after-delombok')
-rw-r--r--test/transform/resource/after-delombok/UtilityClass.java26
-rw-r--r--test/transform/resource/after-delombok/UtilityClassErrors.java12
2 files changed, 38 insertions, 0 deletions
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