Skip to content

#333 Make VirtualSchemaAdapter & AdapterFactory AutoCloseable for resource cleanup#334

Merged
kaklakariada merged 3 commits into
mainfrom
kaklakariada/issue333
Jun 2, 2026
Merged

#333 Make VirtualSchemaAdapter & AdapterFactory AutoCloseable for resource cleanup#334
kaklakariada merged 3 commits into
mainfrom
kaklakariada/issue333

Conversation

@kaklakariada

Copy link
Copy Markdown
Contributor

Closes #333

@kaklakariada kaklakariada enabled auto-merge (squash) June 2, 2026 11:23
* This class implements a stub for a VirtualSchemaAdapter
*/
public class StubAdapter implements VirtualSchemaAdapter {
private static boolean closed = false;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adapter factory is loaded via ServiceLoader in tests, so we can't inject a mock. Keeping state in a static field is the easiest solution to check if it was closed.

@sonarqubecloud

sonarqubecloud Bot commented Jun 2, 2026

Copy link
Copy Markdown

@kaklakariada kaklakariada merged commit 7f81279 into main Jun 2, 2026
7 checks passed
@kaklakariada kaklakariada deleted the kaklakariada/issue333 branch June 2, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make VirtualSchemaAdapter & AdapterFactory AutoCloseable for resource cleanup

2 participants