Skip to content

Fix record reformatting for alternative brace positioning.#9480

Open
neilcsmith-net wants to merge 1 commit into
apache:masterfrom
neilcsmith-net:reformat-fixes2
Open

Fix record reformatting for alternative brace positioning.#9480
neilcsmith-net wants to merge 1 commit into
apache:masterfrom
neilcsmith-net:reformat-fixes2

Conversation

@neilcsmith-net

Copy link
Copy Markdown
Member

Fix reformatting of records with alternative brace positioning - make sure continuation flag is not set, which caused the additional brace indentation.

Adapt empty record formatting to work the same across all brace position settings by checking for {} and rolling back if not empty.

Follow up to #9421 addressing issues that were not fixed there.

Removed the try / finally sections as just made this harder to fix without necessarily doing anything useful here.

Fix reformatting of records with alternative brace positioning -
make sure continuation flag not set.

Adapt empty record formatting to work the same across all brace
position settings.
@neilcsmith-net neilcsmith-net added this to the NB31 milestone Jul 2, 2026
@neilcsmith-net neilcsmith-net added the Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) label Jul 2, 2026

@matthiasblaesing matthiasblaesing left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sane to me and a quick test worked for me as expected. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants