From fdcdcc89d8ac081cb214aab6bb70f9d75101e865 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Fri, 16 Oct 2009 11:14:56 +0200 Subject: Fixes issue #56 - annotations with shorthand parameters on methods in method-local classes failed to parse correctly due to a (rare) boneheaded design in the javac tree. Also had a bunch of code in doing raw introspection of the Annotation ASTNode. It wasn't doing anything other than causing bugs and cluttering the code. Removed it. --- src/lombok/core/AnnotationValues.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/lombok/core/AnnotationValues.java') diff --git a/src/lombok/core/AnnotationValues.java b/src/lombok/core/AnnotationValues.java index fe16a395..8912ccd8 100644 --- a/src/lombok/core/AnnotationValues.java +++ b/src/lombok/core/AnnotationValues.java @@ -33,6 +33,8 @@ import java.util.Map; /** * Represents a single annotation in a source file and can be used to query the parameters present on it. + * + * @param A The annotation that this class represents, such as {@code lombok.Getter} */ public class AnnotationValues { private final Class type; @@ -295,9 +297,9 @@ public class AnnotationValues { } /** - * Returns the raw expressions used for the provided annotationMethodName. + * Returns the raw expressions used for the provided {@code annotationMethodName}. * - * You should use this method for annotation methods that return Class objects. Remember that + * You should use this method for annotation methods that return {@code Class} objects. Remember that * class literals end in ".class" which you probably want to strip off. */ public List getRawExpressions(String annotationMethodName) { -- cgit