diff options
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); } |