I want to do something like this:
@Testing
private void methodThatGivesWarningIfUserTriesToUseThis() {
}
where @Testing is a custom annotation/decorator in Java. I'd like the behaviour of this @Testing annotation to act ALMOST EXACTLY like the @Deprecated annotation - if i or someone else accidentally tries to use this in other parts of the code, the IDE will give a warning (and the method name also has a strike-through across the font). So for ex
how do i do this?
**note: i do not want to use @Deprecated because the method is not deprecated, i just want only to use it for testing purposes
**this marker should also be checked at compile time, not runTime.