Repository: guacamole-client Updated Branches: refs/heads/master d6adc07dc -> 6ed4dcdea
GUACAMOLE-497: Remove usage of now-deprecated container class constructors. Project: http://git-wip-us.apache.org/repos/asf/guacamole-client/repo Commit: http://git-wip-us.apache.org/repos/asf/guacamole-client/commit/29f838f6 Tree: http://git-wip-us.apache.org/repos/asf/guacamole-client/tree/29f838f6 Diff: http://git-wip-us.apache.org/repos/asf/guacamole-client/diff/29f838f6 Branch: refs/heads/master Commit: 29f838f63db54a298d75cc7f50cab4292d564f76 Parents: 07d0307 Author: Michael Jumper <mjum...@apache.org> Authored: Thu Feb 1 15:06:56 2018 -0800 Committer: Michael Jumper <mjum...@apache.org> Committed: Thu Feb 1 19:02:39 2018 -0800 ---------------------------------------------------------------------- .../src/main/java/org/apache/guacamole/form/NumericField.java | 2 +- .../org/apache/guacamole/properties/IntegerGuacamoleProperty.java | 3 +-- .../org/apache/guacamole/properties/LongGuacamoleProperty.java | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/guacamole-client/blob/29f838f6/guacamole-ext/src/main/java/org/apache/guacamole/form/NumericField.java ---------------------------------------------------------------------- diff --git a/guacamole-ext/src/main/java/org/apache/guacamole/form/NumericField.java b/guacamole-ext/src/main/java/org/apache/guacamole/form/NumericField.java index cc2e2a5..ce2dba4 100644 --- a/guacamole-ext/src/main/java/org/apache/guacamole/form/NumericField.java +++ b/guacamole-ext/src/main/java/org/apache/guacamole/form/NumericField.java @@ -76,7 +76,7 @@ public class NumericField extends Field { return null; // Parse as integer - return new Integer(str); + return Integer.valueOf(str); } http://git-wip-us.apache.org/repos/asf/guacamole-client/blob/29f838f6/guacamole-ext/src/main/java/org/apache/guacamole/properties/IntegerGuacamoleProperty.java ---------------------------------------------------------------------- diff --git a/guacamole-ext/src/main/java/org/apache/guacamole/properties/IntegerGuacamoleProperty.java b/guacamole-ext/src/main/java/org/apache/guacamole/properties/IntegerGuacamoleProperty.java index a9d3686..2228e2e 100644 --- a/guacamole-ext/src/main/java/org/apache/guacamole/properties/IntegerGuacamoleProperty.java +++ b/guacamole-ext/src/main/java/org/apache/guacamole/properties/IntegerGuacamoleProperty.java @@ -35,8 +35,7 @@ public abstract class IntegerGuacamoleProperty implements GuacamoleProperty<Inte return null; try { - Integer integer = new Integer(value); - return integer; + return Integer.valueOf(value); } catch (NumberFormatException e) { throw new GuacamoleServerException("Property \"" + getName() + "\" must be an integer.", e); http://git-wip-us.apache.org/repos/asf/guacamole-client/blob/29f838f6/guacamole-ext/src/main/java/org/apache/guacamole/properties/LongGuacamoleProperty.java ---------------------------------------------------------------------- diff --git a/guacamole-ext/src/main/java/org/apache/guacamole/properties/LongGuacamoleProperty.java b/guacamole-ext/src/main/java/org/apache/guacamole/properties/LongGuacamoleProperty.java index 5eb5d1f..9c25d6f 100644 --- a/guacamole-ext/src/main/java/org/apache/guacamole/properties/LongGuacamoleProperty.java +++ b/guacamole-ext/src/main/java/org/apache/guacamole/properties/LongGuacamoleProperty.java @@ -35,8 +35,7 @@ public abstract class LongGuacamoleProperty implements GuacamoleProperty<Long> { return null; try { - Long longValue = new Long(value); - return longValue; + return Long.valueOf(value); } catch (NumberFormatException e) { throw new GuacamoleServerException("Property \"" + getName() + "\" must be an long.", e);