diff --git a/nullaway/src/main/java/com/uber/nullaway/NullabilityUtil.java b/nullaway/src/main/java/com/uber/nullaway/NullabilityUtil.java index b1997385e6..f8d7386621 100644 --- a/nullaway/src/main/java/com/uber/nullaway/NullabilityUtil.java +++ b/nullaway/src/main/java/com/uber/nullaway/NullabilityUtil.java @@ -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; default: - throw new AssertionError("unsupported element kind: " + sym.getKind()); + throw new AssertionError("unsupported element kind " + sym.getKind() + " symbol " + sym); } }