GUACAMOLE-497: Merge remove usage of function/classes deprecated within Java 9.

This commit is contained in:
Nick Couchman committed 2018-02-02 09:52:52 -05:00
commit 6ed4dcdeab
5 files changed
+30 -21

No files matched your search

@@ -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);
@@ -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);