From a27c48dd5cc6f5d3140bd3b08debca83b47d1e37 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Sun, 21 Jun 2009 18:16:55 +0200 Subject: trivial --- src/lombok/eclipse/EclipseAST.java | 2 +- src/lombok/eclipse/EclipseASTVisitor.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lombok/eclipse') 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 { } 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("", (initializer.modifiers & Modifier.STATIC) > 0 ? "static" : "instance"); + print("", (initializer.modifiers & Modifier.STATIC) != 0 ? "static" : "instance"); } @Override public void visitField(Node node, FieldDeclaration field) { -- cgit