Skip to content

Commit

Permalink
Merge pull request #41 from Coreoz/fix/comparable-type
Browse files Browse the repository at this point in the history
fix comparable type
  • Loading branch information
amanteaux authored Sep 19, 2024
2 parents 1b5f99c + c284a39 commit 7d8d3ab
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ public static <U> SqlPaginatedQuery<U> fromQuery(SQLQuery<U> sqlQuery) {
return new SqlPaginatedQuery<>(sqlQuery);
}

@SuppressWarnings("rawtypes")
@Nonnull
public <E extends Comparable<E>> SqlPaginatedQuery<U> withSort(
public <E extends Comparable> SqlPaginatedQuery<U> withSort(
@Nonnull Expression<E> expression,
@Nonnull Order sortDirection
) {
Expand Down

0 comments on commit 7d8d3ab

Please sign in to comment.