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/Index/TieredMergePolicy.cs
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -152,7 +152,7 @@ public virtual double MaxMergedSegmentMB
152
152
{
153
153
if(value<0.0)
154
154
{
155
-
thrownewArgumentOutOfRangeException(nameof(MaxMergedSegmentMB),"maxMergedSegmentMB must be >=0 (got "+value.ToString("0.0")+")");// LUCENENET specific - changed from IllegalArgumentException to ArgumentOutOfRangeException (.NET convention)
155
+
thrownewArgumentOutOfRangeException(nameof(MaxMergedSegmentMB),"maxMergedSegmentMB must be >=0 (got "+J2N.Numerics.Double.ToString(value)+")");// LUCENENET specific - changed from IllegalArgumentException to ArgumentOutOfRangeException (.NET convention)
@@ -175,7 +175,7 @@ public virtual double ReclaimDeletesWeight
175
175
{
176
176
if(value<0.0)
177
177
{
178
-
thrownewArgumentOutOfRangeException(nameof(ReclaimDeletesWeight),"reclaimDeletesWeight must be >= 0.0 (got "+value.ToString("0.0")+")");// LUCENENET specific - changed from IllegalArgumentException to ArgumentOutOfRangeException (.NET convention)
178
+
thrownewArgumentOutOfRangeException(nameof(ReclaimDeletesWeight),"reclaimDeletesWeight must be >= 0.0 (got "+J2N.Numerics.Double.ToString(value)+")");// LUCENENET specific - changed from IllegalArgumentException to ArgumentOutOfRangeException (.NET convention)
179
179
}
180
180
reclaimDeletesWeight=value;
181
181
}
@@ -195,7 +195,7 @@ public virtual double FloorSegmentMB
195
195
{
196
196
if(value<=0.0)
197
197
{
198
-
thrownewArgumentOutOfRangeException(nameof(FloorSegmentMB),"floorSegmentMB must be >= 0.0 (got "+value.ToString("0.0")+")");// LUCENENET specific - changed from IllegalArgumentException to ArgumentOutOfRangeException (.NET convention)
198
+
thrownewArgumentOutOfRangeException(nameof(FloorSegmentMB),"floorSegmentMB must be >= 0.0 (got "+J2N.Numerics.Double.ToString(value)+")");// LUCENENET specific - changed from IllegalArgumentException to ArgumentOutOfRangeException (.NET convention)
@@ -214,7 +214,7 @@ public virtual double ForceMergeDeletesPctAllowed
214
214
{
215
215
if(value<0.0||value>100.0)
216
216
{
217
-
thrownewArgumentOutOfRangeException(nameof(ForceMergeDeletesPctAllowed),"forceMergeDeletesPctAllowed must be between 0.0 and 100.0 inclusive (got "+value.ToString("0.0")+")");// LUCENENET specific - changed from IllegalArgumentException to ArgumentOutOfRangeException (.NET convention)
217
+
thrownewArgumentOutOfRangeException(nameof(ForceMergeDeletesPctAllowed),"forceMergeDeletesPctAllowed must be between 0.0 and 100.0 inclusive (got "+J2N.Numerics.Double.ToString(value)+")");// LUCENENET specific - changed from IllegalArgumentException to ArgumentOutOfRangeException (.NET convention)
218
218
}
219
219
forceMergeDeletesPctAllowed=value;
220
220
}
@@ -237,7 +237,7 @@ public virtual double SegmentsPerTier
237
237
{
238
238
if(value<2.0)
239
239
{
240
-
thrownewArgumentOutOfRangeException(nameof(SegmentsPerTier),"segmentsPerTier must be >= 2.0 (got "+value.ToString("0.0")+")");// LUCENENET specific - changed from IllegalArgumentException to ArgumentOutOfRangeException (.NET convention)
240
+
thrownewArgumentOutOfRangeException(nameof(SegmentsPerTier),"segmentsPerTier must be >= 2.0 (got "+J2N.Numerics.Double.ToString(value)+")");// LUCENENET specific - changed from IllegalArgumentException to ArgumentOutOfRangeException (.NET convention)
0 commit comments