* java/lang/Character.java (forDigit): Formatting fix.

From-SVN: r59781
This commit is contained in:
Tom Tromey 2002-12-03 20:13:43 +00:00 committed by Tom Tromey
parent 2cff4a6e82
commit a50aa79993
2 changed files with 6 additions and 2 deletions

View File

@ -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.

View File

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