aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/bytecode/PreventNullAnalysisRemover.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2013-04-23 03:08:40 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2013-04-23 03:08:40 +0200
commit350a49b4fc47b45df8cca0b74624d38fbb94c82d (patch)
treeba46dc874e2c5e5c4cfc5ba51f4a64e6e8a39470 /src/core/lombok/bytecode/PreventNullAnalysisRemover.java
parentfcf98722c08ede29b8fecbacbf0218309c9d42ad (diff)
downloadlombok-350a49b4fc47b45df8cca0b74624d38fbb94c82d.tar.gz
lombok-350a49b4fc47b45df8cca0b74624d38fbb94c82d.tar.bz2
lombok-350a49b4fc47b45df8cca0b74624d38fbb94c82d.zip
added temporary debug switch -Dlombok.debugAsmOnly for issue 470.
Diffstat (limited to 'src/core/lombok/bytecode/PreventNullAnalysisRemover.java')
-rw-r--r--src/core/lombok/bytecode/PreventNullAnalysisRemover.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/lombok/bytecode/PreventNullAnalysisRemover.java b/src/core/lombok/bytecode/PreventNullAnalysisRemover.java
index ca608a3e..3342eacb 100644
--- a/src/core/lombok/bytecode/PreventNullAnalysisRemover.java
+++ b/src/core/lombok/bytecode/PreventNullAnalysisRemover.java
@@ -61,6 +61,7 @@ public class PreventNullAnalysisRemover implements PostCompilerTransformation {
if (hit && !"(Ljava/lang/Object;)Ljava/lang/Object;".equals(desc)) hit = false;
if (hit) {
changesMade.set(true);
+ if (System.getProperty("lombok.debugAsmOnly", null) != null) super.visitMethodInsn(opcode, owner, name, desc); // DEBUG for issue 470!
} else {
super.visitMethodInsn(opcode, owner, name, desc);
}