[TRIVIAL]

This commit is contained in:
Reinier Zwitserloot committed 2009-07-27 11:00:31 +02:00
1 parent 902607a6ab
commit beb0213b01
2 files changed
+4 -4

No files matched your search

@@ -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);
}
@@ -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);
}