mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 16:15:16 +00:00
[i804] @UtilityClass fails to properly initialize fields (which @UtilityClass makes static) with initializers, in eclipse.
also updates the changelog more generally, it was lacking some recent work.
This commit is contained in:
1 parent
a4441fb931
commit
de816ebbcd
6 files changed
+27
-5
No files matched your search
@@ -5,7 +5,9 @@ final @lombok.experimental.UtilityClass class UtilityClass {
|
||||
super();
|
||||
}
|
||||
}
|
||||
private static String someField;
|
||||
private static long someField = System.currentTimeMillis();
|
||||
<clinit>() {
|
||||
}
|
||||
static void someMethod() {
|
||||
System.out.println();
|
||||
}
|
||||
@@ -18,6 +20,8 @@ class UtilityInner {
|
||||
static class InnerInner {
|
||||
static final @lombok.experimental.UtilityClass class InnerInnerInner {
|
||||
static int member;
|
||||
<clinit>() {
|
||||
}
|
||||
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");
|
||||
@@ -30,6 +34,8 @@ class UtilityInner {
|
||||
enum UtilityInsideEnum {
|
||||
static final @lombok.experimental.UtilityClass class InsideEnum {
|
||||
static int member;
|
||||
<clinit>() {
|
||||
}
|
||||
private @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") InsideEnum() {
|
||||
super();
|
||||
throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated");
|
||||
@@ -46,6 +52,8 @@ class UtilityInner {
|
||||
interface UtilityInsideInterface {
|
||||
final @lombok.experimental.UtilityClass class InsideInterface {
|
||||
static int member;
|
||||
<clinit>() {
|
||||
}
|
||||
private @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") InsideInterface() {
|
||||
super();
|
||||
throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated");
|
||||
|
||||
Reference in new issue
Block a user