mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
inline parameter: conflict if replacement would be inaccessible
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
class Foo {
|
||||
void f(boolean b) {
|
||||
String project = project(b);
|
||||
if (b) {
|
||||
barrrr(project.substring(0));
|
||||
} else {
|
||||
if (true) {
|
||||
barrrr(project.substring(0));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void barrrr(String <caret>pProject) {
|
||||
System.out.println(pProject);
|
||||
}
|
||||
|
||||
String project (boolean b) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user