* java/lang/Integer.java: Merged with Classpath.
From-SVN: r44478
This commit is contained in:
parent
8597f3dd89
commit
d76cbbc844
2 changed files with 6 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue