HHH-18097 Replace `java.io.Closeable` with `java.lang.AutoCloseable`

This commit is contained in:
Yanming Zhou 2024-05-11 16:19:57 +08:00 committed by Steve Ebersole
parent b181eec92c
commit 5c1ece7a84
3 changed files with 3 additions and 6 deletions

View File

@ -6,8 +6,6 @@
*/
package org.hibernate;
import java.io.Closeable;
import org.hibernate.query.Query;
/**
@ -24,7 +22,7 @@ import org.hibernate.query.Query;
*
* @author Gavin King
*/
public interface ScrollableResults<R> extends AutoCloseable, Closeable {
public interface ScrollableResults<R> extends AutoCloseable {
/**
* Get the current row of results.
*

View File

@ -136,7 +136,7 @@ import static org.hibernate.internal.TransactionManagement.manageTransaction;
* @author Gavin King
* @author Steve Ebersole
*/
public interface SessionFactory extends EntityManagerFactory, Referenceable, Serializable, java.io.Closeable {
public interface SessionFactory extends EntityManagerFactory, Referenceable, Serializable {
/**
* The JNDI name, used to bind the SessionFactory to JNDI
*/

View File

@ -6,7 +6,6 @@
*/
package org.hibernate;
import java.io.Closeable;
import java.io.Serializable;
import java.util.List;
@ -23,7 +22,7 @@ import org.hibernate.query.criteria.HibernateCriteriaBuilder;
*
* @author Steve Ebersole
*/
public interface SharedSessionContract extends QueryProducer, Closeable, Serializable {
public interface SharedSessionContract extends QueryProducer, AutoCloseable, Serializable {
/**
* Obtain the tenant identifier associated with this session.
*