diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-07-27 11:00:31 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-07-27 11:00:31 +0200 |
commit | beb0213b012cde40cf839703e9103a9aad4ebddc (patch) | |
tree | 7f8013af7ed76ddebe2fb7713515960b6631b381 /src/lombok | |
parent | 902607a6abb216a647c33ef8f1de957e7835c267 (diff) | |
download | lombok-beb0213b012cde40cf839703e9103a9aad4ebddc.tar.gz lombok-beb0213b012cde40cf839703e9103a9aad4ebddc.tar.bz2 lombok-beb0213b012cde40cf839703e9103a9aad4ebddc.zip |
[TRIVIAL]
Diffstat (limited to 'src/lombok')
-rw-r--r-- | src/lombok/eclipse/handlers/HandleToString.java | 4 | ||||
-rw-r--r-- | src/lombok/javac/handlers/HandleToString.java | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lombok/eclipse/handlers/HandleToString.java b/src/lombok/eclipse/handlers/HandleToString.java index b18906a5..4cafebb5 100644 --- a/src/lombok/eclipse/handlers/HandleToString.java +++ b/src/lombok/eclipse/handlers/HandleToString.java @@ -104,7 +104,7 @@ public class HandleToString implements EclipseAnnotationHandler<ToString> { try { callSuper = ((Boolean)ToString.class.getMethod("callSuper").getDefaultValue()).booleanValue(); } catch ( Exception ignore ) {} - generateToString(typeNode, errorNode, Collections.<String>emptyList(),includeFieldNames, callSuper, false); + generateToString(typeNode, errorNode, Collections.<String>emptyList(), includeFieldNames, callSuper, false); } public boolean handle(AnnotationValues<ToString> annotation, Annotation ast, Node annotationNode) { @@ -137,7 +137,7 @@ public class HandleToString implements EclipseAnnotationHandler<ToString> { FieldDeclaration fieldDecl = (FieldDeclaration) child.get(); //Skip static fields. if ( (fieldDecl.modifiers & ClassFileConstants.AccStatic) != 0 ) continue; - //Skip excluded fields + //Skip excluded fields. if ( excludes.contains(new String(fieldDecl.name)) ) continue; nodesForToString.add(child); } diff --git a/src/lombok/javac/handlers/HandleToString.java b/src/lombok/javac/handlers/HandleToString.java index 2d50cda5..4b989c68 100644 --- a/src/lombok/javac/handlers/HandleToString.java +++ b/src/lombok/javac/handlers/HandleToString.java @@ -101,7 +101,7 @@ public class HandleToString implements JavacAnnotationHandler<ToString> { try { callSuper = ((Boolean)ToString.class.getMethod("callSuper").getDefaultValue()).booleanValue(); } catch ( Exception ignore ) {} - generateToString(typeNode, errorNode, List.<String>nil(),includeFieldNames, callSuper, false); + generateToString(typeNode, errorNode, List.<String>nil(), includeFieldNames, callSuper, false); } private boolean generateToString(Node typeNode, Node errorNode, List<String> excludes, @@ -123,7 +123,7 @@ public class HandleToString implements JavacAnnotationHandler<ToString> { JCVariableDecl fieldDecl = (JCVariableDecl) child.get(); //Skip static fields. if ( (fieldDecl.mods.flags & Flags.STATIC) != 0 ) continue; - //Skip excluded fields + //Skip excluded fields. if ( excludes.contains(fieldDecl.name.toString()) ) continue; nodesForToString = nodesForToString.append(child); } |