mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-20 02:15:59 +07:00
22 lines
403 B
Java
22 lines
403 B
Java
import org.jetbrains.annotations.NotNull;
|
|
import org.junit.Assert;
|
|
|
|
class Test {
|
|
|
|
public static void foo() {
|
|
String result = null;
|
|
try {
|
|
result = createString();
|
|
}
|
|
catch (Exception e) {
|
|
Assert.fail();
|
|
}
|
|
finally {
|
|
if (result == null) {
|
|
System.out.println("Analysis failed!");
|
|
}
|
|
}
|
|
}
|
|
|
|
private static native @NotNull String createString();
|
|
} |