From 697f2f14230568132b03458cf15c96bf6a22b2b2 Mon Sep 17 00:00:00 2001 From: Paul Irwin Date: Fri, 13 Dec 2024 09:51:18 -0700 Subject: [PATCH] Change indentation of #nullable --- .../VectorHighlight/FieldPhraseList.cs | 8 ++++---- .../VectorHighlight/FieldTermStack.cs | 4 ++-- src/Lucene.Net.QueryParser/Surround/Query/SimpleTerm.cs | 4 ++-- src/Lucene.Net.Suggest/Suggest/Fst/FSTCompletion.cs | 4 ++-- src/Lucene.Net/Index/IndexCommit.cs | 4 ++-- src/Lucene.Net/Index/Term.cs | 4 ++-- src/Lucene.Net/Util/Automaton/State.cs | 4 ++-- src/Lucene.Net/Util/BytesRef.cs | 4 ++-- src/Lucene.Net/Util/CharsRef.cs | 4 ++-- src/Lucene.Net/Util/IntsRef.cs | 4 ++-- src/Lucene.Net/Util/LongsRef.cs | 4 ++-- src/Lucene.Net/Util/Mutable/MutableValue.cs | 4 ++-- 12 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/Lucene.Net.Highlighter/VectorHighlight/FieldPhraseList.cs b/src/Lucene.Net.Highlighter/VectorHighlight/FieldPhraseList.cs index 0260601bd6..7ece6682d8 100644 --- a/src/Lucene.Net.Highlighter/VectorHighlight/FieldPhraseList.cs +++ b/src/Lucene.Net.Highlighter/VectorHighlight/FieldPhraseList.cs @@ -471,7 +471,7 @@ public override bool Equals(object obj) } #region Operator overrides - #nullable enable +#nullable enable // LUCENENET specific - per csharpsquid:S1210, IComparable should override comparison operators public static bool operator <(WeightedPhraseInfo? left, WeightedPhraseInfo? right) @@ -492,7 +492,7 @@ public override bool Equals(object obj) public static bool operator !=(WeightedPhraseInfo? left, WeightedPhraseInfo? right) => !(left == right); - #nullable restore +#nullable restore #endregion /// @@ -569,7 +569,7 @@ public override string ToString() } #region Operator overrides - #nullable enable +#nullable enable // LUCENENET specific - per csharpsquid:S1210, IComparable should override comparison operators public static bool operator <(Toffs? left, Toffs? right) @@ -590,7 +590,7 @@ public override string ToString() public static bool operator !=(Toffs? left, Toffs? right) => !(left == right); - #nullable restore +#nullable restore #endregion } } diff --git a/src/Lucene.Net.Highlighter/VectorHighlight/FieldTermStack.cs b/src/Lucene.Net.Highlighter/VectorHighlight/FieldTermStack.cs index 974ec52f22..b8230ba33c 100644 --- a/src/Lucene.Net.Highlighter/VectorHighlight/FieldTermStack.cs +++ b/src/Lucene.Net.Highlighter/VectorHighlight/FieldTermStack.cs @@ -286,7 +286,7 @@ public override bool Equals(object obj) } #region Operator overrides - #nullable enable +#nullable enable // LUCENENET specific - per csharpsquid:S1210, IComparable should override comparison operators public static bool operator <(TermInfo? left, TermInfo? right) @@ -307,7 +307,7 @@ public override bool Equals(object obj) public static bool operator !=(TermInfo? left, TermInfo? right) => !(left == right); - #nullable restore +#nullable restore #endregion } } diff --git a/src/Lucene.Net.QueryParser/Surround/Query/SimpleTerm.cs b/src/Lucene.Net.QueryParser/Surround/Query/SimpleTerm.cs index db837863fd..cf9b006d95 100644 --- a/src/Lucene.Net.QueryParser/Surround/Query/SimpleTerm.cs +++ b/src/Lucene.Net.QueryParser/Surround/Query/SimpleTerm.cs @@ -118,7 +118,7 @@ public override Search.Query MakeLuceneQueryFieldNoBoost(string fieldName, Basic } #region Operator overrides - #nullable enable +#nullable enable // LUCENENET specific - per csharpsquid:S1210, IComparable should override comparison operators // NOTE: The CompareTo method is marked as obsolete, but we still need to implement the comparison operators // since this is public in 4.8. Suppressing the obsolete warning here. @@ -143,7 +143,7 @@ public override Search.Query MakeLuceneQueryFieldNoBoost(string fieldName, Basic public static bool operator !=(SimpleTerm? left, SimpleTerm? right) => !(left == right); - #nullable restore +#nullable restore #endregion } } diff --git a/src/Lucene.Net.Suggest/Suggest/Fst/FSTCompletion.cs b/src/Lucene.Net.Suggest/Suggest/Fst/FSTCompletion.cs index 108e710c72..06587b33ca 100644 --- a/src/Lucene.Net.Suggest/Suggest/Fst/FSTCompletion.cs +++ b/src/Lucene.Net.Suggest/Suggest/Fst/FSTCompletion.cs @@ -78,7 +78,7 @@ public int CompareTo(Completion o) public override int GetHashCode() => base.GetHashCode(); #region Operator overrides - #nullable enable +#nullable enable // LUCENENET specific - per csharpsquid:S1210, IComparable should override comparison operators public static bool operator <(Completion? left, Completion? right) @@ -99,7 +99,7 @@ public int CompareTo(Completion o) public static bool operator !=(Completion? left, Completion? right) => !(left == right); - #nullable restore +#nullable restore #endregion } diff --git a/src/Lucene.Net/Index/IndexCommit.cs b/src/Lucene.Net/Index/IndexCommit.cs index 85abd478ac..303aa328ec 100644 --- a/src/Lucene.Net/Index/IndexCommit.cs +++ b/src/Lucene.Net/Index/IndexCommit.cs @@ -147,7 +147,7 @@ public virtual int CompareTo(IndexCommit commit) } #region Operator overrides - #nullable enable +#nullable enable // LUCENENET specific - per csharpsquid:S1210, IComparable should override comparison operators public static bool operator <(IndexCommit? left, IndexCommit? right) @@ -168,7 +168,7 @@ public virtual int CompareTo(IndexCommit commit) public static bool operator !=(IndexCommit? left, IndexCommit? right) => !(left == right); - #nullable restore +#nullable restore #endregion } } diff --git a/src/Lucene.Net/Index/Term.cs b/src/Lucene.Net/Index/Term.cs index 1c6895aced..6e76a79517 100644 --- a/src/Lucene.Net/Index/Term.cs +++ b/src/Lucene.Net/Index/Term.cs @@ -191,7 +191,7 @@ public override string ToString() } #region Operator overrides - #nullable enable +#nullable enable // LUCENENET specific - per csharpsquid:S1210, IComparable should override comparison operators public static bool operator <(Term? left, Term? right) @@ -212,7 +212,7 @@ public override string ToString() public static bool operator !=(Term? left, Term? right) => !(left == right); - #nullable restore +#nullable restore #endregion } } diff --git a/src/Lucene.Net/Util/Automaton/State.cs b/src/Lucene.Net/Util/Automaton/State.cs index a68e299fac..ccc5ca5aff 100644 --- a/src/Lucene.Net/Util/Automaton/State.cs +++ b/src/Lucene.Net/Util/Automaton/State.cs @@ -377,7 +377,7 @@ public override int GetHashCode() } #region Operator overrides - #nullable enable +#nullable enable // LUCENENET specific - per csharpsquid:S1210, IComparable should override comparison operators public static bool operator <(State? left, State? right) @@ -398,7 +398,7 @@ public override int GetHashCode() public static bool operator !=(State? left, State? right) => !(left == right); - #nullable restore +#nullable restore #endregion } } diff --git a/src/Lucene.Net/Util/BytesRef.cs b/src/Lucene.Net/Util/BytesRef.cs index 9946756301..8012c77282 100644 --- a/src/Lucene.Net/Util/BytesRef.cs +++ b/src/Lucene.Net/Util/BytesRef.cs @@ -402,7 +402,7 @@ public bool IsValid() } #region Operator overrides - #nullable enable +#nullable enable // LUCENENET specific - per csharpsquid:S1210, IComparable should override comparison operators public static bool operator <(BytesRef? left, BytesRef? right) @@ -423,7 +423,7 @@ public bool IsValid() public static bool operator !=(BytesRef? left, BytesRef? right) => !(left == right); - #nullable restore +#nullable restore #endregion } diff --git a/src/Lucene.Net/Util/CharsRef.cs b/src/Lucene.Net/Util/CharsRef.cs index 78c1436652..48a35debbe 100644 --- a/src/Lucene.Net/Util/CharsRef.cs +++ b/src/Lucene.Net/Util/CharsRef.cs @@ -445,7 +445,7 @@ public bool IsValid() } #region Operator overrides - #nullable enable +#nullable enable // LUCENENET specific - per csharpsquid:S1210, IComparable should override comparison operators public static bool operator <(CharsRef? left, CharsRef? right) @@ -466,7 +466,7 @@ public bool IsValid() public static bool operator !=(CharsRef? left, CharsRef? right) => !(left == right); - #nullable restore +#nullable restore #endregion } } diff --git a/src/Lucene.Net/Util/IntsRef.cs b/src/Lucene.Net/Util/IntsRef.cs index 53216c4a51..901dbcf792 100644 --- a/src/Lucene.Net/Util/IntsRef.cs +++ b/src/Lucene.Net/Util/IntsRef.cs @@ -295,7 +295,7 @@ public bool IsValid() } #region Operator overrides - #nullable enable +#nullable enable // LUCENENET specific - per csharpsquid:S1210, IComparable should override comparison operators public static bool operator <(Int32sRef? left, Int32sRef? right) @@ -316,7 +316,7 @@ public bool IsValid() public static bool operator !=(Int32sRef? left, Int32sRef? right) => !(left == right); - #nullable restore +#nullable restore #endregion } } diff --git a/src/Lucene.Net/Util/LongsRef.cs b/src/Lucene.Net/Util/LongsRef.cs index efa43da6db..f15578afb4 100644 --- a/src/Lucene.Net/Util/LongsRef.cs +++ b/src/Lucene.Net/Util/LongsRef.cs @@ -294,7 +294,7 @@ public bool IsValid() } #region Operator overrides - #nullable enable +#nullable enable // LUCENENET specific - per csharpsquid:S1210, IComparable should override comparison operators public static bool operator <(Int64sRef? left, Int64sRef? right) @@ -315,7 +315,7 @@ public bool IsValid() public static bool operator !=(Int64sRef? left, Int64sRef? right) => !(left == right); - #nullable restore +#nullable restore #endregion } } diff --git a/src/Lucene.Net/Util/Mutable/MutableValue.cs b/src/Lucene.Net/Util/Mutable/MutableValue.cs index a1ec7dadc3..62762057c4 100644 --- a/src/Lucene.Net/Util/Mutable/MutableValue.cs +++ b/src/Lucene.Net/Util/Mutable/MutableValue.cs @@ -93,7 +93,7 @@ public override string ToString() } #region Operator overrides - #nullable enable +#nullable enable // LUCENENET specific - per csharpsquid:S1210, IComparable should override comparison operators public static bool operator <(MutableValue? left, MutableValue? right) @@ -114,7 +114,7 @@ public override string ToString() public static bool operator !=(MutableValue? left, MutableValue? right) => !(left == right); - #nullable restore +#nullable restore #endregion } }