Skip to content

Commit 5c1ece7

Browse files
quaffsebersole
authored andcommitted
HHH-18097 Replace java.io.Closeable with java.lang.AutoCloseable
1 parent b181eec commit 5c1ece7

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

hibernate-core/src/main/java/org/hibernate/ScrollableResults.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
*/
77
package org.hibernate;
88

9-
import java.io.Closeable;
10-
119
import org.hibernate.query.Query;
1210

1311
/**
@@ -24,7 +22,7 @@
2422
*
2523
* @author Gavin King
2624
*/
27-
public interface ScrollableResults<R> extends AutoCloseable, Closeable {
25+
public interface ScrollableResults<R> extends AutoCloseable {
2826
/**
2927
* Get the current row of results.
3028
*

hibernate-core/src/main/java/org/hibernate/SessionFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
* @author Gavin King
137137
* @author Steve Ebersole
138138
*/
139-
public interface SessionFactory extends EntityManagerFactory, Referenceable, Serializable, java.io.Closeable {
139+
public interface SessionFactory extends EntityManagerFactory, Referenceable, Serializable {
140140
/**
141141
* The JNDI name, used to bind the SessionFactory to JNDI
142142
*/

hibernate-core/src/main/java/org/hibernate/SharedSessionContract.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
*/
77
package org.hibernate;
88

9-
import java.io.Closeable;
109
import java.io.Serializable;
1110
import java.util.List;
1211

@@ -23,7 +22,7 @@
2322
*
2423
* @author Steve Ebersole
2524
*/
26-
public interface SharedSessionContract extends QueryProducer, Closeable, Serializable {
25+
public interface SharedSessionContract extends QueryProducer, AutoCloseable, Serializable {
2726
/**
2827
* Obtain the tenant identifier associated with this session.
2928
*

0 commit comments

Comments
 (0)