[英]Is there any scenario where heap pollution from parameterized vararg type occurs without an explicit `Object[]` conversion?
在使用不可具體化的可變參數時,我一直在查看有關堆污染的各種答案和文章。 我發現的所有示例都使用Object[]轉換,然后是數組元素寫入。 堆污染似乎只以這種方式發生,例如:public void example(List<Integer>... lists) { // list ...