mirror of
https://github.com/tiennm99/lombok.git
synced 2026-08-01 10:20:51 +00:00
66 lines
1.8 KiB
Java
66 lines
1.8 KiB
Java
final @lombok.experimental.UtilityClass class UtilityClass {
|
|
protected static class InnerClass {
|
|
private String innerInnerMember;
|
|
protected InnerClass() {
|
|
super();
|
|
}
|
|
}
|
|
private static long someField = System.currentTimeMillis();
|
|
<clinit>() {
|
|
}
|
|
static void someMethod() {
|
|
System.out.println();
|
|
}
|
|
private @java.lang.SuppressWarnings("all") 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;
|
|
<clinit>() {
|
|
}
|
|
private @java.lang.SuppressWarnings("all") InnerInnerInner() {
|
|
super();
|
|
throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated");
|
|
}
|
|
}
|
|
InnerInner() {
|
|
super();
|
|
}
|
|
}
|
|
enum UtilityInsideEnum {
|
|
static final @lombok.experimental.UtilityClass class InsideEnum {
|
|
static int member;
|
|
<clinit>() {
|
|
}
|
|
private @java.lang.SuppressWarnings("all") InsideEnum() {
|
|
super();
|
|
throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated");
|
|
}
|
|
}
|
|
FOO(),
|
|
BAR(),
|
|
<clinit>() {
|
|
}
|
|
UtilityInsideEnum() {
|
|
super();
|
|
}
|
|
}
|
|
interface UtilityInsideInterface {
|
|
final @lombok.experimental.UtilityClass class InsideInterface {
|
|
static int member;
|
|
<clinit>() {
|
|
}
|
|
private @java.lang.SuppressWarnings("all") InsideInterface() {
|
|
super();
|
|
throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated");
|
|
}
|
|
}
|
|
}
|
|
UtilityInner() {
|
|
super();
|
|
}
|
|
} |