groovy/groovy-core — pull request #10 by bodiam (2011-12-26 19:23:56+00:00)
Title: Enum linenumber fix

Hello,

This is a commit to fix the linenumber information in enums, which is currently set to -1 in Groovy 1.8 and Groovy 2.0. This commit fixes that, and is needed for CodeNarc, which uses a lot of rules to check on this property. These rules, for example the UnnecessaryPublicModifierRule.

Erik Pragt