Commit d76cbbc8 by Tom Tromey Committed by Tom Tromey

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

From-SVN: r44478
parent 8597f3dd
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> 2001-07-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* java/util/GregorianCalendar.java (GregorianCalendar): Call * java/util/GregorianCalendar.java (GregorianCalendar): Call
......
...@@ -267,10 +267,8 @@ public final class Integer extends Number implements Comparable ...@@ -267,10 +267,8 @@ public final class Integer extends Number implements Comparable
*/ */
public static String toString(int num, int radix) public static String toString(int num, int radix)
{ {
// Use optimized method for the typical case. if (radix < Character.MIN_RADIX || radix > Character.MAX_RADIX)
if (radix == 10 || radix = 10;
radix < Character.MIN_RADIX || radix > Character.MAX_RADIX)
return toString(num);
// For negative numbers, print out the absolute value w/ a leading '-'. // For negative numbers, print out the absolute value w/ a leading '-'.
// Use an array large enough for a binary number. // Use an array large enough for a binary number.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment