diff --git a/core/src/main/java/org/elasticsearch/index/query/LimitQueryBuilder.java b/core/src/main/java/org/elasticsearch/index/query/LimitQueryBuilder.java index f7b55e2cf76..7fdc6eddb01 100644 --- a/core/src/main/java/org/elasticsearch/index/query/LimitQueryBuilder.java +++ b/core/src/main/java/org/elasticsearch/index/query/LimitQueryBuilder.java @@ -69,7 +69,7 @@ public class LimitQueryBuilder extends QueryBuilder { @Override public int hashCode() { - return Integer.hashCode(limit); + return this.limit; } @Override