Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wilkinsona opened this issue Jul 24, 2024 · 0 comments
Assignees
Milestone

Comments

@wilkinsona
Copy link
Contributor

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
@wilkinsona wilkinsona added this to the 0.0.43 milestone Jul 24, 2024
@wilkinsona wilkinsona self-assigned this Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant