Readability: Import Lucene.Net.Search.Similarites.SimilarityBase statically, where appropriate #694
Labels
good-first-issue
Good for newcomers
hacktoberfest-accepted
is:enhancement
New feature or request
up-for-grabs
This issue is open to be worked on by anyone
In several code files in
Lucene.Net.Search.Similarities
theLog2
method is imported directly in Java so it doesn't have to be qualified.However, in .NET we are fully qualifying as
SimilarityBase.Log2()
, which reduces readability and doesn't align well with the original code.To fix this, we should import the static members of
SimilarityBase
in every class where it is used. Add the following line at the top of the file above the namespace declaration.Then we can remove the qualifying statements for
Log2()
.We should do this in all classes in
Lucene.Net.Search.Similarities
namespace that use theSimilarityBase.Log2()
method.The text was updated successfully, but these errors were encountered: