From 64c766f622ff0697c3e5ab6fc645ca00f6e999b2 Mon Sep 17 00:00:00 2001 From: Tagir Valeev Date: Wed, 26 Feb 2025 12:00:09 +0100 Subject: [PATCH] [java-highlighting] Testdata: restore accidentally removed attributes Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only) GitOrigin-RevId: 6432a126ae165fe06a6549753082a650fb1161c2 --- .../IllegalFallthroughIn20Java.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlightingPatternsInSwitch/IllegalFallthroughIn20Java.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlightingPatternsInSwitch/IllegalFallthroughIn20Java.java index 0649e7c7a6a6..7b0c1a05519c 100644 --- a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlightingPatternsInSwitch/IllegalFallthroughIn20Java.java +++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlightingPatternsInSwitch/IllegalFallthroughIn20Java.java @@ -144,7 +144,7 @@ public class Main { void test14(Object obj) { switch (obj) { - case null, String s when s.isEmpty(), Integer i when i == 42 -> {} + case null, String s when s.isEmpty(), Integer i when i == 42 -> {} default -> {} } } @@ -172,7 +172,7 @@ public class Main { void test18(String s) { switch (s) { - case "hello", "world", null, String str when str.isEmpty() -> {} + case "hello", "world", null, String str when str.isEmpty() -> {} default -> {} } }