diff --git a/src/Lucene.Net.Spatial/Prefix/ContainsPrefixTreeFilter.cs b/src/Lucene.Net.Spatial/Prefix/ContainsPrefixTreeFilter.cs
index f28376ab3c..f8d46a035c 100644
--- a/src/Lucene.Net.Spatial/Prefix/ContainsPrefixTreeFilter.cs
+++ b/src/Lucene.Net.Spatial/Prefix/ContainsPrefixTreeFilter.cs
@@ -30,7 +30,7 @@ namespace Lucene.Net.Spatial.Prefix
///
/// Finds docs where its indexed shape
/// the query shape. For use on .
- ///
+ ///
/// @lucene.experimental
///
public class ContainsPrefixTreeFilter : AbstractPrefixTreeFilter
@@ -114,7 +114,7 @@ public ContainsVisitor(ContainsPrefixTreeFilter outerInstance, AtomicReaderConte
{
combinedSubResults = GetDocs(subCell, acceptContains);
}
- else if (!outerInstance.m_multiOverlappingIndexedShapes &&
+ else if (!outerInstance.m_multiOverlappingIndexedShapes &&
subCell.ShapeRel == SpatialRelation.Within)
{
combinedSubResults = GetLeafDocs(subCell, acceptContains); //recursion
@@ -123,7 +123,7 @@ public ContainsVisitor(ContainsPrefixTreeFilter outerInstance, AtomicReaderConte
{
combinedSubResults = Visit(subCell, acceptContains);
}
-
+
if (combinedSubResults is null)
{
break;
@@ -131,7 +131,7 @@ public ContainsVisitor(ContainsPrefixTreeFilter outerInstance, AtomicReaderConte
acceptContains = combinedSubResults;//has the 'AND' effect on next iteration
}
-
+
// Result: OR the leaf docs with AND of all child results
if (combinedSubResults != null)
{
@@ -331,7 +331,7 @@ public DocIdSetIteratorAnonymousClass(int size, int[] docs)
this.docs = docs;
}
- internal int idx = -1;
+ private int idx = -1;
public override int DocID
{
diff --git a/src/Lucene.Net.Spatial/Serialized/SerializedDVStrategy.cs b/src/Lucene.Net.Spatial/Serialized/SerializedDVStrategy.cs
index 0d6d82108d..fa72144330 100644
--- a/src/Lucene.Net.Spatial/Serialized/SerializedDVStrategy.cs
+++ b/src/Lucene.Net.Spatial/Serialized/SerializedDVStrategy.cs
@@ -258,15 +258,15 @@ public override FunctionValues GetValues(IDictionary context, AtomicReaderContex
BinaryDocValues docValues = readerContext.AtomicReader.GetBinaryDocValues(fieldName);
- return new FuctionValuesAnonymousClass(this, docValues);
+ return new FunctionValuesAnonymousClass(this, docValues);
}
- private sealed class FuctionValuesAnonymousClass : FunctionValues
+ private sealed class FunctionValuesAnonymousClass : FunctionValues
{
private readonly ShapeDocValueSource outerInstance;
private readonly BinaryDocValues docValues;
- public FuctionValuesAnonymousClass(ShapeDocValueSource outerInstance, BinaryDocValues docValues)
+ public FunctionValuesAnonymousClass(ShapeDocValueSource outerInstance, BinaryDocValues docValues)
{
// LUCENENET specific - added guard clauses
this.outerInstance = outerInstance ?? throw new ArgumentNullException(nameof(outerInstance));
@@ -276,7 +276,7 @@ public FuctionValuesAnonymousClass(ShapeDocValueSource outerInstance, BinaryDocV
private int bytesRefDoc = -1;
private readonly BytesRef bytesRef = new BytesRef();//scratch
- internal bool FillBytes(int doc)
+ private bool FillBytes(int doc)
{
if (bytesRefDoc != doc)
{
diff --git a/src/Lucene.Net.TestFramework/Codecs/Compressing/Dummy/DummyCompressingCodec.cs b/src/Lucene.Net.TestFramework/Codecs/Compressing/Dummy/DummyCompressingCodec.cs
index 8b5dc18493..ddccac190f 100644
--- a/src/Lucene.Net.TestFramework/Codecs/Compressing/Dummy/DummyCompressingCodec.cs
+++ b/src/Lucene.Net.TestFramework/Codecs/Compressing/Dummy/DummyCompressingCodec.cs
@@ -32,9 +32,6 @@ public class DummyCompressingCodec : CompressingCodec
private sealed class CompressionModeAnonymousClass : CompressionMode
{
- public CompressionModeAnonymousClass()
- { }
-
public override Compressor NewCompressor()
{
return DUMMY_COMPRESSOR;
@@ -95,4 +92,4 @@ public DummyCompressingCodec()
: this(1 << 14, false)
{ }
}
-}
\ No newline at end of file
+}
diff --git a/src/Lucene.Net.TestFramework/Codecs/RAMOnly/RAMOnlyPostingsFormat.cs b/src/Lucene.Net.TestFramework/Codecs/RAMOnly/RAMOnlyPostingsFormat.cs
index 6f198afc48..397edb726a 100644
--- a/src/Lucene.Net.TestFramework/Codecs/RAMOnly/RAMOnlyPostingsFormat.cs
+++ b/src/Lucene.Net.TestFramework/Codecs/RAMOnly/RAMOnlyPostingsFormat.cs
@@ -49,9 +49,6 @@ public sealed class RAMOnlyPostingsFormat : PostingsFormat
private sealed class ComparerAnonymousClass : IComparer
#pragma warning restore 659
{
- public ComparerAnonymousClass()
- { }
-
public int Compare(BytesRef t1, BytesRef t2)
{
var b1 = t1.Bytes;
@@ -288,7 +285,7 @@ public override PostingsConsumer StartTerm(BytesRef text)
return postingsWriter;
}
- public override IComparer Comparer
+ public override IComparer Comparer
=> BytesRef.UTF8SortedAsUnicodeComparer;
public override void FinishTerm(BytesRef text, TermStats stats)
diff --git a/src/Lucene.Net.TestFramework/Index/RandomIndexWriter.cs b/src/Lucene.Net.TestFramework/Index/RandomIndexWriter.cs
index daa030d0ca..43a1175e47 100644
--- a/src/Lucene.Net.TestFramework/Index/RandomIndexWriter.cs
+++ b/src/Lucene.Net.TestFramework/Index/RandomIndexWriter.cs
@@ -176,7 +176,7 @@ public EnumeratorAnonymousClass(EnumerableAnonymousClass outerIn
this.outerInstance = outerInstance;
}
- internal bool done;
+ private bool done;
private IEnumerable current;
public bool MoveNext()
@@ -265,7 +265,7 @@ public IEnumerator> GetEnumerator()
return new EnumeratorAnonymousClass2(this);
}
- IEnumerator IEnumerable.GetEnumerator()
+ IEnumerator IEnumerable.GetEnumerator()
=> GetEnumerator();
private sealed class EnumeratorAnonymousClass2 : IEnumerator>
@@ -277,7 +277,7 @@ public EnumeratorAnonymousClass2(EnumerableAnonymousClass2 outerInstance)
this.outerInstance = outerInstance;
}
- internal bool done;
+ private bool done;
private IEnumerable current;
public bool MoveNext()
@@ -519,4 +519,4 @@ public interface ITestPoint
{
void Apply(string message);
}
-}
\ No newline at end of file
+}
diff --git a/src/Lucene.Net.TestFramework/Search/QueryUtils.cs b/src/Lucene.Net.TestFramework/Search/QueryUtils.cs
index 2a683a5467..1522acb475 100644
--- a/src/Lucene.Net.TestFramework/Search/QueryUtils.cs
+++ b/src/Lucene.Net.TestFramework/Search/QueryUtils.cs
@@ -84,10 +84,6 @@ public static void CheckHashEquals(Query q)
private sealed class QueryAnonymousClass : Query
{
- public QueryAnonymousClass()
- {
- }
-
public override string ToString(string field)
{
return "My Whacky Query";
@@ -187,13 +183,13 @@ public static IndexSearcher WrapUnderlyingReader(Random random, IndexSearcher s,
IndexReader[] readers = new IndexReader[] {
edge < 0 ? r : emptyReaders[0],
emptyReaders[0],
- new FCInvisibleMultiReader(edge < 0 ? emptyReaders[4] : emptyReaders[0],
- emptyReaders[0],
+ new FCInvisibleMultiReader(edge < 0 ? emptyReaders[4] : emptyReaders[0],
+ emptyReaders[0],
0 == edge ? r : emptyReaders[0]),
0 < edge ? emptyReaders[0] : emptyReaders[7],
emptyReaders[0],
- new FCInvisibleMultiReader(0 < edge ? emptyReaders[0] : emptyReaders[5],
- emptyReaders[0],
+ new FCInvisibleMultiReader(0 < edge ? emptyReaders[0] : emptyReaders[5],
+ emptyReaders[0],
0 < edge ? r : emptyReaders[0])
};
@@ -300,7 +296,7 @@ private sealed class CollectorAnonymousClass : ICollector
private readonly float maxDiff;
private readonly AtomicReader[] lastReader;
- public CollectorAnonymousClass(Query q, IndexSearcher s, IList readerContextArray,
+ public CollectorAnonymousClass(Query q, IndexSearcher s, IList readerContextArray,
int skip_op, int[] order, int[] opidx, int[] lastDoc, float maxDiff, AtomicReader[] lastReader)
{
this.q = q;
@@ -503,4 +499,4 @@ public void SetNextReader(AtomicReaderContext context)
public bool AcceptsDocsOutOfOrder => false;
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Lucene.Net.Tests.Analysis.Common/Analysis/Core/TestFactories.cs b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Core/TestFactories.cs
index d8c521b4f4..7dd0157b72 100644
--- a/src/Lucene.Net.Tests.Analysis.Common/Analysis/Core/TestFactories.cs
+++ b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Core/TestFactories.cs
@@ -204,9 +204,9 @@ public override Tokenizer Create(AttributeSource.AttributeFactory factory, TextR
private sealed class FactoryAnalyzer : Analyzer
{
- internal readonly TokenizerFactory tokenizer;
- internal readonly CharFilterFactory charFilter;
- internal readonly TokenFilterFactory tokenfilter;
+ private readonly TokenizerFactory tokenizer;
+ private readonly CharFilterFactory charFilter;
+ private readonly TokenFilterFactory tokenfilter;
internal FactoryAnalyzer(TokenizerFactory tokenizer, TokenFilterFactory tokenfilter, CharFilterFactory charFilter)
{
@@ -243,4 +243,4 @@ protected internal override TextReader InitReader(string fieldName, TextReader r
}
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Lucene.Net.Tests.Analysis.Common/Analysis/Core/TestRandomChains.cs b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Core/TestRandomChains.cs
index 9840112734..60c2866988 100644
--- a/src/Lucene.Net.Tests.Analysis.Common/Analysis/Core/TestRandomChains.cs
+++ b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Core/TestRandomChains.cs
@@ -75,10 +75,6 @@ private interface IPredicate
private sealed class PredicateAnonymousClass : IPredicate