aboutsummaryrefslogtreecommitdiffstats
path: root/processing
diff options
context:
space:
mode:
Diffstat (limited to 'processing')
-rw-r--r--processing/src/main/java/com/yahoo/processing/request/Properties.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/processing/src/main/java/com/yahoo/processing/request/Properties.java b/processing/src/main/java/com/yahoo/processing/request/Properties.java
index 5a6131e2245..524c65463e4 100644
--- a/processing/src/main/java/com/yahoo/processing/request/Properties.java
+++ b/processing/src/main/java/com/yahoo/processing/request/Properties.java
@@ -418,7 +418,7 @@ public class Properties implements Cloneable {
if (stringValue.isEmpty())
return defaultValue;
- return Integer.valueOf(stringValue);
+ return new Integer(stringValue);
} catch (IllegalArgumentException e) {
throw new NumberFormatException("Not a valid integer");
}
@@ -484,7 +484,7 @@ public class Properties implements Cloneable {
if (stringValue.isEmpty())
return defaultValue;
- return Long.valueOf(value.toString());
+ return new Long(value.toString());
} catch (IllegalArgumentException e) {
throw new NumberFormatException("Not a valid long");
}
@@ -550,7 +550,7 @@ public class Properties implements Cloneable {
if (stringValue.isEmpty())
return defaultValue;
- return Double.valueOf(value.toString());
+ return new Double(value.toString());
} catch (IllegalArgumentException e) {
throw new NumberFormatException("Not a valid double");
}