From fbc74ff3393179d2015387913793e5348fc4ef75 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Fri, 22 May 2015 00:02:25 -0400 Subject: [PATCH] remove tabs --- .../IcuFoldingTokenFilterFactory.java | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/main/java/org/elasticsearch/index/analysis/IcuFoldingTokenFilterFactory.java b/src/main/java/org/elasticsearch/index/analysis/IcuFoldingTokenFilterFactory.java index 6badfd48c12..7abfd702ac3 100644 --- a/src/main/java/org/elasticsearch/index/analysis/IcuFoldingTokenFilterFactory.java +++ b/src/main/java/org/elasticsearch/index/analysis/IcuFoldingTokenFilterFactory.java @@ -52,21 +52,21 @@ public class IcuFoldingTokenFilterFactory extends AbstractTokenFilterFactory { } @Override public TokenStream create(TokenStream tokenStream) { - - // The ICUFoldingFilter is in fact implemented as a ICUNormalizer2Filter. - // ICUFoldingFilter lacks a constructor for adding filtering so we implemement it here - if (unicodeSetFilter != null) { - Normalizer2 base = Normalizer2.getInstance( - ICUFoldingFilter.class.getResourceAsStream("utr30.nrm"), - "utr30", Normalizer2.Mode.COMPOSE); - UnicodeSet unicodeSet = new UnicodeSet(unicodeSetFilter); - unicodeSet.freeze(); - Normalizer2 filtered = new FilteredNormalizer2(base, unicodeSet); - return new org.apache.lucene.analysis.icu.ICUNormalizer2Filter(tokenStream, filtered); - } - else { - return new ICUFoldingFilter(tokenStream); - } + // The ICUFoldingFilter is in fact implemented as a ICUNormalizer2Filter. + // ICUFoldingFilter lacks a constructor for adding filtering so we implemement it here + if (unicodeSetFilter != null) { + Normalizer2 base = Normalizer2.getInstance( + ICUFoldingFilter.class.getResourceAsStream("utr30.nrm"), + "utr30", Normalizer2.Mode.COMPOSE); + UnicodeSet unicodeSet = new UnicodeSet(unicodeSetFilter); + + unicodeSet.freeze(); + Normalizer2 filtered = new FilteredNormalizer2(base, unicodeSet); + return new org.apache.lucene.analysis.icu.ICUNormalizer2Filter(tokenStream, filtered); + } + else { + return new ICUFoldingFilter(tokenStream); + } } }