public synchronized StringBuffer append(String str) {
toStringCache = null;
super.append(str);
return this;
}
直接通过synchronized 关键字来实现同步操作
转载自 https://blog.csdn.net/xupeng874395012/article/details/70238863
public synchronized StringBuffer append(String str) {
toStringCache = null;
super.append(str);
return this;
}
直接通过synchronized 关键字来实现同步操作
转载自 https://blog.csdn.net/xupeng874395012/article/details/70238863