diff options
Diffstat (limited to 'src/lombok/eclipse')
-rw-r--r-- | src/lombok/eclipse/EclipseAST.java | 2 | ||||
-rw-r--r-- | src/lombok/eclipse/EclipseASTVisitor.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lombok/eclipse/EclipseAST.java b/src/lombok/eclipse/EclipseAST.java index 850fb8dc..07ca5f11 100644 --- a/src/lombok/eclipse/EclipseAST.java +++ b/src/lombok/eclipse/EclipseAST.java @@ -302,7 +302,7 @@ public class EclipseAST extends AST<ASTNode> { } private static boolean isComplete(CompilationUnitDeclaration unit) { - return (unit.bits & ASTNode.HasAllMethodBodies) > 0; + return (unit.bits & ASTNode.HasAllMethodBodies) != 0; } @Override protected Node buildTree(ASTNode node, Kind kind) { diff --git a/src/lombok/eclipse/EclipseASTVisitor.java b/src/lombok/eclipse/EclipseASTVisitor.java index aac0d8ed..df7466d5 100644 --- a/src/lombok/eclipse/EclipseASTVisitor.java +++ b/src/lombok/eclipse/EclipseASTVisitor.java @@ -152,14 +152,14 @@ public interface EclipseASTVisitor { Block block = initializer.block; boolean s = (block != null && block.statements != null); print("<%s INITIALIZER: %s>", - (initializer.modifiers & Modifier.STATIC) > 0 ? "static" : "instance", + (initializer.modifiers & Modifier.STATIC) != 0 ? "static" : "instance", s ? "filled" : "blank"); indent++; } @Override public void endVisitInitializer(Node node, Initializer initializer) { indent--; - print("</%s INITIALIZER>", (initializer.modifiers & Modifier.STATIC) > 0 ? "static" : "instance"); + print("</%s INITIALIZER>", (initializer.modifiers & Modifier.STATIC) != 0 ? "static" : "instance"); } @Override public void visitField(Node node, FieldDeclaration field) { |