Fix generic usage in QUeryBUilder, readFrom returns a QueryBuilder too, rather than just an Object

This commit is contained in:
javanna 2015-05-22 19:10:30 +02:00 committed by Luca Cavanna
parent f1a6858081
commit a95e05bbeb
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ import java.io.IOException;
* Base class for all classes producing lucene queries.
* Supports conversion to BytesReference and creation of lucene Query objects.
*/
public abstract class QueryBuilder<QB> extends ToXContentToBytes implements Writeable<QB> {
public abstract class QueryBuilder<QB extends QueryBuilder> extends ToXContentToBytes implements Writeable<QB> {
protected QueryBuilder() {
super(XContentType.JSON);