Skip to content

Commit

Permalink
tweak comment
Browse files Browse the repository at this point in the history
  • Loading branch information
msridhar committed Oct 10, 2024
1 parent b9d33b3 commit 989539a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ private static NullnessStore methodInitialStore(
for (LocalVariableNode param : parameters) {
Symbol paramSymbol = (Symbol) param.getElement();
Nullness assumed;
// This flag check is safe we know paramSymbol represents a parameter defined in source code
// Using this flag to check for a varargs parameter works since we know paramSymbol represents
// a parameter defined in source code
if ((paramSymbol.flags() & Flags.VARARGS) != 0) {
assumed = Nullness.varargsArrayIsNullable(paramSymbol, config) ? NULLABLE : NONNULL;
} else {
Expand Down

0 comments on commit 989539a

Please sign in to comment.