提交 de8f2a63 编写于 作者: S sherman

6898310: (cs) Charset cache lookups should be synchronized

Summary: synchronize the lookup in iterator
Reviewed-by: alanb
上级 60839a4f
...@@ -179,8 +179,10 @@ public class AbstractCharsetProvider ...@@ -179,8 +179,10 @@ public class AbstractCharsetProvider
public Charset next() { public Charset next() {
String csn = i.next(); String csn = i.next();
synchronized (AbstractCharsetProvider.this) {
return lookup(csn); return lookup(csn);
} }
}
public void remove() { public void remove() {
throw new UnsupportedOperationException(); throw new UnsupportedOperationException();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册