Bug 1081401: Remove unnecessary autoboxing (recalcitrant sync part). r=rnewman

This commit is contained in:
Chris Kitching
2014-10-11 20:49:46 +01:00
parent 413715a20e
commit a66ddac79f
26 changed files with 45 additions and 48 deletions

View File

@@ -224,7 +224,7 @@ public class ExtendedJSONObject {
return (Integer) val;
}
if (val instanceof Long) {
return Integer.valueOf(((Long) val).intValue());
return ((Long) val).intValue();
}
if (val instanceof String) {
return Integer.parseInt((String) val, 10);
@@ -243,7 +243,7 @@ public class ExtendedJSONObject {
// This is absurd.
if (val instanceof Double) {
double millis = ((Double) val).doubleValue() * 1000;
double millis = ((Double) val) * 1000;
return Double.valueOf(millis).longValue();
}
if (val instanceof Float) {