private void activateRecords(long[] stuff) { ... api.activateRecords(Arrays.asList(specIdsToActivate)); }
Shouldn\'t this call to Array
That's because long[] and Long[] are different types.
In the first case T is long[], in the second T is Long.
How to fix this? Don't use long[] in the first place?