diff --git a/src/main/java/com/power/doc/utils/DocClassUtil.java b/src/main/java/com/power/doc/utils/DocClassUtil.java index 8a60dfb7..3c94cc2b 100644 --- a/src/main/java/com/power/doc/utils/DocClassUtil.java +++ b/src/main/java/com/power/doc/utils/DocClassUtil.java @@ -99,7 +99,7 @@ private static String[] classNameFix(String[] arr) { } else { globIndex = globIndex + 1; if (globIndex < length) { - if (DocUtil.isClassName(arr[globIndex])) { + if (DocUtil.isClassName(arr[globIndex]) || arr[i].length() == 1) { indexList.add(globIndex); classes.add(arr[globIndex]); } else { @@ -113,7 +113,7 @@ private static String[] classNameFix(String[] arr) { } } } else { - if (DocUtil.isClassName(arr[i])) { + if (DocUtil.isClassName(arr[i]) || arr[i].length() == 1) { indexList.add(i); classes.add(arr[i]); } else {