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) {
|
public SerbianNormalizationFilterFactory(Map<String,String> args) {
|
||||||
super(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()) {
|
if (!args.isEmpty()) {
|
||||||
throw new IllegalArgumentException("Unknown parameters: " + args);
|
throw new IllegalArgumentException("Unknown parameters: " + args);
|
||||||
}
|
}
|
||||||
|
@ -52,11 +52,11 @@ public class SerbianNormalizationFilterFactory extends TokenFilterFactory implem
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public TokenStream create(TokenStream input) {
|
public TokenStream create(TokenStream input) {
|
||||||
if( this.haircut.equals( "regular" ) ) {
|
if( this.haircut.equals( "regular" ) ) {
|
||||||
return new SerbianNormalizationRegularFilter(input);
|
return new SerbianNormalizationRegularFilter(input);
|
||||||
} else {
|
} else {
|
||||||
return new SerbianNormalizationFilter(input);
|
return new SerbianNormalizationFilter(input);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue