mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-07 15:35:40 +07:00
GitOrigin-RevId: d2908c8bd460b4488f2c2a7c86c8f80899e2667c
20 lines
305 B
Java
20 lines
305 B
Java
package test;
|
|
|
|
public class Test1 {
|
|
void test(){
|
|
String s = "sample";
|
|
switch (s) {
|
|
case "one" -> extracted();
|
|
default -> System.out.println();
|
|
};
|
|
}
|
|
|
|
private void extracted() {
|
|
foo();
|
|
}
|
|
|
|
String foo(){
|
|
return "42";
|
|
}
|
|
}
|