GUACAMOLE-497: Remove usage of now-deprecated container class constructors.

This commit is contained in:
Michael Jumper committed 2018-02-01 19:02:39 -08:00
1 parent 07d0307855
commit 29f838f63d
3 files changed
+3 -5

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