aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/bytecode/annotation/LongMemberValue.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/bytecode/annotation/LongMemberValue.java')
-rw-r--r--src/main/javassist/bytecode/annotation/LongMemberValue.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/main/javassist/bytecode/annotation/LongMemberValue.java b/src/main/javassist/bytecode/annotation/LongMemberValue.java
index 7f0c6fec..3dd29a37 100644
--- a/src/main/javassist/bytecode/annotation/LongMemberValue.java
+++ b/src/main/javassist/bytecode/annotation/LongMemberValue.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;
+
/**
* Long integer constant value.
*
@@ -59,11 +60,13 @@ public class LongMemberValue extends MemberValue {
setValue(0L);
}
+ @Override
Object getValue(ClassLoader cl, ClassPool cp, Method m) {
return Long.valueOf(getValue());
}
- Class getType(ClassLoader cl) {
+ @Override
+ Class<?> getType(ClassLoader cl) {
return long.class;
}
@@ -84,6 +87,7 @@ public class LongMemberValue extends MemberValue {
/**
* Obtains the string representation of this object.
*/
+ @Override
public String toString() {
return Long.toString(getValue());
}
@@ -91,6 +95,7 @@ public class LongMemberValue extends MemberValue {
/**
* Writes the value.
*/
+ @Override
public void write(AnnotationsWriter writer) throws IOException {
writer.constValueIndex(getValue());
}
@@ -98,6 +103,7 @@ public class LongMemberValue extends MemberValue {
/**
* Accepts a visitor.
*/
+ @Override
public void accept(MemberValueVisitor visitor) {
visitor.visitLongMemberValue(this);
}