mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
[java-highlighting] checkLabelSelectorCompatibility extracted and moved to SwitchChecker
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only) GitOrigin-RevId: bec076c5bff67e22d06e64e573d3219a4c89dd4d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7bb33c7a68
commit
9e458c909c
@@ -1,6 +1,6 @@
|
||||
class Test {
|
||||
int testIncomplete(Object obj) {
|
||||
return switch(<error descr="'switch' expression does not cover all possible input values">obj</error>) {
|
||||
return <error descr="Switch expression should produce a result in all execution paths">switch</error>(obj) {
|
||||
case String s when<EOLError descr="Expression expected"></EOLError><EOLError descr="':' or '->' expected"></EOLError>
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class Test {
|
||||
int testIncomplete(Object obj) {
|
||||
return switch(<error descr="'switch' expression does not cover all possible input values">obj</error>) {
|
||||
return <error descr="Switch expression should produce a result in all execution paths">switch</error>(obj) {
|
||||
case String s when<EOLError descr="Expression expected"></EOLError><EOLError descr="':' or '->' expected"></EOLError>
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user