Recommendation by the WebSphere Application Migration Tool:
Use the BigDecimal toPlainString() method explicitly when deriving a string value
The behavior of the method toString() in BigDecimal is changed from J2SE 1.4 to 1.5
Java 1.4.2
String | toString() Returns the string representation of this BigDecimal. |
Java 1.5
String | toString() Returns the string representation of this BigDecimal, using scientific notation if an exponent is needed. |
Reference:
Java 1.4.2: http://docs.oracle.com/javase/1.4.2/docs/api/java/math/BigDecimal.html
Jave 1.5: http://docs.oracle.com/javase/1.5.0/docs/api/java/math/BigDecimal.html
No comments:
Post a Comment