It is better to fail early here. If you incorrectly override e.g. getDocIDSet instead of getDocIdSet(), you will never find the error, only get NPEs at unrelated positions. Throwing the UOE shows exactly where to look for the error. For a similar case see the new DocIdSetIterator.
It is better to fail early here. If you incorrectly override e.g. getDocIDSet instead of getDocIdSet(), you will never find the error, only get NPEs at unrelated positions. Throwing the UOE shows exactly where to look for the error.
For a similar case see the new DocIdSetIterator.

git-svn-id: 4c5078813df38efa56971a28e09a55254294f104@788193 13f79535-47bb-0310-9956-ffa450edef68

tokee/lucene,tokee/lucene,tokee/lucene,tokee/lucene