Fix generic usage in QUeryBUilder, readFrom returns a QueryBuilder too, rather than just an Object
This commit is contained in:
parent
f1a6858081
commit
a95e05bbeb
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue