Skip to content
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

Delay access to DirectBuffers until first use #932

Merged
merged 1 commit into from
Dec 20, 2022

Conversation

theigl
Copy link
Collaborator

@theigl theigl commented Dec 20, 2022

This PR moves initialization for constructor and methods for DirectBuffer into a static inner class. This has the effect that users who never use direct buffers, should not see any warnings.

See #885.

@theigl theigl self-assigned this Dec 20, 2022
@theigl theigl changed the title [DRAFT] Delay access to DirectBuffers until first use Delay access to DirectBuffers until first use Dec 20, 2022
@theigl theigl merged commit bb10a0b into master Dec 20, 2022
@theigl theigl deleted the lazy-init-direct-buffers branch December 20, 2022 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant