diff --git a/src/main/java/com/power/doc/utils/JavaClassUtil.java b/src/main/java/com/power/doc/utils/JavaClassUtil.java index 9935a2e4..9c8f5c08 100644 --- a/src/main/java/com/power/doc/utils/JavaClassUtil.java +++ b/src/main/java/com/power/doc/utils/JavaClassUtil.java @@ -62,7 +62,7 @@ public static List getFields(JavaClass cls1, int counter, Set getFields(JavaClass cls1, int counter, Set genericMap, JavaClass cls } } - public static String javaTypeFormat(String returnType){ - if(returnType.contains("?")) { + public static String javaTypeFormat(String returnType) { + if (returnType.contains("?")) { return returnType.replaceAll("[?\\s]", "").replaceAll("extends", ""); - } - else { + } else { return returnType; } }