DATAES-214 - Polishing.

This commit is contained in:
Peter-Josef Meisch 2020-02-12 20:58:41 +01:00
parent 864d41cb01
commit bacad5ca0c
2 changed files with 2 additions and 2 deletions

View File

@ -1342,7 +1342,7 @@ public class ElasticsearchRestTemplate extends AbstractElasticsearchTemplate
long offset = query.getPageable().getOffset();
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;

View File

@ -1119,7 +1119,7 @@ public class ElasticsearchTemplate extends AbstractElasticsearchTemplate
long offset = query.getPageable().getOffset();
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;