mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[push]: style - rename method
This commit is contained in:
+2
-2
@@ -144,7 +144,7 @@ public class ShelveChangesManager extends AbstractProjectComponent implements JD
|
||||
|
||||
@Override
|
||||
public boolean process(ShelvedChangeList shelvedChangeList) {
|
||||
if (!shelvedChangeList.checkValid()) {
|
||||
if (!shelvedChangeList.isValid()) {
|
||||
mySchemeManager.removeScheme(shelvedChangeList);
|
||||
}
|
||||
return true;
|
||||
@@ -189,7 +189,7 @@ public class ShelveChangesManager extends AbstractProjectComponent implements JD
|
||||
private void migrateOldShelfInfo(@NotNull Element element, boolean recycled) throws InvalidDataException {
|
||||
for (Element changeSetElement : element.getChildren(recycled ? ELEMENT_RECYCLED_CHANGELIST : ELEMENT_CHANGELIST)) {
|
||||
ShelvedChangeList list = readOneShelvedChangeList(changeSetElement);
|
||||
if(!list.checkValid()) break;
|
||||
if(!list.isValid()) break;
|
||||
File uniqueDir = generateUniqueSchemePatchDir(list.DESCRIPTION, false);
|
||||
list.setName(uniqueDir.getName());
|
||||
list.setRecycled(recycled);
|
||||
|
||||
@@ -164,7 +164,7 @@ public class ShelvedChangeList implements JDOMExternalizable, ExternalizableSche
|
||||
mySchemeName = newName;
|
||||
}
|
||||
|
||||
public boolean checkValid() {
|
||||
public boolean isValid() {
|
||||
return new File(PATH).exists();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user