public enum E
{
ELEMENT ( new int[] { 0, 1, 2 } );
private final int[] arg;
E( int[] arg )
{
this.arg = arg; // FP
}
}
If arrays are passed to enum constructors, S2384 should not complain as the array instance is created exclusively for the constructor call.