diff --git a/lucene/core/src/java/org/apache/lucene/search/LRUQueryCache.java b/lucene/core/src/java/org/apache/lucene/search/LRUQueryCache.java index bea9a21f45a..da881421bf0 100644 --- a/lucene/core/src/java/org/apache/lucene/search/LRUQueryCache.java +++ b/lucene/core/src/java/org/apache/lucene/search/LRUQueryCache.java @@ -124,7 +124,7 @@ public class LRUQueryCache implements QueryCache, Accountable { this.maxSize = maxSize; this.maxRamBytesUsed = maxRamBytesUsed; this.leavesToCache = leavesToCache; - if (skipCacheFactor >= 1 == false) { // NaN >= 1 evaluates true + if (skipCacheFactor >= 1 == false) { // NaN >= 1 evaluates false throw new IllegalArgumentException("skipCacheFactor must be no less than 1, get " + skipCacheFactor); } this.skipCacheFactor = skipCacheFactor;