< prev index next >

test/testlibrary/jittester/src/jdk/test/lib/jittester/utils/OptionResolver.java

Print this page
rev 11296 : 8157821: [JITtester] OptionResolver and LiteralFactory use deprecated c-tors
Reviewed-by:

@@ -228,11 +228,11 @@
             super(s, l, v, d);
         }
 
         @Override
         public Long parseFromString(String arg) {
-            return new Long(arg);
+            return Long.valueOf(arg);
         }
     }
 
     private class IntOption extends Option<Integer> {
 

@@ -240,11 +240,11 @@
             super(s, l, v, d);
         }
 
         @Override
         public Integer parseFromString(String arg) {
-            return new Integer(arg);
+            return Integer.valueOf(arg);
         }
     }
 
     private class BooleanOption extends Option<Boolean> {
 
< prev index next >