Skip to content

Commit

Permalink
comment suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Lázaro Clapp <lazaro.clapp@gmail.com>
  • Loading branch information
msridhar and lazaroclapp authored Sep 1, 2024
1 parent 4068568 commit fe92b7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nullaway/src/main/java/com/uber/nullaway/NullAway.java
Original file line number Diff line number Diff line change
Expand Up @@ -1786,6 +1786,7 @@ private Description handleInvocation(
if (actualParameterType != null
&& state.getTypes().isAssignable(actualParameterType, varargsArrayType)
&& actualParams.size() == argPos + 1) {
// This is the case where an array is explicitly passed in the position of the var args parameter
// If varargs array itself is not @Nullable, cannot pass @Nullable array
if (!Nullness.varargsArrayIsNullable(formalParams.get(argPos), config)) {
mayActualBeNull = mayBeNullExpr(state, actual);
Expand Down

0 comments on commit fe92b7d

Please sign in to comment.