ignore list and map

This commit is contained in:
oppofind 2020-01-05 16:39:07 +08:00
parent 4a4e00808a
commit f3ef802bae
1 changed files with 4 additions and 1 deletions

View File

@ -31,7 +31,10 @@ public class JavaClassUtil {
"Date".equals(cls1.getSimpleName()) || "Locale".equals(cls1.getSimpleName())) { "Date".equals(cls1.getSimpleName()) || "Locale".equals(cls1.getSimpleName())) {
return fieldList; return fieldList;
} else { } else {
if (cls1.isInterface()) { String className = cls1.getFullyQualifiedName();
if (cls1.isInterface() &&
!JavaClassValidateUtil.isCollection(className) &&
!JavaClassValidateUtil.isMap(className)) {
List<JavaMethod> methods = cls1.getMethods(); List<JavaMethod> methods = cls1.getMethods();
for (JavaMethod javaMethod : methods) { for (JavaMethod javaMethod : methods) {
String methodName = javaMethod.getName(); String methodName = javaMethod.getName();