I am using IntelliJ IDEA with javac on JDK 1.8. I have the following code:
class Test { @SafeVarargs final void varargsMe
An additional (and quite superfluous-looking) @SuppressWarnings( "varargs" ) is needed to suppress the warning, as follows:
@SuppressWarnings( "varargs" )
@SafeVarargs @SuppressWarnings( "varargs" ) final void varargsMethod( Collection... varargs ) { arrayMethod( varargs ); }