diff options
author | gjoranv <gjoranv@gmail.com> | 2018-05-01 19:20:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-01 19:20:20 +0200 |
commit | e9aadf4897c303633e029b14867e3466187de8ca (patch) | |
tree | c12c13933a0f84c6840d3011815265349944848a /processing | |
parent | 16ac8c7ba353a77a1c7999ac3ec550b6e180d74c (diff) | |
parent | e30651407715309753607dd04467c023b4aafe5d (diff) |
Merge pull request #5758 from vespa-engine/gjoranv/java9-prep-05
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"); } |