mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 12:16:49 +00:00
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.
This commit is contained in:
1 parent
a65b7320f2
commit
49d1be1312
1 file changed
+3
-1
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user