fix remove unused assignment fix in return statement (IDEA-132349)

This commit is contained in:
Anna Kozlova
2014-11-10 20:41:55 +01:00
parent db9d8d03fb
commit 2cbd7d0d52
3 changed files with 23 additions and 1 deletions
@@ -0,0 +1,11 @@
// "Remove redundant assignment" "true"
class A {
int v() {
int x;
return getValue();
}
private int getValue() {
return 0;
}
}
@@ -0,0 +1,11 @@
// "Remove redundant assignment" "true"
class A {
int v() {
int x;
return <caret>x = getValue();
}
private int getValue() {
return 0;
}
}