mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
CPP-16098 - Lags during inplace rename typing
- call `commitDocument` explicitly in cases when `calculateQuickResult` can redirect it's calculation to heavy `calculateResult` GitOrigin-RevId: 41f0c47c57f4528d7d7a25208024ec28bb8c2e12
This commit is contained in:
committed by
intellij-monorepo-bot
parent
dc1a52762e
commit
e3ca319824
@@ -0,0 +1,24 @@
|
||||
|
||||
class Test {
|
||||
|
||||
private boolean test(String s) {
|
||||
if (s == null) return false;
|
||||
s = s.trim();
|
||||
if (s.isEmpty()) return false;
|
||||
int i;
|
||||
try {
|
||||
i = Integer.parseInt(s);
|
||||
}
|
||||
catch (NumberFormatException ex) {
|
||||
return false;
|
||||
}
|
||||
return i > 0;
|
||||
}
|
||||
|
||||
String use(String[] list) {
|
||||
for(String str : list) {
|
||||
if (!<caret>test(str)) break;
|
||||
System.out.println("Ok string: "+str);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user