Skip to content

Limit DanglingDocCommentToBlockComment to Java sources - #1287

Merged
timtebeek merged 3 commits into
mainfrom
tim/triple-slash-markdown-recipe-check
Oct 9, 2026
Merged

timtebeek merged 3 commits into
mainfrom
tim/triple-slash-markdown-recipe-check

Conversation

@timtebeek

@timtebeek timtebeek commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

DanglingDocCommentToBlockComment (part of UpgradeToJava25) used a plain JavaIsoVisitor, so it also visited TypeScript, Kotlin and Groovy sources. Those parsers turn every comment, JSDoc/KDoc/Groovydoc included, into a TextComment, so every /** after the first statement looked dangling and lost a star; a Java 25 upgrade turned a /***** banner in an Angular polyfills.ts into /****. A JavaFileChecker precondition now limits it to Java sources, matching the javac dangling-doc-comments lint it targets. leaveKotlinAlone and leaveGroovyAlone fail without this change.

@timtebeek
timtebeek merged commit f6e1a8e into main Oct 9, 2026
1 check passed
@timtebeek
timtebeek deleted the tim/triple-slash-markdown-recipe-check branch October 9, 2026 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant