How to make a groovy @Deprecated property appears deprecated
('strikethrough') in Eclipse / IntelliJ?
I am looking for a way to make IntelliJ (13-U EAP) or Eclipse (Kepler +
Grails IDE 3.4) understands @Deprecated annotations on a domain class
property, like :
@Resource
class Foobar {
@Deprecated
String someDeprecatedField
}
The code should appears like this (where the <del> parts should be like
this) :
Foobar foobar = new Foobar(<del>someDeprecatedField</del>: 'a value')
foobar.<del>someDeprecatedField</del> = 'other value'
assert null != foobar.<del>someDeprecatedField</del>
Is there an option to make either Eclipse, either IntelliJ, understand
that @Deprecated on a 'property' means deprecated on getter/setter ?
I know I can always create a getter, but if possible, I'd like to avoid
doing that.
No comments:
Post a Comment