mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java-inspections] part of IDEA-380832
- strange behaviour in meet. It is hard to create a test because this method is called in really rare cases. GitOrigin-RevId: 042a265817d160f9dd782f92195661e251c24a5b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
93760141cb
commit
e567b53279
@@ -109,7 +109,7 @@ public final class TypeNullability {
|
||||
public @NotNull TypeNullability meet(@NotNull TypeNullability other) {
|
||||
if (this.nullability() == other.nullability()) {
|
||||
if (this.source().equals(other.source())) return this;
|
||||
return new TypeNullability(Nullability.NOT_NULL, NullabilitySource.multiSource(Arrays.asList(this.source(), other.source())));
|
||||
return new TypeNullability(this.nullability(), NullabilitySource.multiSource(Arrays.asList(this.source(), other.source())));
|
||||
}
|
||||
if (this.nullability() == Nullability.NOT_NULL) {
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user