Skip to content

Commit be14517

Browse files
committedJan 1, 2025
Fix csharpsquid:S2223 issues, #679
1 parent 8620f97 commit be14517

File tree

41 files changed

+255
-205
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+255
-205
lines changed
 

‎src/Lucene.Net.Analysis.Common/Analysis/En/KStemData1.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ internal class KStemData1
4848
private KStemData1()
4949
{
5050
}
51+
52+
// LUCENENET specific - made readonly
5153
// KStemData1 ... KStemData8 are created from "head_word_list.txt"
52-
internal static string[] data = new string[] {
54+
internal static readonly string[] data = {
5355
"aback","abacus","abandon","abandoned","abase",
5456
"abash","abate","abattoir","abbess","abbey",
5557
"abbot","abbreviate","abbreviation","abc","abdicate",
@@ -752,4 +754,4 @@ private KStemData1()
752754
"cascara","case","casebook","casein","casework",
753755
};
754756
}
755-
}
757+
}

‎src/Lucene.Net.Analysis.Common/Analysis/En/KStemData2.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ internal class KStemData2
4747
private KStemData2()
4848
{
4949
}
50-
internal static string[] data = new string[] {
50+
51+
// LUCENENET specific - made readonly
52+
internal static readonly string[] data = {
5153
"cash","cashew","cashier","cashmere","casing",
5254
"casino","cask","casket","casque","cassava",
5355
"casserole","cassette","cassock","cassowary","cast",
@@ -750,4 +752,4 @@ private KStemData2()
750752
"distal","distance","distant","distantly","distaste",
751753
};
752754
}
753-
}
755+
}

0 commit comments

Comments
 (0)