diff --git a/nullaway/src/main/java/com/uber/nullaway/handlers/InferredJARModelsHandler.java b/nullaway/src/main/java/com/uber/nullaway/handlers/InferredJARModelsHandler.java index 6915406d7c..b6318f82ab 100644 --- a/nullaway/src/main/java/com/uber/nullaway/handlers/InferredJARModelsHandler.java +++ b/nullaway/src/main/java/com/uber/nullaway/handlers/InferredJARModelsHandler.java @@ -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; }