aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-10-07 23:53:16 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-10-07 23:53:16 +0200
commit49d1be131218b1afac22adab2b88cce057fa5d3d (patch)
tree62f0879048fc4af80f45614e712e36d585f138df
parenta65b7320f28a1f53436eed5dd3c9650a9b1dea2a (diff)
downloadlombok-49d1be131218b1afac22adab2b88cce057fa5d3d.tar.gz
lombok-49d1be131218b1afac22adab2b88cce057fa5d3d.tar.bz2
lombok-49d1be131218b1afac22adab2b88cce057fa5d3d.zip
Fixed one of our patch scripts that presumed any convert() method with 1 parameter was always receiving an ASTNode child. One of the methods actually gets an array of those, which isn't of course a subclass of ASTNode itself.
-rw-r--r--src_eclipseagent/lombok/eclipse/agent/EclipsePatcher.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src_eclipseagent/lombok/eclipse/agent/EclipsePatcher.java b/src_eclipseagent/lombok/eclipse/agent/EclipsePatcher.java
index 1f36b02a..c39a7d4e 100644
--- a/src_eclipseagent/lombok/eclipse/agent/EclipsePatcher.java
+++ b/src_eclipseagent/lombok/eclipse/agent/EclipsePatcher.java
@@ -125,7 +125,9 @@ public class EclipsePatcher {
List<String> fullDesc = MethodTarget.decomposeFullDesc(descriptor);
if ("V".equals(fullDesc.get(0))) return false;
- return fullDesc.size() == 2;
+ if (fullDesc.size() < 2) return false;
+ if (!fullDesc.get(1).startsWith("Lorg/eclipse/jdt/internal/compiler/ast/")) return false;
+ return true;
}
@Override public Collection<String> getAffectedClasses() {