Skip to content

Strip trailing asterisks before */ in Javadoc comments. - #1474

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_993625344
Oct 6, 2026
Merged

copybara-service[bot] merged 1 commit into
masterfrom
test_993625344

Conversation

@copybara-service

Copy link
Copy Markdown

Strip trailing asterisks before */ in Javadoc comments.

Decorative closing delimiters such as /** ... **/ previously had the trailing
asterisk retained as comment body content, resulting in /** ... * */.

Decorative closing delimiters such as `/** ... **/` previously had the trailing
asterisk retained as comment body content, resulting in `/** ... * */`.

PiperOrigin-RevId: 994303609
@copybara-service
copybara-service Bot merged commit 2957b19 into master Oct 6, 2026
12 checks passed
@copybara-service
copybara-service Bot deleted the test_993625344 branch October 6, 2026 11:18
abashev added a commit to openjavaformat/open-java-format that referenced this pull request Oct 9, 2026
Decorative closing delimiters such as `/** ... **/` previously had the trailing
asterisk retained as comment body content, resulting in `/** ... * */`.

Ported from google/google-java-format#1474 (commit 2957b192). In this fork
stripJavadocBeginAndEnd lives in JavadocLexer; the tests were written first
and failed with `* */` before the change.

Co-authored-by: Liam Miller-Cushon <cushon@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant