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:
+14
@@ -0,0 +1,14 @@
|
||||
// "Convert to local variable" "true"
|
||||
class Temp {
|
||||
public boolean flag;
|
||||
|
||||
void test(int <caret>p) {
|
||||
if (flag) {
|
||||
p = 1;
|
||||
}
|
||||
else {
|
||||
p = 2;
|
||||
}
|
||||
System.out.print(p);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user