I m using gson 1.7 and i see that it has a serialized block in toJson() in class
final class ParameterizedTypeHandlerMap<T>{
....
public synchronized T getHandlerFor(Type type) {
....
如果我按每个请求创建天体, 它在构造中也有一个同步块块 。
我有几个问题:
- Does 2.1 version has the same behaver?
- Is it safe (in perspective to backward compatibility) to upgrade to 2.1
- What is best performance package for json?