Skip to content

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

Closed
@wilkinsona

Description

@wilkinsona

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:

  • org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=info
  • org.eclipse.jdt.core.compiler.problem.unusedWarningToken=info

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions