aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/bytecode/annotation
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/bytecode/annotation')
-rw-r--r--src/main/javassist/bytecode/annotation/AnnotationImpl.java4
-rw-r--r--src/main/javassist/bytecode/annotation/BooleanMemberValue.java2
-rw-r--r--src/main/javassist/bytecode/annotation/ByteMemberValue.java2
-rw-r--r--src/main/javassist/bytecode/annotation/CharMemberValue.java2
-rw-r--r--src/main/javassist/bytecode/annotation/DoubleMemberValue.java2
-rw-r--r--src/main/javassist/bytecode/annotation/FloatMemberValue.java2
-rw-r--r--src/main/javassist/bytecode/annotation/IntegerMemberValue.java2
-rw-r--r--src/main/javassist/bytecode/annotation/LongMemberValue.java2
-rw-r--r--src/main/javassist/bytecode/annotation/ShortMemberValue.java2
9 files changed, 10 insertions, 10 deletions
diff --git a/src/main/javassist/bytecode/annotation/AnnotationImpl.java b/src/main/javassist/bytecode/annotation/AnnotationImpl.java
index dabf1f44..babac927 100644
--- a/src/main/javassist/bytecode/annotation/AnnotationImpl.java
+++ b/src/main/javassist/bytecode/annotation/AnnotationImpl.java
@@ -131,12 +131,12 @@ public class AnnotationImpl implements InvocationHandler {
if (Object.class == method.getDeclaringClass()) {
if ("equals".equals(name)) {
Object obj = args[0];
- return new Boolean(checkEquals(obj));
+ return Boolean.valueOf(checkEquals(obj));
}
else if ("toString".equals(name))
return annotation.toString();
else if ("hashCode".equals(name))
- return new Integer(hashCode());
+ return Integer.valueOf(hashCode());
}
else if ("annotationType".equals(name)
&& method.getParameterTypes().length == 0)
diff --git a/src/main/javassist/bytecode/annotation/BooleanMemberValue.java b/src/main/javassist/bytecode/annotation/BooleanMemberValue.java
index 17756900..b005ad5a 100644
--- a/src/main/javassist/bytecode/annotation/BooleanMemberValue.java
+++ b/src/main/javassist/bytecode/annotation/BooleanMemberValue.java
@@ -59,7 +59,7 @@ public class BooleanMemberValue extends MemberValue {
}
Object getValue(ClassLoader cl, ClassPool cp, Method m) {
- return new Boolean(getValue());
+ return Boolean.valueOf(getValue());
}
Class getType(ClassLoader cl) {
diff --git a/src/main/javassist/bytecode/annotation/ByteMemberValue.java b/src/main/javassist/bytecode/annotation/ByteMemberValue.java
index 63aad72a..d0fb5c61 100644
--- a/src/main/javassist/bytecode/annotation/ByteMemberValue.java
+++ b/src/main/javassist/bytecode/annotation/ByteMemberValue.java
@@ -59,7 +59,7 @@ public class ByteMemberValue extends MemberValue {
}
Object getValue(ClassLoader cl, ClassPool cp, Method m) {
- return new Byte(getValue());
+ return Byte.valueOf(getValue());
}
Class getType(ClassLoader cl) {
diff --git a/src/main/javassist/bytecode/annotation/CharMemberValue.java b/src/main/javassist/bytecode/annotation/CharMemberValue.java
index 1b991d29..ce5d4199 100644
--- a/src/main/javassist/bytecode/annotation/CharMemberValue.java
+++ b/src/main/javassist/bytecode/annotation/CharMemberValue.java
@@ -60,7 +60,7 @@ public class CharMemberValue extends MemberValue {
}
Object getValue(ClassLoader cl, ClassPool cp, Method m) {
- return new Character(getValue());
+ return Character.valueOf(getValue());
}
Class getType(ClassLoader cl) {
diff --git a/src/main/javassist/bytecode/annotation/DoubleMemberValue.java b/src/main/javassist/bytecode/annotation/DoubleMemberValue.java
index f8b417fa..0f18a72d 100644
--- a/src/main/javassist/bytecode/annotation/DoubleMemberValue.java
+++ b/src/main/javassist/bytecode/annotation/DoubleMemberValue.java
@@ -61,7 +61,7 @@ public class DoubleMemberValue extends MemberValue {
}
Object getValue(ClassLoader cl, ClassPool cp, Method m) {
- return new Double(getValue());
+ return Double.valueOf(getValue());
}
Class getType(ClassLoader cl) {
diff --git a/src/main/javassist/bytecode/annotation/FloatMemberValue.java b/src/main/javassist/bytecode/annotation/FloatMemberValue.java
index 35152fdd..3bf07ef0 100644
--- a/src/main/javassist/bytecode/annotation/FloatMemberValue.java
+++ b/src/main/javassist/bytecode/annotation/FloatMemberValue.java
@@ -61,7 +61,7 @@ public class FloatMemberValue extends MemberValue {
}
Object getValue(ClassLoader cl, ClassPool cp, Method m) {
- return new Float(getValue());
+ return Float.valueOf(getValue());
}
Class getType(ClassLoader cl) {
diff --git a/src/main/javassist/bytecode/annotation/IntegerMemberValue.java b/src/main/javassist/bytecode/annotation/IntegerMemberValue.java
index 6783b827..83e4e70f 100644
--- a/src/main/javassist/bytecode/annotation/IntegerMemberValue.java
+++ b/src/main/javassist/bytecode/annotation/IntegerMemberValue.java
@@ -66,7 +66,7 @@ public class IntegerMemberValue extends MemberValue {
}
Object getValue(ClassLoader cl, ClassPool cp, Method m) {
- return new Integer(getValue());
+ return Integer.valueOf(getValue());
}
Class getType(ClassLoader cl) {
diff --git a/src/main/javassist/bytecode/annotation/LongMemberValue.java b/src/main/javassist/bytecode/annotation/LongMemberValue.java
index eafb5b82..7f0c6fec 100644
--- a/src/main/javassist/bytecode/annotation/LongMemberValue.java
+++ b/src/main/javassist/bytecode/annotation/LongMemberValue.java
@@ -60,7 +60,7 @@ public class LongMemberValue extends MemberValue {
}
Object getValue(ClassLoader cl, ClassPool cp, Method m) {
- return new Long(getValue());
+ return Long.valueOf(getValue());
}
Class getType(ClassLoader cl) {
diff --git a/src/main/javassist/bytecode/annotation/ShortMemberValue.java b/src/main/javassist/bytecode/annotation/ShortMemberValue.java
index 909c09ee..82a6f59e 100644
--- a/src/main/javassist/bytecode/annotation/ShortMemberValue.java
+++ b/src/main/javassist/bytecode/annotation/ShortMemberValue.java
@@ -60,7 +60,7 @@ public class ShortMemberValue extends MemberValue {
}
Object getValue(ClassLoader cl, ClassPool cp, Method m) {
- return new Short(getValue());
+ return Short.valueOf(getValue());
}
Class getType(ClassLoader cl) {