cleanup: fix some embarrassing "expression is always true" warnings

GitOrigin-RevId: 7924e9541bb3e0fe2d328a7624401effba8d4b0a
This commit is contained in:
Alexey Kudravtsev
2020-10-18 13:03:13 +02:00
committed by intellij-monorepo-bot
parent 94368a5895
commit 016f2aef5b
249 changed files with 535 additions and 811 deletions

View File

@@ -44,7 +44,7 @@ public class CompilerPaths {
/**
* @return a root directory where compiler caches for the given project are stored
*/
public static File getCacheStoreDirectory(final Project project) {
public static @NotNull File getCacheStoreDirectory(final Project project) {
return new File(getCompilerSystemDirectory(project), ".caches");
}

View File

@@ -157,10 +157,7 @@ public final class ExcludedEntriesConfigurable implements UnnamedConfigurable, N
}
private void addPath(FileChooserDescriptor descriptor) {
int selected = -1 /*myExcludedTable.getSelectedRow() + 1*/;
if(selected < 0) {
selected = myExcludeEntryDescriptions.size();
}
int selected = myExcludeEntryDescriptions.size();
int savedSelected = selected;
VirtualFile[] chosen = FileChooser.chooseFiles(descriptor, myProject, null);
for (final VirtualFile chosenFile : chosen) {