Skip to content

Commit 25f65ff

Browse files
authored
Merge branch 'apache:master' into feature/async-replicator-client
2 parents 8135524 + 5314f3f commit 25f65ff

File tree

126 files changed

+1681
-410
lines changed

Some content is hidden

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

126 files changed

+1681
-410
lines changed

src/Lucene.Net.Analysis.Common/Analysis/Cjk/CJKBigramFilter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public sealed class CJKBigramFilter : TokenFilter
8484
private static readonly string HANGUL_TYPE = StandardTokenizer.TOKEN_TYPES[StandardTokenizer.HANGUL];
8585

8686
// sentinel value for ignoring a script
87-
private static readonly string NO = "<NO>";
87+
private const string NO = "<NO>";
8888

8989
// these are set to either their type or NO if we want to pass them thru
9090
private readonly string doHan;

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

Lines changed: 3 additions & 1 deletion
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",

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

Lines changed: 3 additions & 1 deletion
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",

src/Lucene.Net.Analysis.Common/Analysis/En/KStemData3.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ internal class KStemData3
4747
private KStemData3()
4848
{
4949
}
50-
internal static string[] data = new string[] {
50+
51+
// LUCENENET specific - made readonly
52+
internal static readonly string[] data = {
5153
"distasteful","distemper","distempered","distend","distension",
5254
"distil","distill","distillation","distiller","distillery",
5355
"distinct","distinction","distinctive","distinguish","distinguishable",

src/Lucene.Net.Analysis.Common/Analysis/En/KStemData4.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ internal class KStemData4
4747
private KStemData4()
4848
{
4949
}
50-
internal static string[] data = new string[] {
50+
51+
// LUCENENET specific - made readonly
52+
internal static readonly string[] data = {
5153
"granular","granulate","granule","grape","grapefruit",
5254
"grapeshot","grapevine","graph","graphic","graphical",
5355
"graphically","graphite","graphology","grapnel","grapple",

src/Lucene.Net.Analysis.Common/Analysis/En/KStemData5.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ internal class KStemData5
4747
private KStemData5()
4848
{
4949
}
50-
internal static string[] data = new string[] {
50+
51+
// LUCENENET specific - made readonly
52+
internal static readonly string[] data = {
5153
"lock","locker","locket","lockjaw","locknut",
5254
"lockout","locks","locksmith","lockstitch","lockup",
5355
"loco","locomotion","locomotive","locum","locus",

src/Lucene.Net.Analysis.Common/Analysis/En/KStemData6.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ internal class KStemData6
4747
private KStemData6()
4848
{
4949
}
50-
internal static string[] data = new string[] {
50+
51+
// LUCENENET specific - made readonly
52+
internal static readonly string[] data = {
5153
"pedant","pedantic","pedantry","peddle","peddler",
5254
"pederast","pederasty","pedestal","pedestrian","pediatrician",
5355
"pediatrics","pedicab","pedicel","pedicure","pedigree",

src/Lucene.Net.Analysis.Common/Analysis/En/KStemData7.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ internal class KStemData7
4747
private KStemData7()
4848
{
4949
}
50-
internal static string[] data = new string[] {
50+
51+
// LUCENENET specific - made readonly
52+
internal static readonly string[] data = {
5153
"rupee","rupture","rural","ruritanian","ruse",
5254
"rush","rushes","rushlight","rusk","russet",
5355
"rust","rustic","rusticate","rustication","rustle",

src/Lucene.Net.Analysis.Common/Analysis/En/KStemData8.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ internal class KStemData8
4747
private KStemData8()
4848
{
4949
}
50-
internal static string[] data = new string[] {
50+
51+
// LUCENENET specific - made readonly
52+
internal static readonly string[] data = {
5153
"tenor","tenpin","tense","tensile","tension",
5254
"tent","tentacle","tentative","tenterhooks","tenuity",
5355
"tenuous","tenure","tepee","tepid","tequila",

src/Lucene.Net.Analysis.Common/Analysis/Miscellaneous/CapitalizationFilter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ namespace Lucene.Net.Analysis.Miscellaneous
3434
/// </summary>
3535
public sealed class CapitalizationFilter : TokenFilter
3636
{
37-
public static readonly int DEFAULT_MAX_WORD_COUNT = int.MaxValue;
38-
public static readonly int DEFAULT_MAX_TOKEN_LENGTH = int.MaxValue;
37+
public const int DEFAULT_MAX_WORD_COUNT = int.MaxValue;
38+
public const int DEFAULT_MAX_TOKEN_LENGTH = int.MaxValue;
3939

4040
private readonly bool onlyFirstWord;
4141
private readonly CharArraySet keep;

0 commit comments

Comments
 (0)