mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUACAMOLE-497: Remove usage of now-deprecated container class constructors.
This commit is contained in:
@@ -76,7 +76,7 @@ public class NumericField extends Field {
|
|||||||
return null;
|
return null;
|
||||||
|
|
||||||
// Parse as integer
|
// Parse as integer
|
||||||
return new Integer(str);
|
return Integer.valueOf(str);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -35,8 +35,7 @@ public abstract class IntegerGuacamoleProperty implements GuacamoleProperty<Inte
|
|||||||
return null;
|
return null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Integer integer = new Integer(value);
|
return Integer.valueOf(value);
|
||||||
return integer;
|
|
||||||
}
|
}
|
||||||
catch (NumberFormatException e) {
|
catch (NumberFormatException e) {
|
||||||
throw new GuacamoleServerException("Property \"" + getName() + "\" must be an integer.", e);
|
throw new GuacamoleServerException("Property \"" + getName() + "\" must be an integer.", e);
|
||||||
|
@@ -35,8 +35,7 @@ public abstract class LongGuacamoleProperty implements GuacamoleProperty<Long> {
|
|||||||
return null;
|
return null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Long longValue = new Long(value);
|
return Long.valueOf(value);
|
||||||
return longValue;
|
|
||||||
}
|
}
|
||||||
catch (NumberFormatException e) {
|
catch (NumberFormatException e) {
|
||||||
throw new GuacamoleServerException("Property \"" + getName() + "\" must be an long.", e);
|
throw new GuacamoleServerException("Property \"" + getName() + "\" must be an long.", e);
|
||||||
|
Reference in New Issue
Block a user