HHH14119: optimice the code following NathanQingyangXu suggestions

This commit is contained in:
Oliver Breidenbach 2020-08-21 13:46:44 +02:00
parent e4c5882c32
commit 5674c1a285
2 changed files with 2 additions and 2 deletions

View File

@ -228,7 +228,7 @@ public class InPredicate<T>
int bindValuePaddingCount = MathHelper.ceilingPowerOfTwo(bindValueCount);
if ( inExprLimit > 0 && bindValuePaddingCount > inExprLimit ) {
bindValuePaddingCount = Math.max(bindValueCount, inExprLimit);
bindValuePaddingCount = inExprLimit;
}
if ( bindValueCount < bindValuePaddingCount ) {

View File

@ -100,7 +100,7 @@ public class InClauseParameterPaddingCriteriaTest extends BaseEntityManagerFunct
@Test
public void testInClauseParameterPadding2() {
public void testInClauseParameterBindingPadding() {
sqlStatementInterceptor.clear();
doInJPA( this::entityManagerFactory, entityManager -> {