ChainCallJoinLinesHandler: disable when builder variable is self-referenced

This commit is contained in:
Tagir Valeev
2018-04-19 13:40:39 +07:00
parent deeec13f53
commit cee5209a63
4 changed files with 19 additions and 0 deletions
@@ -0,0 +1,8 @@
class Foo {
void test() {
<caret>StringBuilder sb = new StringBuilder();
sb.append(sb);
sb.append("bar");
sb.append("baz");
}
}
@@ -0,0 +1,7 @@
class Foo {
void test() {
StringBuilder sb = new StringBuilder();<caret>sb.append(sb);
sb.append("bar");
sb.append("baz");
}
}