I have created an ArrayList like the following:
def list = new ArrayList()
But the codenarc report it is warning like following.
Why don't you just use a suggestion from codenarc?
def list = [] as ArrayList