Skip to content

Conversation

@naren2605
Copy link
Contributor

@naren2605 naren2605 commented May 5, 2025

providing fix for issue

  • root cause:
    • a pair {} of braces are injected at the erroneous then part in IfTree
    • improper end position of erroneous block as sp.getStartPosition and sp.getEndPosition always returns begining index for erroneous then statement
    • due to above issues new braces were injected, new lines and indentation has issues which was causing more problems in user experience while formatting long files

@naren2605
Copy link
Contributor Author

requesting @jlahoda , @mbien @dbalek to take a look

@mbien mbien added the Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) label May 5, 2025
@mbien mbien linked an issue May 5, 2025 that may be closed by this pull request
@naren2605 naren2605 requested review from mbien and neilcsmith-net May 5, 2025 12:21
@naren2605
Copy link
Contributor Author

requesting @dbalek to take a look

@naren2605
Copy link
Contributor Author

@mbien ive squashed all commits

@lahodaj
Copy link
Contributor

lahodaj commented May 22, 2025

Unless there are objections, I'll merge this sometime soon, based on Dusan's review.

@mbien mbien added this to the NB27 milestone May 22, 2025
@lahodaj lahodaj merged commit 46c42e4 into apache:master May 26, 2025
36 checks passed
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.

Formatting alters content

5 participants