QueryBuilders does not need to be abstract (#25982)

This commit is contained in:
Tanguy Leroux 2017-08-01 10:39:21 +02:00 committed by GitHub
parent 9c8d3d3569
commit 52c79629e2
1 changed files with 5 additions and 6 deletions

View File

@ -35,9 +35,12 @@ import java.util.Collection;
import java.util.List;
/**
* A static factory for simple "import static" usage.
* Utility class to create search queries.
*/
public abstract class QueryBuilders {
public final class QueryBuilders {
private QueryBuilders() {
}
/**
* A query that matches on all documents.
@ -693,8 +696,4 @@ public abstract class QueryBuilders {
public static ExistsQueryBuilder existsQuery(String name) {
return new ExistsQueryBuilder(name);
}
private QueryBuilders() {
}
}