You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Lucene.Net/Util/OfflineSorter.cs
+1-5Lines changed: 1 addition & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -670,7 +670,7 @@ public virtual void Write(byte[] bytes)
670
670
/// by the bytes.
671
671
/// </summary>
672
672
/// <exception cref="ArgumentNullException"><paramref name="bytes"/> is <c>null</c>.</exception>
673
-
/// <exception cref="ArgumentOutOfRangeException"><paramref name="off"/> or <paramref name="len"/> is less than 0, or <paramref name="len"/> is greater than <see cref="short.MaxValue"/>.</exception>
673
+
/// <exception cref="ArgumentOutOfRangeException"><paramref name="off"/> or <paramref name="len"/> is less than 0.</exception>
674
674
/// <exception cref="ArgumentException"><paramref name="off"/> and <paramref name="len"/> refer to a position outside of the array.</exception>
675
675
publicvirtualvoidWrite(byte[]bytes,intoff,intlen)
676
676
{
@@ -683,10 +683,6 @@ public virtual void Write(byte[] bytes, int off, int len)
683
683
if(off>bytes.Length-len)// Checks for int overflow
684
684
thrownewArgumentException("Index and length must refer to a location within the array.");
685
685
686
-
// Lucene 4.8.1 commit 9d10d6f92cc (no JIRA number given)
687
-
if(len>short.MaxValue)
688
-
thrownewArgumentOutOfRangeException(nameof(len),$"len must be <= {short.MaxValue}; got {len}");
0 commit comments