[Codenarc-developer] UnnecessaryIntegerInstantiation message
Brought to you by:
chrismair
From: <chr...@wa...> - 2011-01-13 12:47:42
|
Hamlet, In the violation message for the UnnecessaryBigDecimalInstantiation rule, is the "G" suffix necessary? e.g. source: BigDecimal amount = new BigDecimal("1115.37") message: Can probably be rewritten as 1115.37G since Groovy will treat 1115.37 as a BigDecimal by default. Likewise, the message for UnnecessaryIntegerInstantiation includes an "i" suffix after the number. Can we remove them or at least further qualify that message. I can just see developers adding unnecessary "G" and "i" all over the place. Chris |