Skip to content

Commit fd08876

Browse files
committed
HHH-18960 Reverted mistakenly commited change
1 parent 86a2402 commit fd08876

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AnnotationMetaEntity.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
import static java.beans.Introspector.decapitalize;
6565
import static java.lang.Boolean.FALSE;
6666
import static java.util.Collections.emptyList;
67-
import static java.util.Objects.requireNonNullElse;
6867
import static java.util.stream.Collectors.toList;
6968
import static javax.lang.model.util.ElementFilter.fieldsIn;
7069
import static javax.lang.model.util.ElementFilter.methodsIn;
@@ -2739,13 +2738,11 @@ private void checkParameter(
27392738
if ( queryParamType!=null
27402739
//TODO: arguments of functions get assigned "unknown" which sucks
27412740
&& !"unknown".equals(queryParamType) ) {
2742-
final String realQueryParamType =
2743-
requireNonNullElse( context.qualifiedNameForEntityName( queryParamType ), queryParamType );
27442741
if ( param.getName() != null ) {
2745-
checkNamedParameter(param, paramNames, paramTypes, method, mirror, value, realQueryParamType);
2742+
checkNamedParameter(param, paramNames, paramTypes, method, mirror, value, queryParamType);
27462743
}
27472744
else if ( param.getPosition() != null ) {
2748-
checkOrdinalParameter(param, paramNames, paramTypes, method, mirror, value, realQueryParamType);
2745+
checkOrdinalParameter(param, paramNames, paramTypes, method, mirror, value, queryParamType);
27492746
}
27502747
}
27512748
}

0 commit comments

Comments
 (0)