Skip to content

Commit

Permalink
Fix empty params tags generating
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish committed Oct 11, 2023
1 parent 0834861 commit f887d69
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group = 'dev.lukebemish.docpatcher'
version = '0.1.3'
version = '0.1.4'

java {
// I don't feel like dealing with old java...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ private static ProcessedJavadoc processJavadocs(CtJavaDoc javadoc, CtJavaDoc ori
parametersOut.add("");
}
}
if (params.isEmpty()) {
tags.remove("param");
}
}
List<String> typeParametersOut = null;
if (typeParameters != null && tags.containsKey("param")) {
Expand All @@ -214,6 +217,9 @@ private static ProcessedJavadoc processJavadocs(CtJavaDoc javadoc, CtJavaDoc ori
typeParametersOut.add("");
}
}
if (params.isEmpty()) {
tags.remove("param");
}
}
String contentDiff = content;
if (originalJavadoc != null) {
Expand Down

0 comments on commit f887d69

Please sign in to comment.