Skip to content

Commit 8d6c96e

Browse files
yegor256claude
andcommitted
Make JavadocEmptyLineBeforeTagCheck messages self-describing (#1563).
The two violations from this check now name the triggering condition (single paragraph vs. multiple paragraphs) so they no longer read as contradictions and a user can mechanically tell which fix to apply. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 768df8b commit 8d6c96e

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/main/java/com/qulice/checkstyle/JavadocEmptyLineBeforeTagCheck.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,12 @@ private void inspect(final String[] lines, final int start, final int tag) {
114114
if (multi && !empty) {
115115
this.log(
116116
tag + 1,
117-
"Empty Javadoc line required before at-clauses"
117+
"Empty Javadoc line required before at-clauses, since the description has multiple paragraphs"
118118
);
119119
} else if (!multi && empty) {
120120
this.log(
121121
tag,
122-
"Empty Javadoc line before at-clauses is not allowed"
122+
"Empty Javadoc line before at-clauses is not allowed, since the description is a single paragraph"
123123
);
124124
}
125125
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
8:Empty Javadoc line before at-clauses is not allowed
2-
15:Empty Javadoc line before at-clauses is not allowed
3-
24:Empty Javadoc line required before at-clauses
4-
31:Empty Javadoc line before at-clauses is not allowed
5-
43:Empty Javadoc line required before at-clauses
1+
8:Empty Javadoc line before at-clauses is not allowed, since the description is a single paragraph
2+
15:Empty Javadoc line before at-clauses is not allowed, since the description is a single paragraph
3+
24:Empty Javadoc line required before at-clauses, since the description has multiple paragraphs
4+
31:Empty Javadoc line before at-clauses is not allowed, since the description is a single paragraph
5+
43:Empty Javadoc line required before at-clauses, since the description has multiple paragraphs

0 commit comments

Comments
 (0)