mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
17 lines
319 B
Java
17 lines
319 B
Java
import org.jetbrains.annotations.Contract;
|
|
|
|
class Foo {
|
|
|
|
public void main(String s) {
|
|
for (int i = 0; i < 10; i++) {
|
|
assertTrue("str", s != null);
|
|
s.hashCode();
|
|
}
|
|
}
|
|
|
|
@Contract("_, false->fail")
|
|
void assertTrue(String msg, boolean value) {
|
|
if (!value) throw new RuntimeException();
|
|
}
|
|
|
|
} |