Skip to content

Commit

Permalink
BREAKING: Lucene.Net.Search.FieldComparer: Added internal constructor…
Browse files Browse the repository at this point in the history
… so users upgrading from older versions of Lucene.NET don't attempt to use this class and instead use the Lucene equivalent class, FieldComparer<T>.
  • Loading branch information
NightOwl888 committed Feb 9, 2024
1 parent 8e60f39 commit 7fa9c75
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Lucene.Net/Search/FieldComparator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ public override int CompareValues(object first, object second)
// type parameter to access these nested types. Also moving non-generic methods here for casting without generics.
public abstract class FieldComparer
{
// LUCENENET: This class is not intended for user subclassing. Use FieldComparer<T> instead.
internal FieldComparer() { }

/// <summary>
/// Returns -1 if first is less than second. Default
/// implementation to assume the type implements <see cref="IComparable{T}"/> and
Expand Down

0 comments on commit 7fa9c75

Please sign in to comment.