Skip to content

Commit 0cd8e94

Browse files
committed
widen type of SelectionSpecification.resort()
1 parent 7315de5 commit 0cd8e94

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hibernate-core/src/main/java/org/hibernate/query/specification/SelectionSpecification.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public interface SelectionSpecification<T> extends QuerySpecification<T> {
104104
*
105105
* @return {@code this} for method chaining.
106106
*/
107-
SelectionSpecification<T> resort(List<Order<? super T>> orders);
107+
SelectionSpecification<T> resort(List<? extends Order<? super T>> orders);
108108

109109
@Override
110110
SelectionSpecification<T> restrict(Restriction<? super T> restriction);

hibernate-core/src/main/java/org/hibernate/query/specification/internal/SelectionSpecificationImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public final SelectionSpecification<T> resort(Order<? super T> order) {
136136
}
137137

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

0 commit comments

Comments
 (0)