aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/eclipse/handlers/HandleToString.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2012-08-06 22:47:59 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2012-08-06 22:47:59 +0200
commit70317c73841d3e83b4b8008b68bea95753a5275f (patch)
tree1c66ab010930425aa673b3988aa4a5ad3ae1dd13 /src/core/lombok/eclipse/handlers/HandleToString.java
parentd1b0242dc5e38cddd0e1ecc2a089c13e744d75d4 (diff)
downloadlombok-70317c73841d3e83b4b8008b68bea95753a5275f.tar.gz
lombok-70317c73841d3e83b4b8008b68bea95753a5275f.tar.bz2
lombok-70317c73841d3e83b4b8008b68bea95753a5275f.zip
Added @Value and @FieldDefaults implementations for javac and ecj, the annotations including @NonFinal and @PackagePrivate, and some refactors. No tests yet.
Diffstat (limited to 'src/core/lombok/eclipse/handlers/HandleToString.java')
-rw-r--r--src/core/lombok/eclipse/handlers/HandleToString.java12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleToString.java b/src/core/lombok/eclipse/handlers/HandleToString.java
index 26f0e9be..75d4acef 100644
--- a/src/core/lombok/eclipse/handlers/HandleToString.java
+++ b/src/core/lombok/eclipse/handlers/HandleToString.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2009-2011 The Project Lombok Authors.
+ * Copyright (C) 2009-2012 The Project Lombok Authors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -81,13 +81,9 @@ public class HandleToString extends EclipseAnnotationHandler<ToString> {
}
public void generateToStringForType(EclipseNode typeNode, EclipseNode errorNode) {
- for (EclipseNode child : typeNode.down()) {
- if (child.getKind() == Kind.ANNOTATION) {
- if (annotationTypeMatches(ToString.class, child)) {
- //The annotation will make it happen, so we can skip it.
- return;
- }
- }
+ if (hasAnnotation(ToString.class, typeNode)) {
+ //The annotation will make it happen, so we can skip it.
+ return;
}
boolean includeFieldNames = true;