Skip to content

Remove additional uses of the deprecated gradle CloseableResource interface #10686

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ private static boolean isLob(SimpleValue value) {
return false;
}

public static class DomainModelScopeImpl implements DomainModelScope, ExtensionContext.Store.CloseableResource {
public static class DomainModelScopeImpl implements DomainModelScope, AutoCloseable {
private final ServiceRegistryScope serviceRegistryScope;
private final DomainModelProducer producer;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public void handleTestExecutionException(ExtensionContext context, Throwable thr
throw throwable;
}

private static class ServiceRegistryScopeImpl implements ServiceRegistryScope, ExtensionContext.Store.CloseableResource {
private static class ServiceRegistryScopeImpl implements ServiceRegistryScope, AutoCloseable {
private BootstrapServiceRegistryProducer bsrProducer;
private ServiceRegistryProducer ssrProducer;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public void handleTestExecutionException(ExtensionContext context, Throwable thr
throw throwable;
}

private static class SessionFactoryScopeImpl implements SessionFactoryScope, ExtensionContext.Store.CloseableResource {
private static class SessionFactoryScopeImpl implements SessionFactoryScope, AutoCloseable {
private final DomainModelScope modelScope;
private final SessionFactoryProducer producer;

Expand Down