I have a few custom method annotations used on methods which are typically overridden. For example, let's consider something like an @Async
annotation:
public class Base {
@Async
public void foo() {
}
}
Is there a way to signal to the compiler and/or IDE that a method annotation should follow into overridden versions of a method, so that when someone extends Base
and overrides foo()
, the @Async
annotation is automatically inserted, similarly to how @Override
is automatically inserted by most IDEs?
If there's no general way of hinting this, is there an IntelliJ/Android Studio specific way?