Skip to content

Commit

Permalink
remove workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
msridhar committed Nov 11, 2024
1 parent 20567e6 commit 970db19
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public Nullness[] onOverrideMethodInvocationParametersNullability(
if (annotationEntry.getKey() != RETURN
&& annotationEntry.getValue().contains("javax.annotation.Nonnull")) {
// Skip 'this' param for non-static methods
int nonNullPosition = annotationEntry.getKey() - (methodSymbol.isStatic() ? 0 : 1);
int nonNullPosition = annotationEntry.getKey() /* - (methodSymbol.isStatic() ? 0 : 1)*/;
jiNonNullParams.add(nonNullPosition);
argumentPositionNullness[nonNullPosition] = Nullness.NONNULL;
}
Expand Down

0 comments on commit 970db19

Please sign in to comment.