|
|
|
@ -50,8 +50,8 @@ public class PathAndKeywordCheck extends IssuableSubscriptionVisitor { |
|
|
|
|
MethodTree methodTree = (MethodTree) parent; |
|
|
|
|
methodTree.parameters().forEach(parameter -> { |
|
|
|
|
if (parameter.type() != null) { |
|
|
|
|
String parameterType = parameter.type().symbolType().name(); |
|
|
|
|
if (parameterType.equals("String")) { // 这里假设你关心的参数类型是 String
|
|
|
|
|
String parameterType = parameter.type().symbolType().fullyQualifiedName(); |
|
|
|
|
System.out.println(parameterType); |
|
|
|
|
String className = newClassTree.symbolType().name(); |
|
|
|
|
if (TARGET_CLASS_NAMES.contains(className)) { |
|
|
|
|
// 获取构造方法的参数
|
|
|
|
@ -70,7 +70,6 @@ public class PathAndKeywordCheck extends IssuableSubscriptionVisitor { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|