squash 3 warnings by adding wildcard

This commit is contained in:
Gavin 2023-04-16 13:35:40 +02:00
parent 61696189f5
commit cb413fe134
5 changed files with 7 additions and 7 deletions

View File

@ -86,7 +86,7 @@ public class NamedCriteriaQueryMementoImpl extends AbstractNamedQueryMemento imp
}
@Override
public SqmStatement getSqmStatement() {
public SqmStatement<?> getSqmStatement() {
return sqmStatement;
}

View File

@ -145,7 +145,7 @@ public class NamedHqlQueryMementoImpl extends AbstractNamedQueryMemento implemen
}
@Override
public SqmStatement getSqmStatement() {
public SqmStatement<?> getSqmStatement() {
return null;
}

View File

@ -13,7 +13,7 @@ import org.hibernate.query.sqm.tree.SqmStatement;
* @author Steve Ebersole
*/
public interface HqlInterpretation {
SqmStatement getSqmStatement();
SqmStatement<?> getSqmStatement();
ParameterMetadataImplementor getParameterMetadata();

View File

@ -165,7 +165,7 @@ public class QuerySqmImpl<R>
(s) -> queryEngine.getHqlTranslator().translate( hql, expectedResultType )
);
this.sqm = hqlInterpretation.getSqmStatement();
this.sqm = (SqmStatement<R>) hqlInterpretation.getSqmStatement();
this.parameterMetadata = hqlInterpretation.getParameterMetadata();
this.domainParameterXref = hqlInterpretation.getDomainParameterXref();
@ -184,7 +184,7 @@ public class QuerySqmImpl<R>
NamedCriteriaQueryMementoImpl memento,
Class<R> resultType,
SharedSessionContractImplementor session) {
this( memento.getSqmStatement(), resultType, session );
this( (SqmStatement<R>) memento.getSqmStatement(), resultType, session );
applyOptions( memento );
}
@ -202,7 +202,7 @@ public class QuerySqmImpl<R>
this.hql = hql;
this.resultType = resultType;
this.sqm = hqlInterpretation.getSqmStatement();
this.sqm = (SqmStatement<R>) hqlInterpretation.getSqmStatement();
this.parameterMetadata = hqlInterpretation.getParameterMetadata();
this.domainParameterXref = hqlInterpretation.getDomainParameterXref();

View File

@ -28,7 +28,7 @@ public interface NamedSqmQueryMemento extends NamedQueryMemento {
String getHqlString();
SqmStatement getSqmStatement();
SqmStatement<?> getSqmStatement();
Integer getFirstResult();