Move QueryBuilder.badFieldType to FieldType class

This allows the method to be used without having a dependency on the
gerrit-lucene module, which in turn has a dependency on a specific
version of Lucene.

Change-Id: I57e92c71260a51327ed706bd65f8f9e384e15666
This commit is contained in:
David Pursehouse
2015-04-23 14:20:47 +09:00
parent 92e9cd5d0e
commit 805a2da731
4 changed files with 7 additions and 7 deletions

View File

@@ -554,7 +554,7 @@ public class LuceneChangeIndex implements ChangeIndex {
doc.add(new StoredField(name, (byte[]) value));
}
} else {
throw QueryBuilder.badFieldType(type);
throw FieldType.badFieldType(type);
}
}