Skip to content

Commit a2489ea

Browse files
committed
update NullAway.java
1 parent 1e9699a commit a2489ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nullaway/src/main/java/com/uber/nullaway/NullAway.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ public Description matchAssignment(AssignmentTree tree, VisitorState state) {
502502
}
503503
// generics check
504504
if (lhsType != null && config.isJSpecifyMode()) {
505-
genericsChecks.checkTypeParameterNullnessForAssignability(tree, this, state);
505+
genericsChecks.checkTypeParameterNullnessForAssignability(tree, this, state, config);
506506
}
507507

508508
if (config.isJSpecifyMode() && tree.getVariable() instanceof ArrayAccessTree) {
@@ -1496,7 +1496,7 @@ public Description matchVariable(VariableTree tree, VisitorState state) {
14961496
}
14971497
VarSymbol symbol = ASTHelpers.getSymbol(tree);
14981498
if (tree.getInitializer() != null && config.isJSpecifyMode()) {
1499-
genericsChecks.checkTypeParameterNullnessForAssignability(tree, this, state);
1499+
genericsChecks.checkTypeParameterNullnessForAssignability(tree, this, state, config);
15001500
}
15011501
if (!config.isLegacyAnnotationLocation()) {
15021502
checkNullableAnnotationPositionInType(

0 commit comments

Comments
 (0)