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:20:52 UTC

lucene-solr:master: 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/master 22ec456b0 -> 1661a37a4


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/1661a37a
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/1661a37a
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/1661a37a

Branch: refs/heads/master
Commit: 1661a37a46c42f54b2d16f895779d00903a5476b
Parents: 22ec456
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:20:38 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/1661a37a/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++;
         }