summaryrefslogtreecommitdiffstats
path: root/processing
diff options
context:
space:
mode:
authorgjoranv <gv@oath.com>2018-05-01 00:39:16 +0200
committergjoranv <gv@oath.com>2018-05-01 00:39:16 +0200
commite972bce0a7d2acee44ce3be166001913ae97959e (patch)
tree7af51df0cebd1deaca488cb6d14b7bba34311f37 /processing
parent7882a58621091e8a035b675f149c5c533e3c1907 (diff)
Java 9: Replace 'new Long' with 'Long.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 fae0407815b..33c8b861c9c 100644
--- a/processing/src/main/java/com/yahoo/processing/request/Properties.java
+++ b/processing/src/main/java/com/yahoo/processing/request/Properties.java
@@ -484,7 +484,7 @@ public class Properties implements Cloneable {
if (stringValue.isEmpty())
return defaultValue;
- return new Long(value.toString());
+ return Long.valueOf(value.toString());
} catch (IllegalArgumentException e) {
throw new NumberFormatException("Not a valid long");
}