harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r823101 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Formatter.java
Date Thu, 08 Oct 2009 09:44:05 GMT
Author: odeakin
Date: Thu Oct  8 09:44:04 2009
New Revision: 823101

URL: http://svn.apache.org/viewvc?rev=823101&view=rev
Log:
Remove movePointLeft() calls that do nothing - they do not alter the original BigDecimal,
so unless their return value is caught they have no effect.

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Formatter.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Formatter.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Formatter.java?rev=823101&r1=823100&r2=823101&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Formatter.java (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Formatter.java Thu
Oct  8 09:44:04 2009
@@ -2090,18 +2090,15 @@
 
             } else {
                 l = b.movePointRight(4).longValue();
-                b.movePointLeft(4);
                 if (d >= Math.pow(10, -4) && d < 1) {
                     requireScientificRepresentation = false;
                     precision += 4 - String.valueOf(l).length();
                     l = b.movePointRight(precision + 1).longValue();
-                    b.movePointLeft(precision + 1);
                     if (String.valueOf(l).length() <= formatToken
                             .getPrecision()) {
                         precision++;
                     }
                     l = b.movePointRight(precision).longValue();
-                    b.movePointLeft(precision);
                     if (l >= Math.pow(10, precision - 4)) {
                         formatToken.setPrecision(precision);
                     }



Mime
View raw message