Skip to content

Feature Request: Do not warn on assumeNonNull(nullUnmarkedThing) #1241

@agrieve

Description

@agrieve

E.g.:

 warning: [NullAway] passing known @NonNull parameter 'tabGroupModelFilter' to CastToNonNullMethod (org.chromium.build.NullUtil.assumeNonNull) at position 0. This method argument should only take values that NullAway considers @Nullable at the invocation site, but which are known not to be null at runtime.

The warning is great for values that are known to be non-null, but for values from methods annotated with @NullUnmarked, it would make migrations easier if these warnings would not show (e.g. you could incrementally fix them, and then remove @NullUnmarked at the end).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions