intention to replace assignment with void-call (IDEA-143069)

This commit is contained in:
Anna Kozlova
2015-10-01 18:31:50 +02:00
parent 0bc58af9e6
commit a0ce4457ae
7 changed files with 154 additions and 5 deletions

View File

@@ -0,0 +1,11 @@
// "Remove left side of assignment" "true"
class FooBar {
public int baz;
{
bar();
}
void bar() {}
}

View File

@@ -0,0 +1,11 @@
// "Remove left side of assignment" "false"
class FooBar {
public String baz;
{
baz = <caret>bar();
}
int bar() { return 0;}
}

View File

@@ -0,0 +1,11 @@
// "Remove left side of assignment" "true"
class FooBar {
public int baz;
{
baz = <caret>bar();
}
void bar() {}
}

View File

@@ -0,0 +1,13 @@
// "Remove left side of assignment" "false"
class FooBar {
public int baz;
{
foo(baz = <caret>bar());
}
void foo(int i) {}
void bar() {}
}