mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-15281 A method/constructor parameter which is written (before read) should be treated as redundant implemented
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
// "Convert to local variable" "true"
|
||||
class Temp {
|
||||
public boolean flag;
|
||||
|
||||
void test() {
|
||||
<caret>int p;
|
||||
if (flag) {
|
||||
p = 1;
|
||||
}
|
||||
else {
|
||||
p = 2;
|
||||
}
|
||||
System.out.print(p);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user