mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-04 04:09:09 +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
13 lines
229 B
Java
13 lines
229 B
Java
|
|
class Test {
|
|
boolean check(String s) {
|
|
if (s == null) return false;
|
|
s = s.trim();
|
|
if (s.isEmpty()) return false;
|
|
return s.length() % 2 == 0;
|
|
}
|
|
|
|
boolean use(String s) {
|
|
return !<caret>check(s + s);
|
|
}
|
|
} |