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

fix: suppressed warnings of heap pollutions via varargs parameter #7

Merged
merged 1 commit into from
Jan 6, 2023

Conversation

sttk
Copy link
Owner

@sttk sttk commented Jan 6, 2023

Proc#runTxn and Proc#txn uses variadic arguments with a type parameter, and compiler outputs warnings of possibility of heap pollutions at these methods.

Since these methods does not modify their argument arrays and there are no possibility of heap pollutions, @SafeVarargs annotation and final morifier are attached to each of these methods to suppress the warnings.

@sttk sttk merged commit 84679e8 into main Jan 6, 2023
@sttk sttk deleted the fix--suppress-warnings-of-heap-pollution-via-varargs branch January 6, 2023 20:04
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.

None yet

1 participant