From 7ee4ebb1a5cd2a002dc522604303b1291a46bddb Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Mon, 15 Oct 2018 22:37:18 +0200 Subject: Don't initialize already initialized final fields. Fixes #1829. --- test/transform/resource/after-delombok/NoArgsConstructorForce.java | 1 + test/transform/resource/after-ecj/NoArgsConstructorForce.java | 1 + test/transform/resource/before/NoArgsConstructorForce.java | 1 + 3 files changed, 3 insertions(+) (limited to 'test/transform/resource') 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 -- cgit