mirror of https://github.com/apache/lucene.git
Issue deprecation warnings when building test cases. Fixed deprecation warnings on TestKeywordAnalyzer
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@160012 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3be3e8ab5d
commit
4e580e221e
|
@ -37,8 +37,8 @@ public class TestKeywordAnalyzer extends TestCase {
|
|||
true);
|
||||
|
||||
Document doc = new Document();
|
||||
doc.add(Field.Keyword("partnum", "Q36"));
|
||||
doc.add(Field.Text("description", "Illidium Space Modulator"));
|
||||
doc.add(new Field("partnum", "Q36", Field.Store.YES, Field.Index.UN_TOKENIZED));
|
||||
doc.add(new Field("description", "Illidium Space Modulator", Field.Store.YES, Field.Index.TOKENIZED));
|
||||
writer.addDocument(doc);
|
||||
|
||||
writer.close();
|
||||
|
|
|
@ -113,6 +113,7 @@
|
|||
<target name="test-compile" depends="compile" if="has.tests">
|
||||
<javac destdir="${test.classes.dir}"
|
||||
debug="${build.debug}"
|
||||
deprecation="true"
|
||||
includeAntRuntime="yes"
|
||||
srcdir="src/test"
|
||||
classpathref="test.classpath"
|
||||
|
|
Loading…
Reference in New Issue