[Java. Inspections] IDEA-375132 Nullable return incompatibilities Basic implementation.

MR brings detection of nullable inconsistencies inside return expressions for generic types. Now it supports
- Support of arbitrary generic type (previously only collections was supported)
- Recursive detection of inconsistencies
- Detection of assigning not-null to nullable (via option)

GitOrigin-RevId: ed37ea02ca44db58698f36f2ca82c67171733e69
This commit is contained in:
Georgii Ustinov
2025-10-02 14:36:35 +00:00
committed by intellij-monorepo-bot
parent a199e0438f
commit 5480b565a5
13 changed files with 373 additions and 47 deletions
@@ -128,6 +128,8 @@ annotate.overridden.methods.parameters=Annotate overriding method parameters as
anonymous.ref.loc.can.be.replaced.with.0=Anonymous #ref #loc can be replaced with {0}
anonymous.ref.loc.can.be.replaced.with.lambda=Anonymous #ref #loc can be replaced with lambda
assigning.a.collection.of.nullable.elements=Assigning a collection of nullable elements into a collection of non-null elements
returning.a.class.with.nullable.parameters=Returning a class with nullable type parameters when a class with non-null type parameters is expected
returning.a.class.with.notnull.parameters=Returning a class with non-null type parameters when a class with nullable type parameters is expected
conflicting.nullability.annotations=Conflicting nullability annotations
nullable.stuff.error.overriding.nullable.with.notnull=Overriding a collection of nullable elements with a collection of non-null elements
nullable.stuff.error.overriding.notnull.with.nullable=Overriding a collection of non-null elements with a collection of nullable elements