Skip to content

Commit

Permalink
Merge pull request #726 from LabelZhou/master
Browse files Browse the repository at this point in the history
fix: Incorrect documentation example type when the return type is "void"
  • Loading branch information
shalousun authored Feb 4, 2024
2 parents 843363c + 19c732a commit 863f474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/ly/doc/utils/DocUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public static String jsonValueByType(String typeName) {
}
if (javaPrimaryType(type)) {
return value;
} else if ("Void".equals(type)) {
} else if ("Void".equalsIgnoreCase(type)) {
return "null";
} else {
return "\"" + value + "\"";
Expand Down

0 comments on commit 863f474

Please sign in to comment.