HHH-18960 Reverted mistakenly commited change

This commit is contained in:
Čedomir Igaly 2024-12-18 19:03:44 +01:00 committed by Gavin King
parent 8e2b7b7bdf
commit 4e3735d0c0

View File

@ -64,7 +64,6 @@
import static java.beans.Introspector.decapitalize; import static java.beans.Introspector.decapitalize;
import static java.lang.Boolean.FALSE; import static java.lang.Boolean.FALSE;
import static java.util.Collections.emptyList; import static java.util.Collections.emptyList;
import static java.util.Objects.requireNonNullElse;
import static java.util.stream.Collectors.toList; import static java.util.stream.Collectors.toList;
import static javax.lang.model.util.ElementFilter.fieldsIn; import static javax.lang.model.util.ElementFilter.fieldsIn;
import static javax.lang.model.util.ElementFilter.methodsIn; import static javax.lang.model.util.ElementFilter.methodsIn;
@ -2741,13 +2740,11 @@ private void checkParameter(
if ( queryParamType!=null if ( queryParamType!=null
//TODO: arguments of functions get assigned "unknown" which sucks //TODO: arguments of functions get assigned "unknown" which sucks
&& !"unknown".equals(queryParamType) ) { && !"unknown".equals(queryParamType) ) {
final String realQueryParamType =
requireNonNullElse( context.qualifiedNameForEntityName( queryParamType ), queryParamType );
if ( param.getName() != null ) { if ( param.getName() != null ) {
checkNamedParameter(param, paramNames, paramTypes, method, mirror, value, realQueryParamType); checkNamedParameter(param, paramNames, paramTypes, method, mirror, value, queryParamType);
} }
else if ( param.getPosition() != null ) { else if ( param.getPosition() != null ) {
checkOrdinalParameter(param, paramNames, paramTypes, method, mirror, value, realQueryParamType); checkOrdinalParameter(param, paramNames, paramTypes, method, mirror, value, queryParamType);
} }
} }
} }