Skip to content

Remove new onOverrideMethodInvocationVarargsArrayNullability handler method #1501

Closed

Description

@msridhar

Follow-up to #1485. A better way to do this is to just use Handler#onOverrideMethodType which should already update the varargs array type with the appropriate nested nullability, along with other extant handler methods.

Activity

  1. msridhar commented on Apr 10, 2026

    @msridhar
    ContributorAuthor

    As an update, I tried to do this cleanup and use onOverrideMethodType instead, and it was more complicated than I expected. The issue is that we have tricky logic around dealing with declaration annotations on varargs arrays, and APIs that are inconsistent in how they report the nullability of the varargs parameter (some look at the array contents, some at the array itself). I think a better and more obvious cleanup might be to merge the functionality of this method into com.uber.nullaway.handlers.LibraryModelsHandler#onOverrideMethodInvocationParametersNullability and have that method return a richer type.

  2. added a commit that references this issue on Apr 11, 2026
    68fc07e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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