diff options
author | gjoranv <gjoranv@gmail.com> | 2018-05-02 12:23:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-02 12:23:17 +0200 |
commit | 8e80aede65732210a72dbdfe6e7863ff502bd5ac (patch) | |
tree | f8b7d0da3fc9e28a7cfed66c6154ee603ba7c60f /processing | |
parent | bbb5bcd8fa10bde6d3275e68c54b0a83c2ab94ad (diff) |
Revert "Revert "Gjoranv/java9 prep 05""
Diffstat (limited to 'processing')
-rw-r--r-- | processing/src/main/java/com/yahoo/processing/request/Properties.java | 6 |
1 files changed, 3 insertions, 3 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..5a6131e2245 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"); } @@ -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"); } @@ -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"); } |