mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-03 05:20:17 +00:00
added temporary debug switch -Dlombok.debugAsmOnly for issue 470.
This commit is contained in:
1 parent
fcf98722c0
commit
350a49b4fc
2 files changed
+6
-1
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
@@ -61,7 +61,11 @@ public class SneakyThrowsRemover implements PostCompilerTransformation {
|
||||
"(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;".equals(desc)) {
|
||||
|
||||
changesMade.set(true);
|
||||
super.visitInsn(Opcodes.ATHROW);
|
||||
if (System.getProperty("lombok.debugAsmOnly", null) != null) {
|
||||
super.visitMethodInsn(opcode, owner, name, desc); // DEBUG for issue 470!
|
||||
} else {
|
||||
super.visitInsn(Opcodes.ATHROW);
|
||||
}
|
||||
} else {
|
||||
super.visitMethodInsn(opcode, owner, name, desc);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user