When using the greenrobot EventBus library, all @Subscribe
-annotated methods are displayed in light grey with a warning Method onMyEvent() is never used in Android Studio.
Is there a way to automatically suppress this warning (as the method is not directly called from code, but in response to an event on the event bus)?
You can turn it off by pointing to left of the light greyed code.
Then after bulb icon appear, click and select 'Suppress method annotated by org.greenrobot...'
Found new working plugin for EventBus 3 IntelliJ at eventbus3-intellij-plugin. This is a working fork of Shinnosuke Kugimiya eventbus3-intellij-plugin.
Working with Android Studio 2.1.3.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With