From f3ef802baee6f40a7ab335f55d1ca83cadc8b19f Mon Sep 17 00:00:00 2001 From: oppofind <836575280@qq.com> Date: Sun, 5 Jan 2020 16:39:07 +0800 Subject: [PATCH] ignore list and map --- src/main/java/com/power/doc/utils/JavaClassUtil.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/power/doc/utils/JavaClassUtil.java b/src/main/java/com/power/doc/utils/JavaClassUtil.java index 443282d..4c87201 100644 --- a/src/main/java/com/power/doc/utils/JavaClassUtil.java +++ b/src/main/java/com/power/doc/utils/JavaClassUtil.java @@ -31,7 +31,10 @@ public class JavaClassUtil { "Date".equals(cls1.getSimpleName()) || "Locale".equals(cls1.getSimpleName())) { return fieldList; } else { - if (cls1.isInterface()) { + String className = cls1.getFullyQualifiedName(); + if (cls1.isInterface() && + !JavaClassValidateUtil.isCollection(className) && + !JavaClassValidateUtil.isMap(className)) { List methods = cls1.getMethods(); for (JavaMethod javaMethod : methods) { String methodName = javaMethod.getName();