diff options
author | gjoranv <gv@oath.com> | 2018-04-30 23:47:50 +0200 |
---|---|---|
committer | gjoranv <gv@oath.com> | 2018-04-30 23:47:50 +0200 |
commit | 7882a58621091e8a035b675f149c5c533e3c1907 (patch) | |
tree | bc028893e23cf85eab232ef9e7af3a4569e636b7 /processing | |
parent | a9c3ea1ef9fe3744ad2e93c9c11051510cd89ee3 (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.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 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"); } |