HHH-18097 Replace `java.io.Closeable` with `java.lang.AutoCloseable`
This commit is contained in:
parent
b181eec92c
commit
5c1ece7a84
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue