From eb74c7641c215fcfcd3440361bf4271874e63176 Mon Sep 17 00:00:00 2001 From: Gavin King Date: Sun, 2 Jun 2024 13:51:15 +0200 Subject: [PATCH] squash some warnings Signed-off-by: Gavin King --- .../engine/internal/ManagedTypeHelper.java | 6 ++---- .../NativeQueryInterpreterStandardImpl.java | 19 +------------------ 2 files changed, 3 insertions(+), 22 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/engine/internal/ManagedTypeHelper.java b/hibernate-core/src/main/java/org/hibernate/engine/internal/ManagedTypeHelper.java index 555bdc30d7..5c849ad63d 100644 --- a/hibernate-core/src/main/java/org/hibernate/engine/internal/ManagedTypeHelper.java +++ b/hibernate-core/src/main/java/org/hibernate/engine/internal/ManagedTypeHelper.java @@ -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 ) { diff --git a/hibernate-core/src/main/java/org/hibernate/engine/query/internal/NativeQueryInterpreterStandardImpl.java b/hibernate-core/src/main/java/org/hibernate/engine/query/internal/NativeQueryInterpreterStandardImpl.java index f67e703136..1c3a172788 100644 --- a/hibernate-core/src/main/java/org/hibernate/engine/query/internal/NativeQueryInterpreterStandardImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/engine/query/internal/NativeQueryInterpreterStandardImpl.java @@ -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 NativeSelectQueryPlan createQueryPlan( - NativeSelectQueryDefinition queryDefinition, - SessionFactoryImplementor sessionFactory) { - return new NativeSelectQueryPlanImpl<>( - queryDefinition.getSqlString(), - queryDefinition.getAffectedTableNames(), - queryDefinition.getQueryParameterOccurrences(), - queryDefinition.getResultSetMapping(), - sessionFactory - ); - } }