* java/lang/Integer.java: Merged with Classpath.

From-SVN: r44478
This commit is contained in:
Tom Tromey 2001-07-30 17:58:32 +00:00 committed by Tom Tromey
parent 8597f3dd89
commit d76cbbc844
2 changed files with 6 additions and 4 deletions

View file

@ -1,3 +1,7 @@
2001-07-30 Tom Tromey <tromey@redhat.com>
* java/lang/Integer.java: Merged with Classpath.
2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* java/util/GregorianCalendar.java (GregorianCalendar): Call

View file

@ -267,10 +267,8 @@ public final class Integer extends Number implements Comparable
*/
public static String toString(int num, int radix)
{
// Use optimized method for the typical case.
if (radix == 10 ||
radix < Character.MIN_RADIX || radix > Character.MAX_RADIX)
return toString(num);
if (radix < Character.MIN_RADIX || radix > Character.MAX_RADIX)
radix = 10;
// For negative numbers, print out the absolute value w/ a leading '-'.
// Use an array large enough for a binary number.