Skip to content

Commit 632f1c2

Browse files
committed
Add missing returns to firstRows and maxRows setters
1 parent 592ebc9 commit 632f1c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/springframework/data/ebean/repository/query/EbeanQueryWrapper.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ Integer getMaxRows() {
183183
void setMaxRows(int maxRows) {
184184
if (queryType == QUERY) {
185185
((Query) queryInstance).setMaxRows(maxRows);
186+
return;
186187
}
187188
throw new IllegalArgumentException("query not supported!");
188189
}
@@ -197,6 +198,7 @@ int getFirstRow() {
197198
void setFirstRow(int firstRow) {
198199
if (queryType == QUERY) {
199200
((Query) queryInstance).setFirstRow(firstRow);
201+
return;
200202
}
201203
throw new IllegalArgumentException("query not supported!");
202204
}

0 commit comments

Comments
 (0)