Skip to content

Commit

Permalink
Change indentation of #nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirwin committed Dec 13, 2024
1 parent e93ef8c commit 697f2f1
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 26 deletions.
8 changes: 4 additions & 4 deletions src/Lucene.Net.Highlighter/VectorHighlight/FieldPhraseList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ public override bool Equals(object obj)
}

#region Operator overrides
#nullable enable
#nullable enable
// LUCENENET specific - per csharpsquid:S1210, IComparable<T> should override comparison operators

public static bool operator <(WeightedPhraseInfo? left, WeightedPhraseInfo? right)
Expand All @@ -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

/// <summary>
Expand Down Expand Up @@ -569,7 +569,7 @@ public override string ToString()
}

#region Operator overrides
#nullable enable
#nullable enable
// LUCENENET specific - per csharpsquid:S1210, IComparable<T> should override comparison operators

public static bool operator <(Toffs? left, Toffs? right)
Expand All @@ -590,7 +590,7 @@ public override string ToString()
public static bool operator !=(Toffs? left, Toffs? right)
=> !(left == right);

#nullable restore
#nullable restore
#endregion
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/Lucene.Net.Highlighter/VectorHighlight/FieldTermStack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ public override bool Equals(object obj)
}

#region Operator overrides
#nullable enable
#nullable enable
// LUCENENET specific - per csharpsquid:S1210, IComparable<T> should override comparison operators

public static bool operator <(TermInfo? left, TermInfo? right)
Expand All @@ -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
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/Lucene.Net.QueryParser/Surround/Query/SimpleTerm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T> 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.
Expand All @@ -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
}
}
4 changes: 2 additions & 2 deletions src/Lucene.Net.Suggest/Suggest/Fst/FSTCompletion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T> should override comparison operators

public static bool operator <(Completion? left, Completion? right)
Expand All @@ -99,7 +99,7 @@ public int CompareTo(Completion o)
public static bool operator !=(Completion? left, Completion? right)
=> !(left == right);

#nullable restore
#nullable restore
#endregion
}

Expand Down
4 changes: 2 additions & 2 deletions src/Lucene.Net/Index/IndexCommit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public virtual int CompareTo(IndexCommit commit)
}

#region Operator overrides
#nullable enable
#nullable enable
// LUCENENET specific - per csharpsquid:S1210, IComparable<T> should override comparison operators

public static bool operator <(IndexCommit? left, IndexCommit? right)
Expand All @@ -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
}
}
4 changes: 2 additions & 2 deletions src/Lucene.Net/Index/Term.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public override string ToString()
}

#region Operator overrides
#nullable enable
#nullable enable
// LUCENENET specific - per csharpsquid:S1210, IComparable<T> should override comparison operators

public static bool operator <(Term? left, Term? right)
Expand All @@ -212,7 +212,7 @@ public override string ToString()
public static bool operator !=(Term? left, Term? right)
=> !(left == right);

#nullable restore
#nullable restore
#endregion
}
}
4 changes: 2 additions & 2 deletions src/Lucene.Net/Util/Automaton/State.cs
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ public override int GetHashCode()
}

#region Operator overrides
#nullable enable
#nullable enable
// LUCENENET specific - per csharpsquid:S1210, IComparable<T> should override comparison operators

public static bool operator <(State? left, State? right)
Expand All @@ -398,7 +398,7 @@ public override int GetHashCode()
public static bool operator !=(State? left, State? right)
=> !(left == right);

#nullable restore
#nullable restore
#endregion
}
}
4 changes: 2 additions & 2 deletions src/Lucene.Net/Util/BytesRef.cs
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ public bool IsValid()
}

#region Operator overrides
#nullable enable
#nullable enable
// LUCENENET specific - per csharpsquid:S1210, IComparable<T> should override comparison operators

public static bool operator <(BytesRef? left, BytesRef? right)
Expand All @@ -423,7 +423,7 @@ public bool IsValid()
public static bool operator !=(BytesRef? left, BytesRef? right)
=> !(left == right);

#nullable restore
#nullable restore
#endregion
}

Expand Down
4 changes: 2 additions & 2 deletions src/Lucene.Net/Util/CharsRef.cs
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ public bool IsValid()
}

#region Operator overrides
#nullable enable
#nullable enable
// LUCENENET specific - per csharpsquid:S1210, IComparable<T> should override comparison operators

public static bool operator <(CharsRef? left, CharsRef? right)
Expand All @@ -466,7 +466,7 @@ public bool IsValid()
public static bool operator !=(CharsRef? left, CharsRef? right)
=> !(left == right);

#nullable restore
#nullable restore
#endregion
}
}
4 changes: 2 additions & 2 deletions src/Lucene.Net/Util/IntsRef.cs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public bool IsValid()
}

#region Operator overrides
#nullable enable
#nullable enable
// LUCENENET specific - per csharpsquid:S1210, IComparable<T> should override comparison operators

public static bool operator <(Int32sRef? left, Int32sRef? right)
Expand All @@ -316,7 +316,7 @@ public bool IsValid()
public static bool operator !=(Int32sRef? left, Int32sRef? right)
=> !(left == right);

#nullable restore
#nullable restore
#endregion
}
}
4 changes: 2 additions & 2 deletions src/Lucene.Net/Util/LongsRef.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ public bool IsValid()
}

#region Operator overrides
#nullable enable
#nullable enable
// LUCENENET specific - per csharpsquid:S1210, IComparable<T> should override comparison operators

public static bool operator <(Int64sRef? left, Int64sRef? right)
Expand All @@ -315,7 +315,7 @@ public bool IsValid()
public static bool operator !=(Int64sRef? left, Int64sRef? right)
=> !(left == right);

#nullable restore
#nullable restore
#endregion
}
}
4 changes: 2 additions & 2 deletions src/Lucene.Net/Util/Mutable/MutableValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public override string ToString()
}

#region Operator overrides
#nullable enable
#nullable enable
// LUCENENET specific - per csharpsquid:S1210, IComparable<T> should override comparison operators

public static bool operator <(MutableValue? left, MutableValue? right)
Expand All @@ -114,7 +114,7 @@ public override string ToString()
public static bool operator !=(MutableValue? left, MutableValue? right)
=> !(left == right);

#nullable restore
#nullable restore
#endregion
}
}

0 comments on commit 697f2f1

Please sign in to comment.