Find overrides that change the nullability contract
ProprietaryFinds methods that override a method declared in the same repository and contradict its nullability annotations: a return value that may be null where the overridden method's never is, and a parameter that must not be null where the overridden method's may be. Nullability is read from the annotations of the JSR-305, JSpecify, JetBrains, Spring, Eclipse, Checker Framework, Android and other libraries on the parameter or method, and from defaults such as @NullMarked, @NonNullApi and @ParametersAreNonnullByDefault on the method, its classes and its package. A method without nullability annotations of its own returns what the method it overrides does. Test sources are not searched.
io. moderne. staticanalysis. FindChangedNullabilityContractmod run . --recipe= io. moderne. staticanalysis. FindChangedNullabilityContractInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.