[
https://issues.jboss.org/browse/JBIDE-10187?page=com.atlassian.jira.plugi...
]
Alexey Kazakov edited comment on JBIDE-10187 at 1/12/12 7:10 PM:
-----------------------------------------------------------------
*Seam Warnings.*
@SuppressWarnings("seam") - suppress all the Seam warnings.
@SupressWarnings("seam-remove") - suppress "Stateful component does not
contain @Remove method", "Duplicate @Remove method for stateful session
bean"
@SupressWarnings("seam-destroy") - suppress "Only JavaBeans and stateful
session beans support @Destroy methods", "Stateful component does not contain
@Destroy method"
@SupressWarnings("seam-ambiguous-data") - suppress "Multiple data
binder", "Unknown @DataModel/@Out name"
@SupressWarnings("seam-unresolved-view") - suppress "Unresolved view-id in
redirects"
@SupressWarnings("seam-duplicated-component") - suppress "Duplicate
component name"
@SupressWarnings("seam-unused-method") - suppress "Only component class can
have @Unwrap method", "Only component class can have @Create method",
"Only component class can have @Observer method"
@SupressWarnings("seam-unknown-component") - suppress "Component class name
cannot be resolved to a type",
"org.jboss.tools.seam.core.validator.problem.unknownComponentClassNameGuess"
@SupressWarnings("seam-unresolved-variable") - suppress "Unknown variable
name"
@SupressWarnings("seam-scope") - suppress "Stateful component has wrong
scope"
@SupressWarnings("seam-factory") - suppress "Unknown factory name"
@SupressWarnings("seam-entity") - suppress "Entity component has wrong
scope"
@SupressWarnings("seam-duplicated-method") - suppress "Duplicate @Unwrap
method", "Duplicate @Create method", "Duplicate @Destroy method"
@SupressWarnings("seam-duplicated-variable") - suppress "Duplicate factory
name"
@SupressWarnings("seam-unknown-property") - suppress "Component class does
not contain setter for property"
was (Author: akazakov):
*Seam Warnings.*
@SuppressWarnings("seam") - suppress all the Seam warnings.
CDI Warnings:
@SupressWarnings("seam-remove") - suppress "Stateful component does not
contain @Remove method", "Duplicate @Remove method for stateful session
bean"
@SupressWarnings("seam-destroy") - suppress "Only JavaBeans and stateful
session beans support @Destroy methods", "Stateful component does not contain
@Destroy method"
@SupressWarnings("seam-ambiguous-data") - suppress "Multiple data
binder", "Unknown @DataModel/@Out name"
@SupressWarnings("seam-unresolved-view") - suppress "Unresolved view-id in
redirects"
@SupressWarnings("seam-duplicated-component") - suppress "Duplicate
component name"
@SupressWarnings("seam-unused-method") - suppress "Only component class can
have @Unwrap method", "Only component class can have @Create method",
"Only component class can have @Observer method"
@SupressWarnings("seam-unknown-component") - suppress "Component class name
cannot be resolved to a type",
"org.jboss.tools.seam.core.validator.problem.unknownComponentClassNameGuess"
@SupressWarnings("seam-unresolved-variable") - suppress "Unknown variable
name"
@SupressWarnings("seam-scope") - suppress "Stateful component has wrong
scope"
@SupressWarnings("seam-factory") - suppress "Unknown factory name"
@SupressWarnings("seam-entity") - suppress "Entity component has wrong
scope"
@SupressWarnings("seam-duplicated-method") - suppress "Duplicate @Unwrap
method", "Duplicate @Create method", "Duplicate @Destroy method"
@SupressWarnings("seam-duplicated-variable") - suppress "Duplicate factory
name"
@SupressWarnings("seam-unknown-property") - suppress "Component class does
not contain setter for property"
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