Skip to content

Commit

Permalink
fix test messages
Browse files Browse the repository at this point in the history
  • Loading branch information
msridhar committed Sep 29, 2023
1 parent 97d0d5a commit 4f11c49
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public void superTypeAssignmentChecksSingleInterface() {
" interface Fn<P extends @Nullable Object, R extends @Nullable Object> {}",
" 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() {",
Expand Down Expand Up @@ -1205,14 +1205,14 @@ public void overrideWithNestedTypeParametersInReturnType() {
" }",
" class TestFunc1 implements Fn<P<@Nullable String, String>, @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<P<@Nullable String, @Nullable String>, @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>();",
" }",
Expand Down Expand Up @@ -1241,7 +1241,7 @@ public void overrideWithNestedTypeParametersInParameterType() {
" }",
" class TestFunc implements Fn<P<String, String>, String> {",
" @Override",
" // BUG: Diagnostic contains: Parameter has type P<@Nullable String, String>, but overridden method has parameter type P<String, String>",
" // BUG: Diagnostic contains: Parameter has type Test.P<@Nullable String, String>, but overridden method has parameter type Test.P<String, String>",
" public String apply(P<@Nullable String, String> p, String s) {",
" return s;",
" }",
Expand Down

0 comments on commit 4f11c49

Please sign in to comment.