[Java:S2384] Ignore, if argument is not stored in the instance

If the array argument is not stored in the instance (or for static methods statically), the rule should not complain.

public class A
{
    private int[] foo( int[] bar )
    {
        int[] tmp = bar; // FP
        return tmp;
    }
}

Thanks for the feedback, ticket SONARJAVA-3635 created.

Nice! Thanks.

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