Skip to content

Commit f98df4e

Browse files
committed
add cast
1 parent ea0b389 commit f98df4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nullaway/src/main/java/com/uber/nullaway/generics/GenericsChecks.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ public static void checkGenericMethodCallTypeArguments(
191191
}
192192
}
193193
}
194-
Symbol.MethodSymbol methodSymbol = (Symbol.MethodSymbol) ASTHelpers.getSymbol(tree);
194+
Symbol.MethodSymbol methodSymbol =
195+
castToNonNull((Symbol.MethodSymbol) ASTHelpers.getSymbol(tree));
195196

196197
// check if type variables are allowed to be Nullable
197198
Type baseType = methodSymbol.asType();

0 commit comments

Comments
 (0)