mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 19:28:23 +07:00
java highlighting tests moved to community
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
public class Test {
|
||||
private static final String BAZ = "baz";
|
||||
|
||||
private void stringSwitch() {
|
||||
final String bar = "bar";
|
||||
String key = "key";
|
||||
switch (<error>key</error>) {
|
||||
case "": {
|
||||
System.out.println("Nothing");
|
||||
break;
|
||||
}
|
||||
case "foo":
|
||||
case bar:
|
||||
case BAZ: {
|
||||
System.out.println("Matched key");
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user