mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[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:
committed by
intellij-monorepo-bot
parent
db46304375
commit
c449c341b7
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user