From 23b55db51ad5c583fa335b49e189c01256aa8e52 Mon Sep 17 00:00:00 2001 From: Gavin Date: Sun, 28 May 2023 01:42:58 +0200 Subject: [PATCH] HibernateCriteriaBuilder should use varargs in some cases, it overrides JPA methods with non-varargs forms --- .../query/criteria/HibernateCriteriaBuilder.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/query/criteria/HibernateCriteriaBuilder.java b/hibernate-core/src/main/java/org/hibernate/query/criteria/HibernateCriteriaBuilder.java index f940278dde..dc2bd47a85 100644 --- a/hibernate-core/src/main/java/org/hibernate/query/criteria/HibernateCriteriaBuilder.java +++ b/hibernate-core/src/main/java/org/hibernate/query/criteria/HibernateCriteriaBuilder.java @@ -277,18 +277,18 @@ public interface HibernateCriteriaBuilder extends CriteriaBuilder { // Selections @Override - JpaCompoundSelection construct(Class resultClass, Selection[] selections); + JpaCompoundSelection construct(Class resultClass, Selection... selections); JpaCompoundSelection construct(Class resultClass, List> arguments); @Override - JpaCompoundSelection tuple(Selection[] selections); + JpaCompoundSelection tuple(Selection... selections); JpaCompoundSelection tuple(List> selections); @Override - JpaCompoundSelection array(Selection[] selections); + JpaCompoundSelection array(Selection... selections); JpaCompoundSelection array(List> selections); - JpaCompoundSelection array(Class resultClass, Selection[] selections); + JpaCompoundSelection array(Class resultClass, Selection... selections); JpaCompoundSelection array(Class resultClass, List> selections); @@ -405,7 +405,7 @@ public interface HibernateCriteriaBuilder extends CriteriaBuilder { JpaExpression literal(T value); SqmExpression literal(T value, SqmExpression typeInferenceSource); - List> literals(T[] values); + List> literals(T... values); List> literals(List values); @@ -498,7 +498,7 @@ public interface HibernateCriteriaBuilder extends CriteriaBuilder { JpaFunction currentInstant(); @Override - JpaFunction function(String name, Class type, Expression[] args); + JpaFunction function(String name, Class type, Expression... args); @Override JpaExpression all(Subquery subquery);