From c4cf6472eee85c42ca5ed4ae66e523f63bb97a75 Mon Sep 17 00:00:00 2001 From: Yuriy Artamonov Date: Tue, 30 Jul 2024 12:34:20 +0200 Subject: [PATCH] [spelling] Rename PROCESSING_TIME_LIMIT to include measure units to the name GitOrigin-RevId: 4494e910f9b5ad19dba632a2e0c7775d3a864391 --- .../intellij/spellchecker/inspections/BaseSplitter.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spellchecker/src/com/intellij/spellchecker/inspections/BaseSplitter.java b/spellchecker/src/com/intellij/spellchecker/inspections/BaseSplitter.java index 596097bb4e82..075aaa1ed3ea 100644 --- a/spellchecker/src/com/intellij/spellchecker/inspections/BaseSplitter.java +++ b/spellchecker/src/com/intellij/spellchecker/inspections/BaseSplitter.java @@ -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() {