mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 15:41:26 +07:00
inline: do not delete call but warn when resulted expr is not a valid statement (IDEA-88886)
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user