aboutsummaryrefslogtreecommitdiff
path: root/src/eclipseAgent/lombok/eclipse/agent
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2010-11-08 18:02:01 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2010-11-08 18:02:01 +0100
commitc318bb7a0ab6b28fef262ea89bf2b7cdc7ac610f (patch)
treed82ffe624e8861b1e5966108a1175554e0f1bef8 /src/eclipseAgent/lombok/eclipse/agent
parent46feeaab85916c8b6de5edee1c67a995331ae97f (diff)
parent6e5acaca49bff5af2b174078fb18b9015ae1bb71 (diff)
downloadlombok-c318bb7a0ab6b28fef262ea89bf2b7cdc7ac610f.tar.gz
lombok-c318bb7a0ab6b28fef262ea89bf2b7cdc7ac610f.tar.bz2
lombok-c318bb7a0ab6b28fef262ea89bf2b7cdc7ac610f.zip
Merge branch 'master' of github.com:rzwitserloot/lombok
Diffstat (limited to 'src/eclipseAgent/lombok/eclipse/agent')
-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);
}