From 1661a37a46c42f54b2d16f895779d00903a5476b Mon Sep 17 00:00:00 2001 From: Mike McCandless Date: Thu, 13 Jul 2017 05:20:38 -0400 Subject: [PATCH] remove unecessary assert: the write method below has a real 'if' checking this, and custom readers and writers may not have this limit --- lucene/core/src/java/org/apache/lucene/util/OfflineSorter.java | 1 - 1 file changed, 1 deletion(-) diff --git a/lucene/core/src/java/org/apache/lucene/util/OfflineSorter.java b/lucene/core/src/java/org/apache/lucene/util/OfflineSorter.java index 7c6ed8d0595..86bcdef9339 100644 --- a/lucene/core/src/java/org/apache/lucene/util/OfflineSorter.java +++ b/lucene/core/src/java/org/apache/lucene/util/OfflineSorter.java @@ -608,7 +608,6 @@ public class OfflineSorter { int count = 0; while ((spare = iter.next()) != null) { - assert spare.length <= Short.MAX_VALUE; out.write(spare); count++; }