minor code changes

Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
Gavin King 2024-07-21 15:32:18 +02:00
parent 9263a26270
commit d938576fcc
3 changed files with 5 additions and 7 deletions

View File

@ -13,7 +13,6 @@ import java.util.Set;
import org.hibernate.EntityNameResolver;
import org.hibernate.MappingException;
import org.hibernate.Metamodel;
import org.hibernate.engine.spi.SessionFactoryImplementor;
import org.hibernate.metamodel.MappingMetamodel;
import org.hibernate.persister.collection.CollectionPersister;
import org.hibernate.persister.entity.EntityPersister;

View File

@ -71,10 +71,10 @@ public final class ResourceRegistryStandardImpl implements ResourceRegistry {
@Override
public boolean hasRegisteredResources() {
return hasRegistered( xref )
|| hasRegistered( unassociatedResultSets )
|| hasRegistered( blobs )
|| hasRegistered( clobs )
|| hasRegistered( nclobs );
|| hasRegistered( unassociatedResultSets )
|| hasRegistered( blobs )
|| hasRegistered( clobs )
|| hasRegistered( nclobs );
}
@Override
@ -182,7 +182,6 @@ public final class ResourceRegistryStandardImpl implements ResourceRegistry {
}
}
@SuppressWarnings("unchecked")
public static void close(Statement statement) {
log.tracef( "Closing prepared statement [%s]", statement );

View File

@ -642,7 +642,7 @@ public class HibernateProcessor extends AbstractProcessor {
final TypeElement fieldType = (TypeElement) declaredType.asElement();
if ( fieldType.getKind() == ElementKind.ENUM ) {
for (Element enumMember : fieldType.getEnclosedElements() ) {
if ( enumMember.getKind() == ElementKind.ENUM_CONSTANT) {
if ( enumMember.getKind() == ElementKind.ENUM_CONSTANT ) {
context.addEnumValue( fieldType.getQualifiedName().toString(),
enumMember.getSimpleName().toString() );
}