diff options
author | Roel Spilker <r.spilker@gmail.com> | 2018-10-15 22:37:18 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2018-10-15 22:37:37 +0200 |
commit | 7ee4ebb1a5cd2a002dc522604303b1291a46bddb (patch) | |
tree | eea73da20cf3ff2cea9ab3c6de68c5c0d63838c3 /test | |
parent | 11322a489bb1428c773c6838e58dcd96c5d7422a (diff) | |
download | lombok-7ee4ebb1a5cd2a002dc522604303b1291a46bddb.tar.gz lombok-7ee4ebb1a5cd2a002dc522604303b1291a46bddb.tar.bz2 lombok-7ee4ebb1a5cd2a002dc522604303b1291a46bddb.zip |
Don't initialize already initialized final fields. Fixes #1829.
Diffstat (limited to 'test')
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 |