diff options
author | gjoranv <gv@oath.com> | 2018-05-01 00:46:49 +0200 |
---|---|---|
committer | gjoranv <gv@oath.com> | 2018-05-01 00:46:49 +0200 |
commit | e30651407715309753607dd04467c023b4aafe5d (patch) | |
tree | f9ca0665e51121abb813c03dfdd5396d64ecc46c /processing | |
parent | e972bce0a7d2acee44ce3be166001913ae97959e (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.java | 2 |
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"); } |