aboutsummaryrefslogtreecommitdiffstats
path: root/processing
diff options
context:
space:
mode:
authorgjoranv <gv@oath.com>2018-05-01 00:46:49 +0200
committergjoranv <gv@oath.com>2018-05-01 00:46:49 +0200
commite30651407715309753607dd04467c023b4aafe5d (patch)
treef9ca0665e51121abb813c03dfdd5396d64ecc46c /processing
parente972bce0a7d2acee44ce3be166001913ae97959e (diff)
Java 9: Replace 'new Double' with 'Double.valueOf'
Diffstat (limited to 'processing')
-rw-r--r--processing/src/main/java/com/yahoo/processing/request/Properties.java2
1 files changed, 1 insertions, 1 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 33c8b861c9c..5a6131e2245 100644
--- a/processing/src/main/java/com/yahoo/processing/request/Properties.java
+++ b/processing/src/main/java/com/yahoo/processing/request/Properties.java
@@ -550,7 +550,7 @@ public class Properties implements Cloneable {
if (stringValue.isEmpty())
return defaultValue;
- return new Double(value.toString());
+ return Double.valueOf(value.toString());
} catch (IllegalArgumentException e) {
throw new NumberFormatException("Not a valid double");
}