mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 22:15:11 +00:00
added impl for @UtilityClass.
This commit is contained in:
1 parent
46ce592dff
commit
d8da2b9438
18 files changed
+480
-52
No files matched your search
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user