fix deprecations

This commit is contained in:
zzz
2018-08-25 13:26:28 +00:00
parent ff551b19fb
commit c3881a811b
5 changed files with 21 additions and 20 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ LongOpt(String name, int has_arg,
if ((has_arg != NO_ARGUMENT) && (has_arg != REQUIRED_ARGUMENT)
&& (has_arg != OPTIONAL_ARGUMENT))
{
Object[] msgArgs = { new Integer(has_arg).toString() };
Object[] msgArgs = { Integer.toString(has_arg) };
throw new IllegalArgumentException(MessageFormat.format(
_messages.getString("getopt.invalidValue"), msgArgs));
}