mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 16:15:16 +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,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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user