aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/bytecode/annotation/IntegerMemberValue.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/bytecode/annotation/IntegerMemberValue.java')
-rw-r--r--src/main/javassist/bytecode/annotation/IntegerMemberValue.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/main/javassist/bytecode/annotation/IntegerMemberValue.java b/src/main/javassist/bytecode/annotation/IntegerMemberValue.java
index 83e4e70f..538b620c 100644
--- a/src/main/javassist/bytecode/annotation/IntegerMemberValue.java
+++ b/src/main/javassist/bytecode/annotation/IntegerMemberValue.java
@@ -16,11 +16,12 @@
package javassist.bytecode.annotation;
-import javassist.ClassPool;
-import javassist.bytecode.ConstPool;
import java.io.IOException;
import java.lang.reflect.Method;
+import javassist.ClassPool;
+import javassist.bytecode.ConstPool;
+
/**
* Integer constant value.
*
@@ -65,11 +66,13 @@ public class IntegerMemberValue extends MemberValue {
setValue(0);
}
+ @Override
Object getValue(ClassLoader cl, ClassPool cp, Method m) {
return Integer.valueOf(getValue());
}
- Class getType(ClassLoader cl) {
+ @Override
+ Class<?> getType(ClassLoader cl) {
return int.class;
}
@@ -90,6 +93,7 @@ public class IntegerMemberValue extends MemberValue {
/**
* Obtains the string representation of this object.
*/
+ @Override
public String toString() {
return Integer.toString(getValue());
}
@@ -97,6 +101,7 @@ public class IntegerMemberValue extends MemberValue {
/**
* Writes the value.
*/
+ @Override
public void write(AnnotationsWriter writer) throws IOException {
writer.constValueIndex(getValue());
}
@@ -104,6 +109,7 @@ public class IntegerMemberValue extends MemberValue {
/**
* Accepts a visitor.
*/
+ @Override
public void accept(MemberValueVisitor visitor) {
visitor.visitIntegerMemberValue(this);
}