[spelling] Rename PROCESSING_TIME_LIMIT to include measure units to the name

GitOrigin-RevId: 4494e910f9b5ad19dba632a2e0c7775d3a864391
This commit is contained in:
Yuriy Artamonov
2024-07-30 12:34:20 +02:00
committed by intellij-monorepo-bot
parent a17e8c7366
commit c4cf6472ee

View File

@@ -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() {