[
https://issues.jboss.org/browse/JBIDE-10187?page=com.atlassian.jira.plugi...
]
Viacheslav Kabanovich commented on JBIDE-10187:
-----------------------------------------------
One more suggestion for 'Configure Problem Severity' label:
Suppose we have two different markers in one line; e.g. there are two error markers at
line with @Inject:
{code}
@Inject
public static void destorySpider(@SuppressWarnings("cdi-annotated-disposer")
@Disposes Spider spider) {
}
{code}
We may see two 'Configure Problem Severity %preference label%' suggestions (in the
list invoked by clicking the marker in editor) and select one of them to configure as
warning. Later we may wish to configure the other one as warning. But which one? There is
the red icon in editor at this line - as corresponding to the severest error. And quick
fix suggests two 'Configure Problem Severity' options that do not hint in which
state the correspondent preference now is. I suggest to show that by modifying its icon
with red or yellow error mark instead of always red.
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: Viacheslav Kabanovich
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