harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r824317 - /harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/SimpleDateFormat.java
Date Mon, 12 Oct 2009 12:27:34 GMT
Author: odeakin
Date: Mon Oct 12 12:27:33 2009
New Revision: 824317

URL: http://svn.apache.org/viewvc?rev=824317&view=rev
Log:
Remove unnecessary dead store into year variable.

Modified:
    harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/SimpleDateFormat.java

Modified: harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/SimpleDateFormat.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/SimpleDateFormat.java?rev=824317&r1=824316&r2=824317&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/SimpleDateFormat.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/SimpleDateFormat.java
Mon Oct 12 12:27:33 2009
@@ -762,7 +762,7 @@
                 dateFormatField = Field.YEAR;
                 int year = calendar.get(Calendar.YEAR);
                 if (count < 4) {
-                    appendNumber(buffer, 2, year %= 100);
+                    appendNumber(buffer, 2, year % 100);
                 } else {
                     appendNumber(buffer, count, year);
                 }



Mime
View raw message