Ignore unknown @SuppressWarnings
See original GitHub issueI 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
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:8
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
“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
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.