Class ArrayIsStoredDirectlyRule

  • All Implemented Interfaces:
    AstVisitor, JavaVisitor, Rule, PropertySource

    public class ArrayIsStoredDirectlyRule
    extends AbstractJavaRulechainRule
    If a method or constructor receives an array as an argument, the array should be cloned instead of directly stored. This prevents future changes from the user from affecting the original array.