Skip to content

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

Merged
sttk merged 1 commit into
mainfrom
fix--suppress-warnings-of-heap-pollution-via-varargs
Jan 6, 2023
Merged

fix: suppressed warnings of heap pollutions via varargs parameter#7
sttk merged 1 commit into
mainfrom
fix--suppress-warnings-of-heap-pollution-via-varargs

Conversation

@sttk

@sttk sttk commented Jan 6, 2023

Copy link
Copy Markdown
Owner

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.

1 participant