diff options
author | gjoranv <gjoranv@gmail.com> | 2018-05-02 10:27:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-02 10:27:09 +0200 |
commit | 2680d03d7160d97be2ae85429e7c457160b056fe (patch) | |
tree | fd0112e1748ba73c0efb95dbd6be52c43b04740d /processing | |
parent | 5a47ec87c934f42f66700437c9541ee5be7b669f (diff) |
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 5a6131e2245..524c65463e4 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 Integer.valueOf(stringValue); + return new Integer(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 Long.valueOf(value.toString()); + return new Long(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 Double.valueOf(value.toString()); + return new Double(value.toString()); } catch (IllegalArgumentException e) { throw new NumberFormatException("Not a valid double"); } |