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 /config-model | |
parent | e972bce0a7d2acee44ce3be166001913ae97959e (diff) |
Java 9: Replace 'new Double' with 'Double.valueOf'
Diffstat (limited to 'config-model')
2 files changed, 3 insertions, 3 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/builder/xml/dom/DomV20ClientsBuilder.java b/config-model/src/main/java/com/yahoo/vespa/model/builder/xml/dom/DomV20ClientsBuilder.java index d9b3bb87002..64e47ac4f85 100644 --- a/config-model/src/main/java/com/yahoo/vespa/model/builder/xml/dom/DomV20ClientsBuilder.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/builder/xml/dom/DomV20ClientsBuilder.java @@ -275,10 +275,10 @@ public class DomV20ClientsBuilder { retryenabled = Boolean.valueOf(childval); break; case "retrydelay": - retrydelay = new Double(childval); + retrydelay = Double.valueOf(childval); break; case "timeout": - timeout = new Double(childval); + timeout = Double.valueOf(childval); break; case "route": route = childval; diff --git a/config-model/src/main/java/com/yahoo/vespa/model/builder/xml/dom/chains/search/TimeParser.java b/config-model/src/main/java/com/yahoo/vespa/model/builder/xml/dom/chains/search/TimeParser.java index 4c9237b6fc1..71813fb098a 100644 --- a/config-model/src/main/java/com/yahoo/vespa/model/builder/xml/dom/chains/search/TimeParser.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/builder/xml/dom/chains/search/TimeParser.java @@ -24,7 +24,7 @@ public class TimeParser { if (matcher.group(3) != null) { value /= milliSecondsPerSecond; } - return new Double(value); + return Double.valueOf(value); } public static int asMilliSeconds(String timeout) { |