[java-highlighting] test-data adjusted (mostly anchors) after recent updates

Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 1e1b77009dc78de49c7cc5c44d4704937397bb23
This commit is contained in:
Tagir Valeev
2025-01-29 11:35:30 +00:00
committed by intellij-monorepo-bot
parent db46304375
commit c449c341b7
103 changed files with 211 additions and 211 deletions
@@ -1,5 +1,5 @@
class Testcase {
void test() {
<error descr="Incompatible types. Found: 'java.lang.String', required: 'java.lang.Character'">Character x = "foo";</error>
Character x = <error descr="Incompatible types. Found: 'java.lang.String', required: 'java.lang.Character'">"foo";</error>
}
}
@@ -33,7 +33,7 @@ class Testcase {
}
void test() {
<error descr="Incompatible types. Found: 'null', required: 'int'">int x = null;</error>
int x = <error descr="Incompatible types. Found: 'null', required: 'int'">null;</error>
Integer boxed = x;
if (boxed == 5) {}
}
@@ -2,7 +2,7 @@ import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
class A {
static final <error descr="Incompatible types. Found: 'null', required: 'int'">int x = null;</error>
static final int x = <error descr="Incompatible types. Found: 'null', required: 'int'">null;</error>
void test() {
long y = x;