mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-06 01:43:57 +07:00
GitOrigin-RevId: 7562bb688c2bf6e93bab7537113bb54246949006
18 lines
434 B
Java
18 lines
434 B
Java
// "Replace with 'switch' expression" "true-preview"
|
|
public final class A {
|
|
private void appendColored(String text) {
|
|
String style = getRegularAttributes();
|
|
switc<caret>h (text) {
|
|
case "failed":
|
|
style = "ERROR_ATTRIBUTES";
|
|
break;
|
|
case "ignored":
|
|
style = "IGNORE_ATTRIBUTES";
|
|
break;
|
|
}
|
|
}
|
|
|
|
private static String getRegularAttributes() {
|
|
return "REGULAR_ATTRIBUTES";
|
|
}
|
|
} |