spring-io / spring-javaformat

Apache License 2.0
795 stars 110 forks source link

Configure Eclipse not to warn about unnecessary and unsupported warning suppressions #418

Closed wilkinsona closed 1 month ago

wilkinsona commented 1 month ago

Eclipse's JDT and javac don't agree on the tokens that are supported by @SuppressWarnings and when some suppressions are necessary. This leads to warnings in Eclipse such as Unnecessary @SuppressWarnings("deprecation") and Unsupported @SuppressWarnings("varargs"). If the suppression is removed, javac reports compilation warnings that cause the build to fail when compiling with -Werror.

Rather than hiding the problems that Eclipse reports completely, we could lower their level from warning to info. The Eclipse settings for this are: