Fix for bug introduced in 48e73a7180 (2 commits ago).

isGenerated was being transplanted twice, resulting in a ClassFormatError.

NB: This is my fault - transplanting was the only fix I introduced on top of Philipp's work.
This commit is contained in:
Reinier Zwitserloot committed 2012-04-23 23:28:16 +02:00
1 parent 34a8a4a080
commit b5625e5698
2 files changed
+5 -1

No files matched your search

@@ -331,7 +331,7 @@ public class EclipsePatcher extends Agent {
.target(new MethodTarget("org.eclipse.jdt.internal.corext.refactoring.rename.TempOccurrenceAnalyzer", "visit", "boolean", "org.eclipse.jdt.core.dom.SimpleName"))
.target(new MethodTarget("org.eclipse.jdt.internal.corext.refactoring.rename.RenameAnalyzeUtil$ProblemNodeFinder$NameNodeVisitor", "visit", "boolean", "org.eclipse.jdt.core.dom.SimpleName"))
.decisionMethod(new Hook("lombok.eclipse.agent.PatchFixes", "isGenerated", "boolean", "org.eclipse.jdt.core.dom.ASTNode"))
.valueMethod(new Hook("lombok.eclipse.agent.PatchFixes", "isGenerated", "boolean", "org.eclipse.jdt.core.dom.ASTNode"))
.valueMethod(new Hook("lombok.eclipse.agent.PatchFixes", "returnTrue", "boolean", "java.lang.Object"))
.request(StackRequest.PARAM1)
.transplant().build());
}
@@ -76,6 +76,10 @@ public class PatchFixes {
return false;
}
public static boolean returnTrue(java.lang.Object object) {
return true;
}
@java.lang.SuppressWarnings({"unchecked", "rawtypes"}) public static java.util.List removeGeneratedNodes(java.util.List list) {
try {
java.util.List realNodes = new java.util.ArrayList(list.size());