Changeset 486

Show
Ignore:
Timestamp:
03/03/08 09:56:53 (10 months ago)
Author:
chris
Message:

Put back methods compareTo(BigDecimal?) of BigDecimal? and
compareTo(BigInteger?) of BigInteger?. These were removed in error when
adopting the Apache Harmony implementation.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Mika/trunk/core-vm/java/java/math/BigDecimal.java

    r484 r486  
    760760 
    761761    public int compareTo(Object o) throws ClassCastException { 
    762         BigDecimal val = (BigDecimal)o; 
     762        return compareTo((BigDecimal)o); 
     763    } 
     764 
     765    public int compareTo(BigDecimal val) { 
    763766        int thisSign = signum(); 
    764767        int valueSign = val.signum(); 
  • Mika/trunk/core-vm/java/java/math/BigInteger.java

    r484 r486  
    529529        BigInteger val = (BigInteger)o; 
    530530 
     531        return compareTo(val); 
     532    } 
     533 
     534    public int compareTo(BigInteger val) { 
    531535        if (sign > val.sign) { 
    532536            return GREATER;