diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/replaymod/gradle/remap/Transformer.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/com/replaymod/gradle/remap/Transformer.java b/src/main/java/com/replaymod/gradle/remap/Transformer.java index c151b7d..d6ce2f2 100644 --- a/src/main/java/com/replaymod/gradle/remap/Transformer.java +++ b/src/main/java/com/replaymod/gradle/remap/Transformer.java @@ -185,6 +185,15 @@ class Transformer { } return true; } + + @Override + public boolean visit(MethodDeclaration node) { + if (node.getBody() != null && node.getLength() == node.getBody().getLength()) { + // Body exists but is same length as overall definition? -> method was probably generated by lombok + return false; + } + return super.visit(node); + } }); return changed.get(); } |