Skip to content

Commit f9f1468

Browse files
authored
Fix operand to remove int overflow possiblity (#72)
* Fix operand to remove int overflow possiblity * Remove build helper (#71) (#73) * Remove old build helper No longer needed * Update pom.xml * Fix license excludes
1 parent d139196 commit f9f1468

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/socialsignin/spring/data/dynamodb/repository/support/SimpleDynamoDBPagingAndSortingRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public Page<T> findAll(Pageable pageable) {
7575

7676
DynamoDBScanExpression scanExpression = new DynamoDBScanExpression();
7777
// Scan to the end of the page after the requested page
78-
long scanTo = pageable.getOffset() + (2 * pageable.getPageSize());
78+
long scanTo = pageable.getOffset() + (2L * pageable.getPageSize());
7979
scanExpression.setLimit((int) Math.min(scanTo, Integer.MAX_VALUE));
8080
PaginatedScanList<T> paginatedScanList = dynamoDBOperations.scan(domainType, scanExpression);
8181
Iterator<T> iterator = paginatedScanList.iterator();

0 commit comments

Comments
 (0)