LUCENE-3361: remove api deprecations in trunk

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1154943 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2011-08-08 12:17:33 +00:00
parent ef56f5d551
commit f7237cb165
2 changed files with 1 additions and 73 deletions

View File

@ -87,54 +87,6 @@ public final class UAX29URLEmailTokenizer extends Tokenizer {
"<EMAIL>",
};
/** Alphanumeric sequences
* @deprecated use {@link #TOKEN_TYPES} instead */
@Deprecated
public static final String WORD_TYPE = TOKEN_TYPES[ALPHANUM];
/** Numbers
* @deprecated use {@link #TOKEN_TYPES} instead */
@Deprecated
public static final String NUMERIC_TYPE = TOKEN_TYPES[NUM];
/** URLs with scheme: HTTP(S), FTP, or FILE; no-scheme URLs match HTTP syntax
* @deprecated use {@link #TOKEN_TYPES} instead */
@Deprecated
public static final String URL_TYPE = TOKEN_TYPES[URL];
/** E-mail addresses
* @deprecated use {@link #TOKEN_TYPES} instead */
@Deprecated
public static final String EMAIL_TYPE = TOKEN_TYPES[EMAIL];
/**
* Chars in class \p{Line_Break = Complex_Context} are from South East Asian
* scripts (Thai, Lao, Myanmar, Khmer, etc.). Sequences of these are kept
* together as as a single token rather than broken up, because the logic
* required to break them at word boundaries is too complex for UAX#29.
* <p>
* See Unicode Line Breaking Algorithm: http://www.unicode.org/reports/tr14/#SA
* @deprecated use {@link #TOKEN_TYPES} instead
*/
@Deprecated
public static final String SOUTH_EAST_ASIAN_TYPE = TOKEN_TYPES[SOUTHEAST_ASIAN];
/** @deprecated use {@link #TOKEN_TYPES} instead */
@Deprecated
public static final String IDEOGRAPHIC_TYPE = TOKEN_TYPES[IDEOGRAPHIC];
/** @deprecated use {@link #TOKEN_TYPES} instead */
@Deprecated
public static final String HIRAGANA_TYPE = TOKEN_TYPES[HIRAGANA];
/** @deprecated use {@link #TOKEN_TYPES} instead */
@Deprecated
public static final String KATAKANA_TYPE = TOKEN_TYPES[KATAKANA];
/** @deprecated use {@link #TOKEN_TYPES} instead */
@Deprecated
public static final String HANGUL_TYPE = TOKEN_TYPES[HANGUL];
private int maxTokenLength = StandardAnalyzer.DEFAULT_MAX_TOKEN_LENGTH;
/** Set the max allowed token length. Any token longer
@ -147,30 +99,6 @@ public final class UAX29URLEmailTokenizer extends Tokenizer {
public int getMaxTokenLength() {
return maxTokenLength;
}
/** @deprecated use {@link #UAX29URLEmailTokenizer(Version, Reader)} instead. */
@Deprecated
public UAX29URLEmailTokenizer(Reader input) {
this(Version.LUCENE_31, input);
}
/** @deprecated use {@link #UAX29URLEmailTokenizer(Version, Reader)} instead. */
@Deprecated
public UAX29URLEmailTokenizer(InputStream input) {
this(Version.LUCENE_31, new InputStreamReader(input));
}
/** @deprecated use {@link #UAX29URLEmailTokenizer(Version, AttributeSource, Reader)} instead. */
@Deprecated
public UAX29URLEmailTokenizer(AttributeSource source, Reader input) {
this(Version.LUCENE_31, source, input);
}
/** @deprecated use {@link #UAX29URLEmailTokenizer(Version, AttributeFactory, Reader)} instead. */
@Deprecated
public UAX29URLEmailTokenizer(AttributeFactory factory, Reader input) {
this(Version.LUCENE_31, factory, input);
}
/**
* Creates a new instance of the UAX29URLEmailTokenizer. Attaches

View File

@ -436,7 +436,7 @@ public class TestUAX29URLEmailTokenizer extends BaseTokenStreamTestCase {
protected TokenStreamComponents createComponents
(String fieldName, Reader reader) {
Tokenizer tokenizer = new UAX29URLEmailTokenizer(reader);
Tokenizer tokenizer = new UAX29URLEmailTokenizer(Version.LUCENE_31, reader);
return new TokenStreamComponents(tokenizer);
}
};