#Help with Annotations
1 messages · Page 1 of 1 (latest)
have you implements Listener?
My question is about how I can IntelliJ say to mark my method as used with my own annotation not how to register an event.
ok but thanks for your try 😄
what do you mean mark your method as used?
do you mean ```java
@SuppressWarnings("unused")
No
This is a method with a EventHandler from spigot. I have not used this method anywhere in my code.
so delete it?
i mean, it's more effectiveness
in my point of view
or if not
just do it comment
/* */
This is a method with my own annotation and this method is recognised as unused. How can I achieve that this method is recognised as used too?
well, don't know about custom annotations
Hover over the unused method with your custom annotation. Select "More Actions". There you can choose to supress the unused warning for all methods annotated with your annotation.
Thank you 😄
But I dont marked the spigot methods as used. How can I mark it so that other users have this marked as used too
do you have the minecraft java plugin installed, if so, its that doing it usually
either that or intellij knows from reading spigots code
It does it without the dev plugin applied
then its intellij being smart and reading through spigots code and making it as known ¯_(ツ)_/¯
But I use the annotation too and invoke the method why is it not smart with my code
Ok