mirror of https://github.com/apache/lucene.git
LUCENE-6875: Fix svn eol-style and space instead of tab, to pass precommit
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1713740 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0124adb5c1
commit
3bf072cd21
|
@ -44,7 +44,7 @@ public class SerbianNormalizationFilterFactory extends TokenFilterFactory implem
|
|||
public SerbianNormalizationFilterFactory(Map<String,String> args) {
|
||||
super(args);
|
||||
|
||||
this.haircut = get(args, "haircut", Arrays.asList( "bald", "regular" ), "bald");
|
||||
this.haircut = get(args, "haircut", Arrays.asList( "bald", "regular" ), "bald");
|
||||
if (!args.isEmpty()) {
|
||||
throw new IllegalArgumentException("Unknown parameters: " + args);
|
||||
}
|
||||
|
@ -52,11 +52,11 @@ public class SerbianNormalizationFilterFactory extends TokenFilterFactory implem
|
|||
|
||||
@Override
|
||||
public TokenStream create(TokenStream input) {
|
||||
if( this.haircut.equals( "regular" ) ) {
|
||||
return new SerbianNormalizationRegularFilter(input);
|
||||
} else {
|
||||
return new SerbianNormalizationFilter(input);
|
||||
}
|
||||
if( this.haircut.equals( "regular" ) ) {
|
||||
return new SerbianNormalizationRegularFilter(input);
|
||||
} else {
|
||||
return new SerbianNormalizationFilter(input);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue