You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@groovy.apache.org by MG <mg...@arscreat.com> on 2020/03/19 17:46:09 UTC

IntelliJ IDEA Groovy 2.5/3.0 Feature Support - @AutoFinal/@NamedParam/@NamedDelegate

Hi Groovy users,

added @AutoFinal* ticket & extended @NamedVariant to include @NamedParam 
and @NamedDelegate: https://youtrack.jetbrains.com/issue/IDEA-193168

Plz vote,
Cheers,
mg


*If you (like me) basically never reassign method/closure/ctor 
parameters inside methods/..., they are effectively final and should 
carry that modifier, for documentation purposes and to catch if a 
programmer does try to reassign.
  Alas that massively clutters the method signature - Groovy's 
@AutoFinal takes care of that for you, telling Groovy to assume every 
method/closure/ctor parameter inside an annotated class carries the 
final modifier (you can exclude a method/... again by annotating it 
with  @AutoFinal(enabled = false) )  G-)