Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public interface SelectionSpecification<T> extends QuerySpecification<T> {
*
* @return {@code this} for method chaining.
*/
SelectionSpecification<T> resort(List<Order<? super T>> orders);
SelectionSpecification<T> resort(List<? extends Order<? super T>> orders);

@Override
SelectionSpecification<T> restrict(Restriction<? super T> restriction);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public final SelectionSpecification<T> resort(Order<? super T> order) {
}

@Override
public final SelectionSpecification<T> resort(List<Order<? super T>> orders) {
public final SelectionSpecification<T> resort(List<? extends Order<? super T>> orders) {
specifications.add( (sqmStatement, root) -> {
sqmStatement.getQuerySpec().setOrderByClause( new SqmOrderByClause() );
orders.forEach( order -> addOrder( order, sqmStatement ) );
Expand Down