aboutsummaryrefslogtreecommitdiff
path: root/test/transform
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2018-10-15 22:37:18 +0200
committerRoel Spilker <r.spilker@gmail.com>2018-10-15 22:37:37 +0200
commit7ee4ebb1a5cd2a002dc522604303b1291a46bddb (patch)
treeeea73da20cf3ff2cea9ab3c6de68c5c0d63838c3 /test/transform
parent11322a489bb1428c773c6838e58dcd96c5d7422a (diff)
downloadlombok-7ee4ebb1a5cd2a002dc522604303b1291a46bddb.tar.gz
lombok-7ee4ebb1a5cd2a002dc522604303b1291a46bddb.tar.bz2
lombok-7ee4ebb1a5cd2a002dc522604303b1291a46bddb.zip
Don't initialize already initialized final fields. Fixes #1829.
Diffstat (limited to 'test/transform')
-rw-r--r--test/transform/resource/after-delombok/NoArgsConstructorForce.java1
-rw-r--r--test/transform/resource/after-ecj/NoArgsConstructorForce.java1
-rw-r--r--test/transform/resource/before/NoArgsConstructorForce.java1
3 files changed, 3 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/NoArgsConstructorForce.java b/test/transform/resource/after-delombok/NoArgsConstructorForce.java
index 3336ca19..d4bfcda2 100644
--- a/test/transform/resource/after-delombok/NoArgsConstructorForce.java
+++ b/test/transform/resource/after-delombok/NoArgsConstructorForce.java
@@ -3,6 +3,7 @@ public class NoArgsConstructorForce {
private final int[] i;
private final Object[] o;
private final java.util.List<?>[] fullQualifiedList;
+ private final String alreadyInitialized = "yes";
@java.lang.SuppressWarnings("all")
public NoArgsConstructorForce() {
diff --git a/test/transform/resource/after-ecj/NoArgsConstructorForce.java b/test/transform/resource/after-ecj/NoArgsConstructorForce.java
index 850aa8a5..59713673 100644
--- a/test/transform/resource/after-ecj/NoArgsConstructorForce.java
+++ b/test/transform/resource/after-ecj/NoArgsConstructorForce.java
@@ -3,6 +3,7 @@ public @NoArgsConstructor(force = true) class NoArgsConstructorForce {
private final int[] i;
private final Object[] o;
private final java.util.List<?>[] fullQualifiedList;
+ private final String alreadyInitialized = "yes";
public @java.lang.SuppressWarnings("all") NoArgsConstructorForce() {
super();
this.i = null;
diff --git a/test/transform/resource/before/NoArgsConstructorForce.java b/test/transform/resource/before/NoArgsConstructorForce.java
index 48df1a37..6193eb0a 100644
--- a/test/transform/resource/before/NoArgsConstructorForce.java
+++ b/test/transform/resource/before/NoArgsConstructorForce.java
@@ -5,4 +5,5 @@ public class NoArgsConstructorForce {
private final int[] i;
private final Object[] o;
private final java.util.List<?>[] fullQualifiedList;
+ private final String alreadyInitialized = "yes";
} \ No newline at end of file