mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-21 19:42:10 +00:00
DATAES-214 - Polishing.
This commit is contained in:
parent
864d41cb01
commit
bacad5ca0c
@ -1342,7 +1342,7 @@ public class ElasticsearchRestTemplate extends AbstractElasticsearchTemplate
|
|||||||
long offset = query.getPageable().getOffset();
|
long offset = query.getPageable().getOffset();
|
||||||
|
|
||||||
if (offset > Integer.MAX_VALUE) {
|
if (offset > Integer.MAX_VALUE) {
|
||||||
throw new IllegalArgumentException(String.format("Offset must not be more than %s", Integer.MAX_VALUE));
|
throw new IllegalArgumentException(String.format("Offset must not be more than %d", Integer.MAX_VALUE));
|
||||||
}
|
}
|
||||||
|
|
||||||
startRecord = (int) offset;
|
startRecord = (int) offset;
|
||||||
|
@ -1119,7 +1119,7 @@ public class ElasticsearchTemplate extends AbstractElasticsearchTemplate
|
|||||||
long offset = query.getPageable().getOffset();
|
long offset = query.getPageable().getOffset();
|
||||||
|
|
||||||
if (offset > Integer.MAX_VALUE) {
|
if (offset > Integer.MAX_VALUE) {
|
||||||
throw new IllegalArgumentException(String.format("Offset must not be more than %s", Integer.MAX_VALUE));
|
throw new IllegalArgumentException(String.format("Offset must not be more than %d", Integer.MAX_VALUE));
|
||||||
}
|
}
|
||||||
|
|
||||||
startRecord = (int) offset;
|
startRecord = (int) offset;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user