mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-26 12:20:55 +07:00
11 lines
269 B
Java
11 lines
269 B
Java
// "Surround with try/catch" "true-preview"
|
|
import java.io.IOException;
|
|
|
|
class C {
|
|
static final String S = getSt<caret>ring();
|
|
|
|
static String getString() throws IOException {
|
|
if(Math.random() > 0.5) throw new IOException();
|
|
return "foo";
|
|
}
|
|
} |