DeclarationJoinLinesHandler: respect precedence for both initializer and right-hand operand

Fixes IDEA-195416 Join lines over arithmetic operations should preserve order
Also StreamApiMigrationInspection#getOperationSign moved to TypeConversionUtil#getBinaryOperationText and reused
This commit is contained in:
Tagir Valeev
2018-07-12 11:26:49 +07:00
parent 7a88ce07ab
commit 7730b97ee4
6 changed files with 71 additions and 100 deletions
@@ -0,0 +1,6 @@
class Foo {
{
int a = 1 + 2<caret>;
a *= 2 + 3;
}
}