* java/lang/Character.java (forDigit): Formatting fix.
From-SVN: r59781
This commit is contained in:
parent
2cff4a6e82
commit
a50aa79993
@ -1,3 +1,7 @@
|
||||
2002-12-03 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* java/lang/Character.java (forDigit): Formatting fix.
|
||||
|
||||
2002-12-03 Raif Naffah <raif@fl.net.au>
|
||||
|
||||
* java/security/spec/DSAParameterSpec.java (getP): Return p, not q.
|
||||
|
@ -2079,8 +2079,8 @@ public final class Character implements Serializable, Comparable
|
||||
*/
|
||||
public static char forDigit(int digit, int radix)
|
||||
{
|
||||
if (radix < MIN_RADIX || radix > MAX_RADIX ||
|
||||
digit < 0 || digit >= radix)
|
||||
if (radix < MIN_RADIX || radix > MAX_RADIX
|
||||
|| digit < 0 || digit >= radix)
|
||||
return '\0';
|
||||
return (char) (digit < 10 ? ('0' + digit) : ('a' - 10 + digit));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user