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:
David Wayne Smiley 2012-05-01 02:48:11 +00:00
parent 5ed76836aa
commit c362770d97
1 changed files with 2 additions and 7 deletions

View File

@ -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();