summaryrefslogtreecommitdiffstats
path: root/processing
diff options
context:
space:
mode:
authorgjoranv <gv@oath.com>2018-04-30 23:47:50 +0200
committergjoranv <gv@oath.com>2018-04-30 23:47:50 +0200
commit7882a58621091e8a035b675f149c5c533e3c1907 (patch)
treebc028893e23cf85eab232ef9e7af3a4569e636b7 /processing
parenta9c3ea1ef9fe3744ad2e93c9c11051510cd89ee3 (diff)
Java 9: Replace 'new Integer' with 'Integer.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 524c65463e4..fae0407815b 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 new Integer(stringValue);
+ return Integer.valueOf(stringValue);
} catch (IllegalArgumentException e) {
throw new NumberFormatException("Not a valid integer");
}