[Java:S2384] Ignore for enum constructors

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.

Thanks for your feedback, ticket SONARJAVA-3648 created.

Nice! Thanks.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.