Skip to content

Commit 4e3735d

Browse files
cigalygavinking
authored andcommitted
HHH-18960 Reverted mistakenly commited change
1 parent 8e2b7b7 commit 4e3735d

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;
@@ -2741,13 +2740,11 @@ private void checkParameter(
27412740
if ( queryParamType!=null
27422741
//TODO: arguments of functions get assigned "unknown" which sucks
27432742
&& !"unknown".equals(queryParamType) ) {
2744-
final String realQueryParamType =
2745-
requireNonNullElse( context.qualifiedNameForEntityName( queryParamType ), queryParamType );
27462743
if ( param.getName() != null ) {
2747-
checkNamedParameter(param, paramNames, paramTypes, method, mirror, value, realQueryParamType);
2744+
checkNamedParameter(param, paramNames, paramTypes, method, mirror, value, queryParamType);
27482745
}
27492746
else if ( param.getPosition() != null ) {
2750-
checkOrdinalParameter(param, paramNames, paramTypes, method, mirror, value, realQueryParamType);
2747+
checkOrdinalParameter(param, paramNames, paramTypes, method, mirror, value, queryParamType);
27512748
}
27522749
}
27532750
}

0 commit comments

Comments
 (0)