Skip to content

Commit

Permalink
more assert info
Browse files Browse the repository at this point in the history
  • Loading branch information
msridhar committed Oct 11, 2024
1 parent 270963b commit 2f7a162
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ private static boolean targetTypeMatches(Symbol sym, TypeAnnotationPosition posi
// on other types in the signature (e.g. `class Foo extends Bar<@A Baz> {}`).
return false;

Check warning on line 363 in nullaway/src/main/java/com/uber/nullaway/NullabilityUtil.java

View check run for this annotation

Codecov / codecov/patch

nullaway/src/main/java/com/uber/nullaway/NullabilityUtil.java#L363

Added line #L363 was not covered by tests
default:
throw new AssertionError("unsupported element kind: " + sym.getKind());
throw new AssertionError("unsupported element kind " + sym.getKind() + " symbol " + sym);

Check warning on line 365 in nullaway/src/main/java/com/uber/nullaway/NullabilityUtil.java

View check run for this annotation

Codecov / codecov/patch

nullaway/src/main/java/com/uber/nullaway/NullabilityUtil.java#L365

Added line #L365 was not covered by tests
}
}

Expand Down

0 comments on commit 2f7a162

Please sign in to comment.