mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-123850 incorrect "Condition is always false" warning in GemRequirementsChangeWatcher.updateAndAttach()
This commit is contained in:
@@ -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)) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user