mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 06:36:56 +07:00
[spelling] Rename PROCESSING_TIME_LIMIT to include measure units to the name
GitOrigin-RevId: 4494e910f9b5ad19dba632a2e0c7775d3a864391
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a17e8c7366
commit
c4cf6472ee
@@ -114,21 +114,21 @@ public abstract class BaseSplitter implements Splitter {
|
||||
}
|
||||
}
|
||||
|
||||
private static final int PROCESSING_TIME_LIMIT = 500;
|
||||
private static final int PROCESSING_TIME_LIMIT_MS = 500;
|
||||
|
||||
/**
|
||||
* @throws TooLongBombedMatchingException in case processing is longer than {@link #PROCESSING_TIME_LIMIT}
|
||||
* @throws TooLongBombedMatchingException in case processing is longer than {@link #PROCESSING_TIME_LIMIT_MS}
|
||||
*/
|
||||
protected static CharSequence newBombedCharSequence(String text, TextRange range) {
|
||||
return newBombedCharSequence(range.substring(text));
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws TooLongBombedMatchingException in case processing is longer than {@link #PROCESSING_TIME_LIMIT}
|
||||
* @throws TooLongBombedMatchingException in case processing is longer than {@link #PROCESSING_TIME_LIMIT_MS}
|
||||
*/
|
||||
protected static CharSequence newBombedCharSequence(String substring) {
|
||||
return new StringUtil.BombedCharSequence(substring) {
|
||||
final long myTime = System.currentTimeMillis() + PROCESSING_TIME_LIMIT;
|
||||
final long myTime = System.currentTimeMillis() + PROCESSING_TIME_LIMIT_MS;
|
||||
|
||||
@Override
|
||||
protected void checkCanceled() {
|
||||
|
||||
Reference in New Issue
Block a user