groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Theodorou <blackd...@gmx.org>
Subject Re: The order of modifiers and annotations
Date Thu, 19 Jan 2017 08:16:28 GMT


On 19.01.2017 08:22, Daniel Sun wrote:
> Should we check the redundant modifiers? e.g.
>
> *Current*
> class A {
>     private def a  // def is redundant. IMHO, I really don't like it...
> }
>
> *Suggested*
> class A {
>     private a
> }

def is by now to be thought of as an alias for Object. In that sense it 
is correct to do "private def a" as it is correct to do "private Object a"

bye Jochen

Mime
View raw message