inline: do not delete call but warn when resulted expr is not a valid statement (IDEA-88886)

This commit is contained in:
anna
2012-07-16 19:20:51 +02:00
parent bea215be6b
commit 41932a9527
5 changed files with 54 additions and 4 deletions
@@ -0,0 +1,26 @@
class AAA {
void fff(Project myProject) {
ensureFilesWritable(myProject, new String[1]);
}
private boolean ensu<caret>reFilesWritable(final Project project, final String... strings) {
return !ensureFilesWritable(strings).hasReadonlyFiles();
}
private Status ensureFilesWritable(final String[] strings) {
return new Status(strings);
}
class Status {
public Status(final String[] strings) {
//To change body of created methods use File | Settings | File Templates.
}
boolean hasReadonlyFiles() {
return true;
}
}
class Project {
}
}