diff options
Diffstat (limited to 'src/test/javassist/JvstTest2.java')
-rw-r--r-- | src/test/javassist/JvstTest2.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/javassist/JvstTest2.java b/src/test/javassist/JvstTest2.java index 4ff84784..10d5d3e3 100644 --- a/src/test/javassist/JvstTest2.java +++ b/src/test/javassist/JvstTest2.java @@ -1423,32 +1423,32 @@ public class JvstTest2 extends JvstTestRoot { CtField f = new CtField(CtClass.intType, "sff1", cc); f.setModifiers(Modifier.STATIC | Modifier.FINAL); cc.addField(f, "5"); - assertEquals(new Integer(5), f.getConstantValue()); + assertEquals(Integer.valueOf(5), f.getConstantValue()); f = new CtField(CtClass.longType, "sff2", cc); f.setModifiers(Modifier.STATIC | Modifier.FINAL); cc.addField(f, "6"); - assertEquals(new Long(6), f.getConstantValue()); + assertEquals(Long.valueOf(6), f.getConstantValue()); f = new CtField(CtClass.floatType, "sff3", cc); f.setModifiers(Modifier.STATIC | Modifier.FINAL); cc.addField(f, "7"); - assertEquals(new Float(7.0F), f.getConstantValue()); + assertEquals(Float.valueOf(7.0F), f.getConstantValue()); f = new CtField(CtClass.floatType, "sff4", cc); f.setModifiers(Modifier.STATIC | Modifier.FINAL); cc.addField(f, "8.0"); - assertEquals(new Float(8.0F), f.getConstantValue()); + assertEquals(Float.valueOf(8.0F), f.getConstantValue()); f = new CtField(CtClass.doubleType, "sff5", cc); f.setModifiers(Modifier.STATIC | Modifier.FINAL); cc.addField(f, "9"); - assertEquals(new Double(9.0), f.getConstantValue()); + assertEquals(Double.valueOf(9.0), f.getConstantValue()); f = new CtField(CtClass.doubleType, "sff6", cc); f.setModifiers(Modifier.STATIC | Modifier.FINAL); cc.addField(f, "10.0"); - assertEquals(new Double(10.0), f.getConstantValue()); + assertEquals(Double.valueOf(10.0), f.getConstantValue()); f = new CtField(sloader.get("java.lang.String"), "sff7", cc); f.setModifiers(Modifier.STATIC | Modifier.FINAL); |