aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/CtField.java
diff options
context:
space:
mode:
authorkuzukami.sh <kuzukami+gihub@altpaper.net>2015-07-13 16:55:01 +0900
committerkuzukami.sh <kuzukami+git@altpaper.net>2015-08-11 01:18:29 +0900
commit2d0d143c0b20b814faed4428916fc06848bdca60 (patch)
tree95f8b9865306879631a3fdddf277d0a9a672f965 /src/main/javassist/CtField.java
parent1e7ce2aebcae694222c16ba1f8f22cfdc4b2eba6 (diff)
downloadjavassist-2d0d143c0b20b814faed4428916fc06848bdca60.tar.gz
javassist-2d0d143c0b20b814faed4428916fc06848bdca60.zip
append an new API of hasAnnotation(String annotClsName)
Diffstat (limited to 'src/main/javassist/CtField.java')
-rw-r--r--src/main/javassist/CtField.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/javassist/CtField.java b/src/main/javassist/CtField.java
index dff540a0..bf5125e2 100644
--- a/src/main/javassist/CtField.java
+++ b/src/main/javassist/CtField.java
@@ -244,11 +244,11 @@ public class CtField extends CtMember {
/**
* Returns true if the class has the specified annotation class.
*
- * @param clz the annotation class.
+ * @param clz the name of annotation class.
* @return <code>true</code> if the annotation is found, otherwise <code>false</code>.
* @since 3.11
*/
- public boolean hasAnnotation(Class clz) {
+ public boolean hasAnnotation(String clz) {
FieldInfo fi = getFieldInfo2();
AnnotationsAttribute ainfo = (AnnotationsAttribute)
fi.getAttribute(AnnotationsAttribute.invisibleTag);