You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by od...@apache.org on 2009/10/08 11:44:05 UTC

svn commit: r823101 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Formatter.java

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);
                     }