mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-07 13:38:49 +00:00
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…
x
Reference in New Issue
Block a user