aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-06-21 18:16:55 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-06-21 18:16:55 +0200
commita27c48dd5cc6f5d3140bd3b08debca83b47d1e37 (patch)
tree920ef71b8ed302613ca5542452315ba43148300a
parentb8d9c9ed9771bbeed49f1fb2659e07a20559a25b (diff)
downloadlombok-a27c48dd5cc6f5d3140bd3b08debca83b47d1e37.tar.gz
lombok-a27c48dd5cc6f5d3140bd3b08debca83b47d1e37.tar.bz2
lombok-a27c48dd5cc6f5d3140bd3b08debca83b47d1e37.zip
trivial
-rw-r--r--src/lombok/eclipse/EclipseAST.java2
-rw-r--r--src/lombok/eclipse/EclipseASTVisitor.java4
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) {