mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-5854 cloned collator not thread safe - fix
X-SVN-Rev: 22420
This commit is contained in:
parent
f14c7caeb4
commit
065cbd88e5
1 changed files with 2 additions and 0 deletions
|
@ -233,7 +233,9 @@ public final class RuleBasedCollator extends Collator
|
|||
RuleBasedCollator result = (RuleBasedCollator)super.clone();
|
||||
if (latinOneCEs_ != null) {
|
||||
result.m_reallocLatinOneCEs_ = true;
|
||||
result.m_ContInfo_ = new ContractionInfo();
|
||||
}
|
||||
|
||||
// since all collation data in the RuleBasedCollator do not change
|
||||
// we can safely assign the result.fields to this collator
|
||||
result.initUtility(false); // let the new clone have their own util
|
||||
|
|
Loading…
Add table
Reference in a new issue