mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-19 20:41:09 +07:00
GitOrigin-RevId: e836468e05db28157713e9edd3c70382f8ecdebc
17 lines
289 B
Java
17 lines
289 B
Java
class Test {
|
|
|
|
private boolean test(String s) {
|
|
if(s != null) {
|
|
s = s.trim();
|
|
if (s.isEmpty()) {
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
String use(String s) {
|
|
if(<caret>test(s+s)) throw new IllegalArgumentException();
|
|
else return "nice";
|
|
}
|
|
} |