diff options
author | chibash <chiba@javassist.org> | 2016-08-02 01:36:45 +0900 |
---|---|---|
committer | chibash <chiba@javassist.org> | 2016-08-02 01:36:45 +0900 |
commit | 0ebd27d23e6cf16be080ee2ca89255429f06b5ad (patch) | |
tree | 401a17dece8b046df71370aed39f74f6d11d3ace /src/test/javassist/JvstTest2.java | |
parent | 4ed22b0f7fab7c237d732e446ae43ee9af112df4 (diff) | |
download | javassist-0ebd27d23e6cf16be080ee2ca89255429f06b5ad.tar.gz javassist-0ebd27d23e6cf16be080ee2ca89255429f06b5ad.zip |
fixes calls to a deprecated method in Java 9.rel_3_21_0-java9-ea
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); |