1.1 --- a/emul/src/main/java/java/lang/Integer.java Fri Sep 28 17:59:03 2012 +0200
1.2 +++ b/emul/src/main/java/java/lang/Integer.java Sun Sep 30 18:29:37 2012 -0700
1.3 @@ -25,8 +25,6 @@
1.4
1.5 package java.lang;
1.6
1.7 -import java.util.Properties;
1.8 -
1.9 /**
1.10 * The {@code Integer} class wraps a value of the primitive type
1.11 * {@code int} in an object. An object of type {@code Integer}
1.12 @@ -602,7 +600,7 @@
1.13 // high value may be configured by property
1.14 int h = 127;
1.15 String integerCacheHighPropValue =
1.16 - sun.misc.VM.getSavedProperty("java.lang.Integer.IntegerCache.high");
1.17 + String.getProperty("java.lang.Integer.IntegerCache.high");
1.18 if (integerCacheHighPropValue != null) {
1.19 int i = parseInt(integerCacheHighPropValue);
1.20 i = Math.max(i, 127);
1.21 @@ -884,7 +882,7 @@
1.22 public static Integer getInteger(String nm, Integer val) {
1.23 String v = null;
1.24 try {
1.25 - v = System.getProperty(nm);
1.26 + v = String.getProperty(nm);
1.27 } catch (IllegalArgumentException e) {
1.28 } catch (NullPointerException e) {
1.29 }