groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Sun <realblue...@hotmail.com>
Subject The order of modifiers and annotations
Date Thu, 19 Jan 2017 07:13:37 GMT
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

         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
}

         I wonder it is feature of Groovy or some space we should
improve(e.g. check more strictly)?

Cheers,
Daniel.Sun



--
View this message in context: http://groovy.329449.n5.nabble.com/The-order-of-modifiers-and-annotations-tp5737808.html
Sent from the Groovy Dev mailing list archive at Nabble.com.

Mime
View raw message