eclipse-jdt / eclipse-jdt/eclipse.jdt.core

Raising if cleanup causes an overindent when code is not formatted

Open
#3,691 0 comments 0 reactions 1 assignee Claimed by @jjohnstn View on GitHub
bug
Dominant language
Java
Stars
237
Forks
195
Avg merge
1d 10h
Merged PRs (30d)
49

Description

With the latest patch to ASTRewriteAnalyzer, one scenario of #3669 is still not behaving properly. While better, it is over-indenting the last brace of a block.

```
void test2(boolean a, boolean b) {
if (a) {
if (b) {
System.out.println("True"); //$NON-NLS-1$
}
}
}
```

becomes:

```
void test2(boolean a, boolean b) {
if (a && b) {
System.out.println("True"); //$NON-NLS-1$
}
}

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.