Update JavaClassUtil.java

如果class存在多个tag,需要获取的tagName不为第一个tag的时候,返回值会多出一个逗号
This commit is contained in:
DuaneDu 2021-04-08 15:55:30 +08:00 committed by GitHub
parent c95eafe199
commit 69ecf0b57c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -406,7 +406,7 @@ public class JavaClassUtil {
+ "() - bad @" + tagName + " javadoc from " + cls.getName() + ", must be add comment if you use it."); + "() - bad @" + tagName + " javadoc from " + cls.getName() + ", must be add comment if you use it.");
} }
if (tagName.equals(tags.get(i).getName())) { if (tagName.equals(tags.get(i).getName())) {
if (i != 0) { if (result.length() > 0) {
result.append(","); result.append(",");
} }
result.append(value); result.append(value);