]> granicus.if.org Git - icu/commitdiff
ICU-8268 Unitialized read of field in constructor.
authorAbhinav Gupta <mail@abhinavg.net>
Wed, 28 Sep 2011 20:30:19 +0000 (20:30 +0000)
committerAbhinav Gupta <mail@abhinavg.net>
Wed, 28 Sep 2011 20:30:19 +0000 (20:30 +0000)
X-SVN-Rev: 30738

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

index b4616b5bb1ac3352addf498a8c2c5bb1322c4c4d..643ab27d23a3653faa2a18c3b6cde7075a2dd2ab 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 2001-2010, International Business Machines Corporation and    *
+ * Copyright (C) 2001-2011, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -22,7 +22,7 @@ class Quantifier implements UnicodeMatcher {
 
     public Quantifier(UnicodeMatcher theMatcher,
                       int theMinCount, int theMaxCount) {
-        if (theMatcher == null || minCount < 0 || maxCount < 0 || minCount > maxCount) {
+        if (theMatcher == null || theMinCount < 0 || theMaxCount < 0 || theMinCount > theMaxCount) {
             throw new IllegalArgumentException();
         }
         matcher = theMatcher;