mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-16 18:25:57 +00:00
ICU-8268 Unitialized read of field in constructor.
X-SVN-Rev: 30738
This commit is contained in:
parent
dc1f5c5a80
commit
00d87011fd
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue