[
https://issues.jboss.org/browse/JBIDE-10187?page=com.atlassian.jira.plugi...
]
Alexey Kazakov commented on JBIDE-10187:
----------------------------------------
We support all the warnings that may be added by our CDI, JSF, Seam validators for Java
files.
What we do when any our validator is going to add a problem marker to java file (it's
handled in the only place in our base validator class, so it's working for all the
validators which extend it - CDI, JSF, Seam, ESB(need to double check) ):
- we check if the problem is supposed to be a warning (look at preferences)
- if so, we look for @SuppressWaring and get the list of all the suppressed warnings
- look at our mapping (preference ID of the problem <-> warning group name) to
figure out if the problem (we have its preference ID here) is suppressed by the annotation
with corresponding warning group name.
I will publish the list of all the warning group names tomorrow ;)
Add support for a @SuppressWarnings
-----------------------------------
Key: JBIDE-10187
URL:
https://issues.jboss.org/browse/JBIDE-10187
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: common/jst/core
Affects Versions: 3.3.0.M4
Reporter: Cody Lerum
Assignee: Alexey Kazakov
Labels: new_and_noteworthy
Fix For: 3.3.0.Beta1
Attachments: Add_(a)SuppressWarnings.png, Add_(a)SuppressWarnings2.png,
Add_(a)SuppressWarnings2.png, Add_(a)SuppressWarnings3.png, Add_(a)SuppressWarnings3.png,
ButtonNameBorrowedFromProject.png, ManySuggestionsToAddSuppressWarnings.png, QF.png
Would be nice to place a
@SuppressWarning("ambigiousinjection") or similar on an injection point that
tooling can't figure out.
UPDATE:
There is a few examples of @SuppressWarning:
1. @SuppressWarning("all") - suppresses all the validation warnings for the
java element and its children.
2. @SuppressWarning("cdi") - suppresses all the CDI validation warnings.
3. @SuppressWarning("seam") - suppresses all the Seam 2 validation warnings.
4. @SuppressWarning("cdi-ambiguous-dependency") - suppresses warnings for
ambiguous and unsatisfied dependencies in @Inject.
Each validation warning should have a quick fix which adds the corresponding
@SuppressWarning:
!QF.png!
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira