question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ignore unknown @SuppressWarnings

See original GitHub issue

I have project that has a lot of @SuppressWarnings annotations for pmd and checkstyle. The eclipse parser however does not know about these extra warning names, and because of this intellisense has a warning on every usage. This is a bug in the backing language server, but however the recommendation for years has been to disable all Unhandled Token warnings in eclipse. However, I can’t find a way to set that from the vscode extension. I don’t expect the actual backing issue fixed in here, but being able to disable that warning would be really helpful.

https://stackoverflow.com/questions/5017569/unsupported-suppresswarningspmd-donotcallsystemexit

warningmessage

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:8

github_iconTop GitHub Comments

2reactions
fbriconcommented, Sep 2, 2019

“Unsupported SuppressWarning” warnings are now ignored by default. To get a different behaviour, one needs to set org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=ignore|warning|info|error

0reactions
ThadHousecommented, Jun 4, 2019

We’ve been getting more and more complaints about this specific warning from our users. It seems kind of backwards that a warning specifically designed to suppress warnings is actually causing more warnings. I feel like that warning specifically should be silenced by default, because otherwise its backwards from what it actually is designed to do.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Excluding warnings using @SuppressWarnings - IBM
Token Description Suppressed compiler option(s) all to suppress all warnings All compiler options cast to suppress warnings relative to cast operations Unnecessary cast or 'instance... deprecation...
Read more >
What is the list of valid @SuppressWarnings warning names ...
All values are permitted (unrecognized ones are ignored). The list of recognized ones is compiler specific. In ...
Read more >
Excluding warnings using @SuppressWarnings - eXERD
Since Java 5.0, you can disable compilation warnings relative to a subset of a compilation unit using the java.lang.SuppressWarning annotation.
Read more >
SuppressWarnings (Java Platform SE 8 ) - Oracle Help Center
The presence of unrecognized warning names is not an error: Compilers must ignore any warning names they do not recognize. They are, however,...
Read more >
Java @SuppressWarnings Annotation
The @SuppressWarnings annotation type allows Java programmers to disable compilation warnings for a certain part of a program (type, field, method, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found