aboutsummaryrefslogtreecommitdiff
path: root/src/eclipseAgent/lombok/eclipse/agent/PatchFixes.java
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2010-11-08 02:56:34 +0100
committerRoel Spilker <r.spilker@gmail.com>2010-11-08 02:56:34 +0100
commitd4ae32fd798dcb45c439869e990ff296f3f96036 (patch)
treef363322faf43c5df9b91f1921f729903a9f32ddf /src/eclipseAgent/lombok/eclipse/agent/PatchFixes.java
parent2f202525afae8d43b54d2160a6ef924c3d1d5d91 (diff)
downloadlombok-d4ae32fd798dcb45c439869e990ff296f3f96036.tar.gz
lombok-d4ae32fd798dcb45c439869e990ff296f3f96036.tar.bz2
lombok-d4ae32fd798dcb45c439869e990ff296f3f96036.zip
Little cleanup
Diffstat (limited to 'src/eclipseAgent/lombok/eclipse/agent/PatchFixes.java')
-rw-r--r--src/eclipseAgent/lombok/eclipse/agent/PatchFixes.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/PatchFixes.java b/src/eclipseAgent/lombok/eclipse/agent/PatchFixes.java
index eef6fd9a..14687e32 100644
--- a/src/eclipseAgent/lombok/eclipse/agent/PatchFixes.java
+++ b/src/eclipseAgent/lombok/eclipse/agent/PatchFixes.java
@@ -163,7 +163,7 @@ public class PatchFixes {
} else return;
try {
- LocalDeclaration.class.getDeclaredField("$initCopy").set(variableDecl, init);
+ if (initCopyField != null) initCopyField.set(variableDecl, init);
} catch (Exception e) {
e.printStackTrace(System.out);
// In ecj mode this field isn't there and we don't need the copy anyway, so, we ignore the exception.
@@ -176,7 +176,7 @@ public class PatchFixes {
try {
initCopyField = LocalDeclaration.class.getDeclaredField("$initCopy");
} catch (Throwable t) {
- //ignore - no $generatedBy exists when running in ecj.
+ //ignore - no $initCopy exists when running in ecj.
}
}
@@ -191,7 +191,6 @@ public class PatchFixes {
if (init == null && initCopyField != null) {
try {
init = (Expression) initCopyField.get(local);
- System.out.println("copy = " + init);
} catch (Exception e) {
throw new RuntimeException(e);
}