Suppress warnings for lack of @Override annotation in Eclipse

I have warnings for the missing @Override annotation, enabled by default in Eclipse, but for several classes I would prefer to disable it.

Is there any way to do this? Intuitively, you can expect something like @SuppressWarnings("override") , but this, of course, is not supported.

+4
source share
2 answers

In eclipse settings -> windows -> select java -> compiler -> Errors / warnings

override the type in the search bar and then ignore the set level of "missing @overriden annotation".

enter image description here

0
source

You must annotate all methods with @Override

or if you do not want to comment on this annotation, you should edit the compiler settings in

eclipse to not show a warning when you are not commenting with @Override.

-4
source

Source: https://habr.com/ru/post/1494720/


All Articles