harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r772630 - /harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/SimpleDateFormat.java
Date Thu, 07 May 2009 12:12:49 GMT
Author: tellison
Date: Thu May  7 12:12:48 2009
New Revision: 772630

URL: http://svn.apache.org/viewvc?rev=772630&view=rev
Log:
Apply patch HARMONY-6199 ([classlib][text] Superficial changes to SimpleDateFormat)

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=772630&r1=772629&r2=772630&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
Thu May  7 12:12:48 2009
@@ -551,12 +551,11 @@
                 // replace 'y' with 'yy' for ICU to follow Java spec
                 result.append((first ? "" : "'")
                         + subPattern.replaceAll("(?<!y)y(?!y)", "yy"));
-                quote = !quote;
                 first = false;
             } else {
                 result.append("'" + subPattern);
-                quote = !quote;
             }
+            quote = !quote;
         }
         if (p.endsWith("'")) {
             result.append("'");



Mime
View raw message