aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/CtMember.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/CtMember.java')
-rw-r--r--src/main/javassist/CtMember.java23
1 files changed, 18 insertions, 5 deletions
diff --git a/src/main/javassist/CtMember.java b/src/main/javassist/CtMember.java
index 3c5da768..8de480c9 100644
--- a/src/main/javassist/CtMember.java
+++ b/src/main/javassist/CtMember.java
@@ -29,20 +29,33 @@ public abstract class CtMember {
* at the same time.
*/
static class Cache extends CtMember {
+ @Override
protected void extendToString(StringBuffer buffer) {}
+ @Override
public boolean hasAnnotation(String clz) { return false; }
- public Object getAnnotation(Class clz)
+ @Override
+ public Object getAnnotation(Class<?> clz)
throws ClassNotFoundException { return null; }
+ @Override
public Object[] getAnnotations()
throws ClassNotFoundException { return null; }
+ @Override
public byte[] getAttribute(String name) { return null; }
+ @Override
public Object[] getAvailableAnnotations() { return null; }
+ @Override
public int getModifiers() { return 0; }
+ @Override
public String getName() { return null; }
+ @Override
public String getSignature() { return null; }
+ @Override
public void setAttribute(String name, byte[] data) {}
+ @Override
public void setModifiers(int mod) {}
+ @Override
public String getGenericSignature() { return null; }
+ @Override
public void setGenericSignature(String sig) {}
private CtMember methodTail;
@@ -120,8 +133,7 @@ public abstract class CtMember {
break;
}
- else
- m = m.next;
+ m = m.next;
}
}
}
@@ -141,6 +153,7 @@ public abstract class CtMember {
*/
void nameReplaced() {}
+ @Override
public String toString() {
StringBuffer buffer = new StringBuffer(getClass().getName());
buffer.append("@");
@@ -214,7 +227,7 @@ public abstract class CtMember {
* @return <code>true</code> if the annotation is found, otherwise <code>false</code>.
* @since 3.11
*/
- public boolean hasAnnotation(Class clz) {
+ public boolean hasAnnotation(Class<?> clz) {
return hasAnnotation(clz.getName());
}
@@ -238,7 +251,7 @@ public abstract class CtMember {
* @return the annotation if found, otherwise <code>null</code>.
* @since 3.11
*/
- public abstract Object getAnnotation(Class annotationType) throws ClassNotFoundException;
+ public abstract Object getAnnotation(Class<?> annotationType) throws ClassNotFoundException;
/**
* Returns the annotations associated with this member.