IDEA-123850 incorrect "Condition is always false" warning in GemRequirementsChangeWatcher.updateAndAttach()

This commit is contained in:
peter
2014-04-12 16:38:17 +02:00
parent c6c205d5e8
commit b5df84e66b
5 changed files with 38 additions and 14 deletions
@@ -0,0 +1,23 @@
import org.jetbrains.annotations.Nullable;
import java.util.List;
class Foo {
public static void main(@Nullable Boolean hasMissingGems, List<String> missing) {
if (hasMissingGems != null && hasMissingGems) {
return;
}
if (hasMissingGems == null && missing.size() > 0) {
}
}
public static void main2(@Nullable Boolean hasMissingGems, List<String> missing) {
if ((hasMissingGems != null && hasMissingGems) || (hasMissingGems == null && missing.size() > 0)) {
}
}
}