You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2017/07/13 09:21:22 UTC
lucene-solr:branch_7x: remove unecessary assert: the write method
below has a real 'if' checking this,
and custom readers and writers may not have this limit
Repository: lucene-solr
Updated Branches:
refs/heads/branch_7x 01d18b7a6 -> d6c6edf78
remove unecessary assert: the write method below has a real 'if' checking this, and custom readers and writers may not have this limit
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/d6c6edf7
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/d6c6edf7
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/d6c6edf7
Branch: refs/heads/branch_7x
Commit: d6c6edf7842d1392a2bbbbbe4c99cddff186f794
Parents: 01d18b7
Author: Mike McCandless <mi...@apache.org>
Authored: Thu Jul 13 05:20:38 2017 -0400
Committer: Mike McCandless <mi...@apache.org>
Committed: Thu Jul 13 05:21:12 2017 -0400
----------------------------------------------------------------------
lucene/core/src/java/org/apache/lucene/util/OfflineSorter.java | 1 -
1 file changed, 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/d6c6edf7/lucene/core/src/java/org/apache/lucene/util/OfflineSorter.java
----------------------------------------------------------------------
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 7c6ed8d..86bcdef 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++;
}