}
return null;
}
private String cleanType(ProcessingEnvironment env, TypeMirror typeMirror) {
ModelHelper modelHelper = new ModelHelper(env);
Class<?> wrapper = ModelUtils.getWrapper(typeMirror.getKind());
if (wrapper != null) {
return wrapper.getName();
}
if (modelHelper.isMapType(typeMirror)) {
TypeMirror mapType = modelHelper.getMapType(typeMirror);
return (mapType != null ? mapType.toString() : null);
}
if (modelHelper.isCollectionType(typeMirror)) {
TypeMirror collectionType = modelHelper.getCollectionType(typeMirror);
return (collectionType != null ? collectionType.toString() : null);
}
return typeMirror.toString();
}