5 Commits

Author SHA1 Message Date
Mikhail Pyltsin
6f2c4ec3f3 [java-highlighting] IDEA-324625 Highlight using non-final variable in guard
GitOrigin-RevId: 0cedf700c6960e15104409b9cc411e8a5bd15fea
2023-07-12 11:06:37 +00:00
Andrey Cherkasov
9ccc820db2 [java] Remove Java 17 Preview and Java 18 Preview language levels
IDEA-314047

GitOrigin-RevId: 8c24deb2dfb5361f08857d7933ab290476f4ce84
2023-06-19 17:37:05 +00:00
Nikita Eshkeev
e807464037 [java][switch] IDEA-273874 "Can't resolve symbol" false-negative in switch with fall-through semantics
Resolve as many references as possible in order to keep the GoToSymbol action available but move invalid references in pattern matching for switch to the highlighter pass as the code review suggests

GitOrigin-RevId: 2339b7c9cd02b0d1e3c793c30a8a3338c28c9b73
2021-07-26 08:04:43 +00:00
Nikita Eshkeev
196a98de7d [java][switch completion] IDEA-273874 "Can't resolve symbol" false-negative in switch with fall-through semantics
When resolving PsiSwitchLabelStatement check if it participates in the fall-through semantics and if so, stop resolving unless the previous PsiSwitchLabelStatement is of the "case null" form.

GitOrigin-RevId: 74af92cde51a8d8ec3bae1c2cd3819a09a44cdf9
2021-07-19 20:32:24 +00:00
Nikita Eshkeev
2ca73ddb92 [java][resolve] IDEA-271676 Pattern matching for switch: fix resolve
Fix resolve in PsiSwitchLabelStatementImpl.

GitOrigin-RevId: 88d00bf2c7d08f2e3e4950218bcada69d55b0772
2021-07-02 20:09:05 +00:00