Skip to content

Commit

Permalink
HibernateCriteriaBuilder should use varargs
Browse files Browse the repository at this point in the history
in some cases, it overrides JPA methods with non-varargs forms
  • Loading branch information
gavinking committed May 28, 2023
1 parent d8fb935 commit 23b55db
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,18 +277,18 @@ default <T> JpaSubQuery<T> except(Subquery<? extends T> query1, Subquery<?>... q
// Selections

@Override
<Y> JpaCompoundSelection<Y> construct(Class<Y> resultClass, Selection<?>[] selections);
<Y> JpaCompoundSelection<Y> construct(Class<Y> resultClass, Selection<?>... selections);
<Y> JpaCompoundSelection<Y> construct(Class<Y> resultClass, List<? extends JpaSelection<?>> arguments);

@Override
JpaCompoundSelection<Tuple> tuple(Selection<?>[] selections);
JpaCompoundSelection<Tuple> tuple(Selection<?>... selections);
JpaCompoundSelection<Tuple> tuple(List<? extends JpaSelection<?>> selections);

@Override
JpaCompoundSelection<Object[]> array(Selection<?>[] selections);
JpaCompoundSelection<Object[]> array(Selection<?>... selections);
JpaCompoundSelection<Object[]> array(List<? extends JpaSelection<?>> selections);

<Y> JpaCompoundSelection<Y> array(Class<Y> resultClass, Selection<?>[] selections);
<Y> JpaCompoundSelection<Y> array(Class<Y> resultClass, Selection<?>... selections);
<Y> JpaCompoundSelection<Y> array(Class<Y> resultClass, List<? extends JpaSelection<?>> selections);


Expand Down Expand Up @@ -405,7 +405,7 @@ default <T> JpaSubQuery<T> except(Subquery<? extends T> query1, Subquery<?>... q
<T> JpaExpression<T> literal(T value);
<T> SqmExpression<T> literal(T value, SqmExpression<? extends T> typeInferenceSource);

<T> List<? extends JpaExpression<T>> literals(T[] values);
<T> List<? extends JpaExpression<T>> literals(T... values);

<T> List<? extends JpaExpression<T>> literals(List<T> values);

Expand Down Expand Up @@ -498,7 +498,7 @@ JpaFunction<Integer> locate(
JpaFunction<Instant> currentInstant();

@Override
<T> JpaFunction<T> function(String name, Class<T> type, Expression<?>[] args);
<T> JpaFunction<T> function(String name, Class<T> type, Expression<?>... args);

@Override
<Y> JpaExpression<Y> all(Subquery<Y> subquery);
Expand Down

0 comments on commit 23b55db

Please sign in to comment.