You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove new onOverrideMethodInvocationVarargsArrayNullability handler method #1501
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.
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.
Activity
msridhar commentedon Apr 10, 2026
As an update, I tried to do this cleanup and use
onOverrideMethodTypeinstead, 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 intocom.uber.nullaway.handlers.LibraryModelsHandler#onOverrideMethodInvocationParametersNullabilityand have that method return a richer type.Remove `onOverrideMethodInvocationVarargsArrayNullability` handler me…