use of com.taobao.android.dx.rop.cst.CstType in project atlas by alibaba.
the class TypeIdsSection method intern.
/**
* Interns an element into this instance.
*
* @param type {@code non-null;} the type to intern
* @return {@code non-null;} the interned reference
*/
public synchronized TypeIdItem intern(CstType type) {
if (type == null) {
throw new NullPointerException("type == null");
}
throwIfPrepared();
Type typePerSe = type.getClassType();
if (typePerSe.getDescriptor().equals("L;")) {
System.out.println("xxxxxx");
}
TypeIdItem result = typeIds.get(typePerSe);
if (result == null) {
result = new TypeIdItem(type);
typeIds.put(typePerSe, result);
}
return result;
}
Aggregations