squash some warnings

Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
Gavin King 2024-06-02 13:51:15 +02:00
parent 86ddd203a0
commit eb74c7641c
2 changed files with 3 additions and 22 deletions

View File

@ -97,8 +97,7 @@ public final class ManagedTypeHelper {
}
/**
* @param entity
* @return true if and only if the entity implements {@see ManagedEntity}
* @return true if and only if the entity implements {@link ManagedEntity}
*/
public static boolean isManagedEntity(final Object entity) {
if ( entity instanceof PrimeAmongSecondarySupertypes ) {
@ -109,8 +108,7 @@ public final class ManagedTypeHelper {
}
/**
* @param entity
* @return true if and only if the entity implements {@see HibernateProxy}
* @return true if and only if the entity implements {@link HibernateProxy}
*/
public static boolean isHibernateProxy(final Object entity) {
if ( entity instanceof PrimeAmongSecondarySupertypes ) {

View File

@ -7,11 +7,7 @@
package org.hibernate.engine.query.internal;
import org.hibernate.engine.query.spi.NativeQueryInterpreter;
import org.hibernate.engine.spi.SessionFactoryImplementor;
import org.hibernate.query.sql.internal.NativeSelectQueryPlanImpl;
import org.hibernate.query.sql.internal.ParameterParser;
import org.hibernate.query.sql.spi.NativeSelectQueryDefinition;
import org.hibernate.query.sql.spi.NativeSelectQueryPlan;
import org.hibernate.query.sql.spi.ParameterRecognizer;
/**
@ -23,7 +19,7 @@ public class NativeQueryInterpreterStandardImpl implements NativeQueryInterprete
*/
public static final NativeQueryInterpreterStandardImpl NATIVE_QUERY_INTERPRETER = new NativeQueryInterpreterStandardImpl( false );
private boolean nativeJdbcParametersIgnored;
private final boolean nativeJdbcParametersIgnored;
public NativeQueryInterpreterStandardImpl(boolean nativeJdbcParametersIgnored) {
this.nativeJdbcParametersIgnored = nativeJdbcParametersIgnored;
@ -33,17 +29,4 @@ public class NativeQueryInterpreterStandardImpl implements NativeQueryInterprete
public void recognizeParameters(String nativeQuery, ParameterRecognizer recognizer) {
ParameterParser.parse( nativeQuery, recognizer, nativeJdbcParametersIgnored );
}
@Override
public <R> NativeSelectQueryPlan<R> createQueryPlan(
NativeSelectQueryDefinition<R> queryDefinition,
SessionFactoryImplementor sessionFactory) {
return new NativeSelectQueryPlanImpl<>(
queryDefinition.getSqlString(),
queryDefinition.getAffectedTableNames(),
queryDefinition.getQueryParameterOccurrences(),
queryDefinition.getResultSetMapping(),
sessionFactory
);
}
}