From 2f7a162e36fa399951e106b70cdcf6bcbb6d9d97 Mon Sep 17 00:00:00 2001 From: Manu Sridharan Date: Thu, 10 Oct 2024 19:07:46 -0700 Subject: [PATCH] more assert info --- nullaway/src/main/java/com/uber/nullaway/NullabilityUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }