mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 10:15:53 +00:00
75 lines
2.0 KiB
Java
75 lines
2.0 KiB
Java
final @lombok.experimental.UtilityClass class UtilityClass {
|
|
protected static class InnerClass {
|
|
private String innerInnerMember;
|
|
protected InnerClass() {
|
|
super();
|
|
}
|
|
}
|
|
protected static class InnerStaticClass {
|
|
private String innerInnerMember;
|
|
protected InnerStaticClass() {
|
|
super();
|
|
}
|
|
}
|
|
private static long someField = System.currentTimeMillis();
|
|
<clinit>() {
|
|
}
|
|
static void someMethod() {
|
|
System.out.println();
|
|
new InnerClass();
|
|
new InnerStaticClass();
|
|
}
|
|
private @java.lang.SuppressWarnings("all") @lombok.Generated 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") @lombok.Generated 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") @lombok.Generated 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") @lombok.Generated InsideInterface() {
|
|
super();
|
|
throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated");
|
|
}
|
|
}
|
|
}
|
|
UtilityInner() {
|
|
super();
|
|
}
|
|
}
|