mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 10:21:05 +07:00
- removed `commitDocument` call when `isQuick` argument is passed - pass `element` or `null` to `equalsToText` call (since there is not real need to take it for text comparison) GitOrigin-RevId: 27c5e1a2f484fc56d41dfd210832ae94c9a9b7ab
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";
|
|
}
|
|
} |