aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/core/AnnotationValues.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-10-16 11:14:56 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-10-16 11:52:21 +0200
commitfdcdcc89d8ac081cb214aab6bb70f9d75101e865 (patch)
treee3841cf59f1f88465c2bf3751d81090eba8f38ff /src/lombok/core/AnnotationValues.java
parent2d3b98e847b9dc1878b657de97fce2f54104776d (diff)
downloadlombok-fdcdcc89d8ac081cb214aab6bb70f9d75101e865.tar.gz
lombok-fdcdcc89d8ac081cb214aab6bb70f9d75101e865.tar.bz2
lombok-fdcdcc89d8ac081cb214aab6bb70f9d75101e865.zip
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.
Diffstat (limited to 'src/lombok/core/AnnotationValues.java')
-rw-r--r--src/lombok/core/AnnotationValues.java6
1 files changed, 4 insertions, 2 deletions
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<A extends Annotation> {
private final Class<A> type;
@@ -295,9 +297,9 @@ public class AnnotationValues<A extends Annotation> {
}
/**
- * 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<String> getRawExpressions(String annotationMethodName) {