mirror of https://github.com/apache/lucene.git
Commons-Codec's Caverphone class is deprecated; its replacement is Caverphone2.
Since the old reportedly forwards calls to the new; this should have no effect. git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1332506 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5ed76836aa
commit
c362770d97
|
@ -25,12 +25,7 @@ import java.util.concurrent.locks.Lock;
|
|||
import java.util.concurrent.locks.ReentrantLock;
|
||||
|
||||
import org.apache.commons.codec.Encoder;
|
||||
import org.apache.commons.codec.language.Caverphone;
|
||||
import org.apache.commons.codec.language.ColognePhonetic;
|
||||
import org.apache.commons.codec.language.DoubleMetaphone;
|
||||
import org.apache.commons.codec.language.Metaphone;
|
||||
import org.apache.commons.codec.language.RefinedSoundex;
|
||||
import org.apache.commons.codec.language.Soundex;
|
||||
import org.apache.commons.codec.language.*;
|
||||
import org.apache.lucene.analysis.TokenStream;
|
||||
import org.apache.lucene.analysis.phonetic.PhoneticFilter;
|
||||
|
||||
|
@ -69,7 +64,7 @@ public class PhoneticFilterFactory extends BaseTokenFilterFactory
|
|||
put( "Metaphone".toUpperCase(Locale.ENGLISH), Metaphone.class );
|
||||
put( "Soundex".toUpperCase(Locale.ENGLISH), Soundex.class );
|
||||
put( "RefinedSoundex".toUpperCase(Locale.ENGLISH), RefinedSoundex.class );
|
||||
put( "Caverphone".toUpperCase(Locale.ENGLISH), Caverphone.class );
|
||||
put( "Caverphone".toUpperCase(Locale.ENGLISH), Caverphone2.class );
|
||||
put( "ColognePhonetic".toUpperCase(Locale.ENGLISH), ColognePhonetic.class );
|
||||
}};
|
||||
private static final Lock lock = new ReentrantLock();
|
||||
|
|
Loading…
Reference in New Issue