public static TypeDescription getTypeDescription(Type type) throws ClassNotFoundException { //TODO: synchronize on type? TypeDescription desc = (TypeDescription) type.getTypeDescription(); if (desc == null) { desc = getTypeDescription(type.getTypeName()); type.setTypeDescription(desc); } return desc; }
public static TypeDescription getTypeDescription(Type type) throws ClassNotFoundException { //TODO: synchronize on type? TypeDescription desc = type.getTypeDescription(); if (desc == null) { desc = getTypeDescription(type.getTypeName()); type.setTypeDescription(desc); } return desc; }