Groovy as List Question -
i ran across bit of code , me seems not needed there reason following
def answers = [] list
instead of
def answers = []
in groovy thought [] empty list there no need have list
no, there no difference, both create arraylist
, list
(java.util.list
) interface anyway.
Comments
Post a Comment