mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-09 14:50:04 +07:00
- changed behaviour in safe way by introducing new method to check that particular expression does not depend on committed PSI GitOrigin-RevId: f5ec732613cdafdcef8a1d48eb8d04135c634047
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);
|
|
}
|
|
} |