You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by te...@apache.org on 2009/05/07 14:12:49 UTC

svn commit: r772630 - /harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/SimpleDateFormat.java

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("'");