diff --git a/nullaway/src/test/java/com/uber/nullaway/NullAwayJSpecifyGenericsTests.java b/nullaway/src/test/java/com/uber/nullaway/NullAwayJSpecifyGenericsTests.java index ea209a8868..fca16016ab 100644 --- a/nullaway/src/test/java/com/uber/nullaway/NullAwayJSpecifyGenericsTests.java +++ b/nullaway/src/test/java/com/uber/nullaway/NullAwayJSpecifyGenericsTests.java @@ -311,7 +311,7 @@ public void superTypeAssignmentChecksSingleInterface() { " interface Fn
{}", " class FnImpl implements Fn<@Nullable String, @Nullable String> {}", " void testPositive() {", - " // BUG: Diagnostic contains: Cannot assign from type FnImpl", + " // BUG: Diagnostic contains: Cannot assign from type Test.FnImpl", " Fn<@Nullable String, String> f = new FnImpl();", " }", " void testNegative() {", @@ -1205,14 +1205,14 @@ public void overrideWithNestedTypeParametersInReturnType() { " }", " class TestFunc1 implements Fn
, @Nullable String> {", " @Override", - " // BUG: Diagnostic contains: Method returns P<@Nullable String, @Nullable String>, but overridden method", + " // BUG: Diagnostic contains: Method returns Test.P<@Nullable String, @Nullable String>, but overridden method", " public P<@Nullable String, @Nullable String> apply() {", " return new P<@Nullable String, @Nullable String>();", " }", " }", " class TestFunc2 implements Fn
, @Nullable String> {", " @Override", - " // BUG: Diagnostic contains: Method returns P<@Nullable String, String>, but overridden method returns", + " // BUG: Diagnostic contains: Method returns Test.P<@Nullable String, String>, but overridden method returns", " public P<@Nullable String, String> apply() {", " return new P<@Nullable String, String>();", " }", @@ -1241,7 +1241,7 @@ public void overrideWithNestedTypeParametersInParameterType() { " }", " class TestFunc implements Fn
, String> {",
" @Override",
- " // BUG: Diagnostic contains: Parameter has type P<@Nullable String, String>, but overridden method has parameter type P