Skip to content

Commit

Permalink
fix out of index error
Browse files Browse the repository at this point in the history
  • Loading branch information
shalousun committed May 8, 2020
1 parent 27b04a5 commit 1a74865
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/power/doc/utils/DocClassUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit 1a74865

Please sign in to comment.