diff options
Diffstat (limited to 'src/eclipseAgent/lombok')
-rw-r--r-- | src/eclipseAgent/lombok/eclipse/agent/PatchVal.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/PatchVal.java b/src/eclipseAgent/lombok/eclipse/agent/PatchVal.java index d59ff735..6563c20a 100644 --- a/src/eclipseAgent/lombok/eclipse/agent/PatchVal.java +++ b/src/eclipseAgent/lombok/eclipse/agent/PatchVal.java @@ -120,6 +120,8 @@ public class PatchVal { if (!isVal(local.type, scope)) return false; + if (new Throwable().getStackTrace()[2].getClassName().contains("ForStatement")) return false; + Expression init = local.initialization; if (init == null && Reflection.initCopyField != null) { try { |