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:14:56 GMT


On 19.01.2017 08:13, Daniel Sun wrote:
> Hi all,
>
>        Currently the old parser allows mixing modifiers and annotations,
> e.g.
>
> *Current*
> @interface Test1 {}
> @interface Test2 {}
> @Test1 final @Test2 a
>
> *Suggested*
> @interface Test1 {}
> @interface Test2 {}
> @Test1 @Test2 final a

this looks right to me, though unless that gives a big advantage in the 
parser I would not do it.

>          In addition, the order of modifiers is arbitrary too, e.g.
>
> *Current*
> class A {
>     static final public a
> }
>
> *Suggested*
> class A {
>     public static final a
> }

that one I would not do

bye Jochen

Mime
View raw message