aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/CtBehavior.java
diff options
context:
space:
mode:
authorchibash <chiba@javassist.org>2015-08-12 07:07:26 +0900
committerchibash <chiba@javassist.org>2015-08-12 07:07:26 +0900
commite68077dc870ca45bff88762d191802e6764a9152 (patch)
tree3996a8b828b3703c0bd7b4b159a02e48b8527c65 /src/main/javassist/CtBehavior.java
parent711965fde6fb67c4bf0d3eb16ceb325d91327dd5 (diff)
downloadjavassist-e68077dc870ca45bff88762d191802e6764a9152.tar.gz
javassist-e68077dc870ca45bff88762d191802e6764a9152.zip
fixed minor problems in javadoc etc.
Diffstat (limited to 'src/main/javassist/CtBehavior.java')
-rw-r--r--src/main/javassist/CtBehavior.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/javassist/CtBehavior.java b/src/main/javassist/CtBehavior.java
index f82c0f2e..75af53b8 100644
--- a/src/main/javassist/CtBehavior.java
+++ b/src/main/javassist/CtBehavior.java
@@ -159,20 +159,20 @@ public abstract class CtBehavior extends CtMember {
}
/**
- * Returns true if the class has the specified annotation class.
+ * Returns true if the class has the specified annotation type.
*
- * @param clz the name of annotation class.
+ * @param typeName the name of annotation type.
* @return <code>true</code> if the annotation is found,
* otherwise <code>false</code>.
- * @since 3.11
+ * @since 3.21
*/
- public boolean hasAnnotation(String clz) {
+ public boolean hasAnnotation(String typeName) {
MethodInfo mi = getMethodInfo2();
AnnotationsAttribute ainfo = (AnnotationsAttribute)
mi.getAttribute(AnnotationsAttribute.invisibleTag);
AnnotationsAttribute ainfo2 = (AnnotationsAttribute)
mi.getAttribute(AnnotationsAttribute.visibleTag);
- return CtClassType.hasAnnotationType(clz,
+ return CtClassType.hasAnnotationType(typeName,
getDeclaringClass().getClassPool(),
ainfo, ainfo2);
}