Skip to content

Commit 0fa5e6f

Browse files
committed
Remove additional uses of the deprecated gradle CloseableResource interface
Signed-off-by: Jan Schatteman <[email protected]>
1 parent bf4bd3c commit 0fa5e6f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DomainModelExtension.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ private static boolean isLob(SimpleValue value) {
300300
return false;
301301
}
302302

303-
public static class DomainModelScopeImpl implements DomainModelScope, ExtensionContext.Store.CloseableResource {
303+
public static class DomainModelScopeImpl implements DomainModelScope, AutoCloseable {
304304
private final ServiceRegistryScope serviceRegistryScope;
305305
private final DomainModelProducer producer;
306306

hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/ServiceRegistryExtension.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ public void handleTestExecutionException(ExtensionContext context, Throwable thr
331331
throw throwable;
332332
}
333333

334-
private static class ServiceRegistryScopeImpl implements ServiceRegistryScope, ExtensionContext.Store.CloseableResource {
334+
private static class ServiceRegistryScopeImpl implements ServiceRegistryScope, AutoCloseable {
335335
private BootstrapServiceRegistryProducer bsrProducer;
336336
private ServiceRegistryProducer ssrProducer;
337337

hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/SessionFactoryExtension.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ public void handleTestExecutionException(ExtensionContext context, Throwable thr
232232
throw throwable;
233233
}
234234

235-
private static class SessionFactoryScopeImpl implements SessionFactoryScope, ExtensionContext.Store.CloseableResource {
235+
private static class SessionFactoryScopeImpl implements SessionFactoryScope, AutoCloseable {
236236
private final DomainModelScope modelScope;
237237
private final SessionFactoryProducer producer;
238238

0 commit comments

Comments
 (0)