From beb0213b012cde40cf839703e9103a9aad4ebddc Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Mon, 27 Jul 2009 11:00:31 +0200 Subject: [TRIVIAL] --- src/lombok/eclipse/handlers/HandleToString.java | 4 ++-- 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 { try { callSuper = ((Boolean)ToString.class.getMethod("callSuper").getDefaultValue()).booleanValue(); } catch ( Exception ignore ) {} - generateToString(typeNode, errorNode, Collections.emptyList(),includeFieldNames, callSuper, false); + generateToString(typeNode, errorNode, Collections.emptyList(), includeFieldNames, callSuper, false); } public boolean handle(AnnotationValues annotation, Annotation ast, Node annotationNode) { @@ -137,7 +137,7 @@ public class HandleToString implements EclipseAnnotationHandler { 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 { try { callSuper = ((Boolean)ToString.class.getMethod("callSuper").getDefaultValue()).booleanValue(); } catch ( Exception ignore ) {} - generateToString(typeNode, errorNode, List.nil(),includeFieldNames, callSuper, false); + generateToString(typeNode, errorNode, List.nil(), includeFieldNames, callSuper, false); } private boolean generateToString(Node typeNode, Node errorNode, List excludes, @@ -123,7 +123,7 @@ public class HandleToString implements JavacAnnotationHandler { 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); } -- cgit