DfaFactType#CAN_BE_NULL: notnull (but not nullable) is superstate for unknown

This commit is contained in:
Tagir Valeev
2018-04-15 13:21:48 +07:00
parent b64b3812e6
commit 57f6516612
@@ -54,6 +54,11 @@ public abstract class DfaFactType<T> extends Key<T> {
return super.getPresentationText(fact, type);
}
@Override
boolean isSuper(@Nullable Boolean superFact, @Nullable Boolean subFact) {
return (superFact == null && Boolean.FALSE.equals(subFact)) || super.isSuper(superFact, subFact);
}
@Nullable
@Override
Boolean intersectFacts(@NotNull Boolean left, @NotNull Boolean right) {