最新のGroovy 2.5.0から、groovy.transform.AutoFinalというAST変換が追加されていたらしい。 Immutable (groovy 2.4.2 API) ついさっきPaul King氏のツイートを目にして初めて知った。 I agree with you. In Groovy, we added @AutoFinal to add them implicitly for those that want them but don't want to see them.— Paul King (@paulk_asert) 2018年9月13日 気になったので早速試してみた。 まずは@AutoFinalなし。 class Person { String firstName String lastName Person(String firstName, Strin