ICU-5160 Changed from synchronized(buffer) to synchronized(this). When buffer is re-allocated, synchronized(buffer) may not work properly.
X-SVN-Rev: 23237
This commit is contained in:
parent
d717772bbd
commit
6bbf2b68e5
@ -1,6 +1,6 @@
|
||||
/*
|
||||
**********************************************************************
|
||||
* Copyright (C) 2001-2007, International Business Machines
|
||||
* Copyright (C) 2001-2008, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
**********************************************************************
|
||||
* Date Name Description
|
||||
@ -197,7 +197,7 @@ final class NormalizationTransliterator extends Transliterator {
|
||||
|
||||
int len = limit - lastSafe;
|
||||
String input = null;
|
||||
synchronized (buffer) {
|
||||
synchronized (this) {
|
||||
if (buffer.length < len) {
|
||||
buffer = new char[len]; // rare, and we don't care if we grow too large
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user