mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 19:28:23 +07:00
intention to replace assignment with void-call (IDEA-143069)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// "Remove left side of assignment" "true"
|
||||
|
||||
class FooBar {
|
||||
public int baz;
|
||||
|
||||
{
|
||||
bar();
|
||||
}
|
||||
|
||||
void bar() {}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// "Remove left side of assignment" "false"
|
||||
|
||||
class FooBar {
|
||||
public String baz;
|
||||
|
||||
{
|
||||
baz = <caret>bar();
|
||||
}
|
||||
|
||||
int bar() { return 0;}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// "Remove left side of assignment" "true"
|
||||
|
||||
class FooBar {
|
||||
public int baz;
|
||||
|
||||
{
|
||||
baz = <caret>bar();
|
||||
}
|
||||
|
||||
void bar() {}
|
||||
}
|
||||
@@ -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() {}
|
||||
}
|
||||
Reference in New Issue
Block a user