mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 02:17:12 +00:00
fixed Issue 244:
Between javac 1.6 and 1.7 the type of the field JCClassDecl.extending has changed from JCTree to JCExpression, but the method getExtendsClause() still returns a JCTree. So we use this for now.
This commit is contained in:
1 parent
3b504cf4d0
commit
72cb022231
1 file changed
+1
-1
@@ -136,7 +136,7 @@ public class HandleEqualsAndHashCode extends JavacAnnotationHandler<EqualsAndHas
|
||||
}
|
||||
}
|
||||
|
||||
JCTree extending = ((JCClassDecl)typeNode.get()).extending;
|
||||
JCTree extending = ((JCClassDecl)typeNode.get()).getExtendsClause();
|
||||
if (extending != null) {
|
||||
String p = extending.toString();
|
||||
isDirectDescendantOfObject = p.equals("Object") || p.equals("java.lang.Object");
|
||||
|
||||
Reference in new issue
Block a user