mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
fix remove unused assignment fix in return statement (IDEA-132349)
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
// "Remove redundant assignment" "true"
|
||||
class A {
|
||||
int v() {
|
||||
int x;
|
||||
return getValue();
|
||||
}
|
||||
|
||||
private int getValue() {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// "Remove redundant assignment" "true"
|
||||
class A {
|
||||
int v() {
|
||||
int x;
|
||||
return <caret>x = getValue();
|
||||
}
|
||||
|
||||
private int getValue() {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user