]> granicus.if.org Git - icu/commitdiff
ICU-9789 Fix problems that Markus found in review.
authorMark Davis <mark@macchiato.com>
Fri, 14 Dec 2012 18:19:24 +0000 (18:19 +0000)
committerMark Davis <mark@macchiato.com>
Fri, 14 Dec 2012 18:19:24 +0000 (18:19 +0000)
X-SVN-Rev: 32965

icu4j/main/classes/core/src/com/ibm/icu/text/SimpleDateFormat.java

index a17d2d4eae9f17f73e7750e961abd86af464b7a9..14a86ac9f7020b4047f36a3c917623ec48b44d0f 100644 (file)
@@ -2001,7 +2001,7 @@ public class SimpleDateFormat extends DateFormat {
                         (matchLength = regionMatchesWithOptionalDot(text, start, leapMonthName, length)) >= 0)
                         {
                             bestMatch = i;
-                            bestMatchLength = length;
+                            bestMatchLength = matchLength;
                             isLeapMonth = 1;
                         }
                  }