mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 10:18:46 +00:00
trivial
This commit is contained in:
1 parent
9e4292dae4
commit
455f892c88
2 files changed
+2
-2
No files matched your search
@@ -1200,7 +1200,7 @@ public class EclipseHandlerUtil {
|
||||
|
||||
if (node != null && node.get() instanceof TypeDeclaration) {
|
||||
TypeDeclaration typeDecl = (TypeDeclaration)node.get();
|
||||
if (typeDecl.methods != null) top: for (AbstractMethodDeclaration def : typeDecl.methods) {
|
||||
if (typeDecl.methods != null) for (AbstractMethodDeclaration def : typeDecl.methods) {
|
||||
if (def instanceof ConstructorDeclaration) {
|
||||
if ((def.bits & ASTNode.IsDefaultConstructor) != 0) continue;
|
||||
|
||||
|
||||
@@ -634,7 +634,7 @@ public class JavacHandlerUtil {
|
||||
node = upToTypeNode(node);
|
||||
|
||||
if (node != null && node.get() instanceof JCClassDecl) {
|
||||
top: for (JCTree def : ((JCClassDecl)node.get()).defs) {
|
||||
for (JCTree def : ((JCClassDecl)node.get()).defs) {
|
||||
if (def instanceof JCMethodDecl) {
|
||||
JCMethodDecl md = (JCMethodDecl) def;
|
||||
if (md.name.contentEquals("<init>")) {
|
||||
|
||||
Reference in new issue
Block a user