[
https://issues.jboss.org/browse/JBIDE-10187?page=com.atlassian.jira.plugi...
]
Alexey Kazakov edited comment on JBIDE-10187 at 1/12/12 6:45 PM:
-----------------------------------------------------------------
@SuppressWarnings("all") - suppress all the warnings.
*CDI Warnings.*
@SuppressWarnings("cdi") - suppress all the CDI warnings.
@SuppressWarnings("cdi-annotated-observer") - suppress "Observer is
annotated @Inject"
@SuppressWarnings("cdi-target") - suppress "Missing or incorrect @Target or
@Retention in an annotation type"
@SuppressWarnings("cdi-interceptor") - suppress "Illegal lifecycle callback
interceptor binding"
@SuppressWarnings("cdi-multiple-disposers") - suppress "Multiple disposers
for producer"
@SuppressWarnings("cdi-default-scope") - suppress "Missing scope when there
is no default scope"
@SuppressWarnings("cdi-annotated-produces") - suppress "Illegal producer in
Session Bean"
@SuppressWarnings("cdi-typed") - suppress "Illegal type in @Typed"
Stereotype has @Typed"
@SuppressWarnings("cdi-named-producer") - suppress "Producer field
declaration of resource specifies EL name"
@SuppressWarnings("cdi-constructor") - suppress "Constructor parameter
illegally annotated", "Multiple injection constructors"
@SuppressWarnings("cdi-specializes-named") - suppress "Conflicting name in
specializing bean"
@SuppressWarnings("cdi-stereotype") - suppress "Illegal qualifier in
stereotype"
@SuppressWarnings("cdi-missing-interceptor-binding") - suppress "Missing
interceptor binding"
@SuppressWarnings("cdi-type-variable") - suppress "Injection type is
variable"
@SuppressWarnings("cdi-observer") - suppress "Illegal conditional
observer", "Illegal observer in Session Bean" and "Interceptor or
decorator annotated @Observes"
@SuppressWarnings("cdi-multiple-disposes") - suppress "Multiple disposing
parameters"
@SuppressWarnings("cdi-ambiguous-interceptor-binding") - suppress
"Conflicting interceptor binding"
@SuppressWarnings("cdi-interceptor-decorator") - suppress "Both
@Interceptor and @Decorator used", "Session bean annotated @Interceptor or
@Decorator"
@SuppressWarnings("cdi-inconsistent-specialization") - suppress
"Inconsistent specialization"
@SuppressWarnings("cdi-delegate") - suppress "Illegal bean declares
delegate", "Illegal injection point delegate"
@SuppressWarnings("cdi-nullable") - suppress "Injection point of primitive
type resolves to a nullabe bean"
@SuppressWarnings("cdi-ambiguous-name") - suppress "Ambiguous EL
names"
@SuppressWarnings("cdi-missing-producer") - suppress "No producer matching
disposer"
@SuppressWarnings("cdi-annotated-parameter") - suppress "Producer parameter
illegally annotated", "Observer parameter illegally annotated"
@SuppressWarnings("cdi-annotated-disposer") - suppress "Disposer is
annotated @Inject", "Illegal disposer in Session Bean"
@SuppressWarnings("cdi-multiple-scopes") - suppress "Multiple scope
annotations", "Stereotype declares more than one scope"
@SuppressWarnings("cdi-named") - suppress "Interceptor or decorator
declares name"
@SuppressWarnings("cdi-scope") - suppress "Illegal scope when type
injection point is injected", "Illegal scope for bean", "Illegal scope
for interceptor or decorator"
@SuppressWarnings("cdi-disposer") - suppress "Interceptor or decorator has
a method annotated @Disposes"
@SuppressWarnings("cdi-delegate-type") - suppress "Delegate has illegal
type"
@SuppressWarnings("cdi-alternative") - suppress "Interceptor or decorator
is an alternative"
@SuppressWarnings("cdi-interceptor-binding") - suppress "Illegal
interceptor binding method"
@SuppressWarnings("cdi-annotated-inject") - suppress "Producer is annotated
@Inject"
@SuppressWarnings("cdi-typed-producer") - suppress "Wildcard or variable in
producer field type/method return type"
@SuppressWarnings("cdi-ambiguous-dependency") - suppress "Unsatisfied or
ambiguous dependencies for injection point" Unproxyable bean type for injection
point"
@SuppressWarnings("cdi-not-passivation-capable") - suppress "Not
passivation capable managed bean w/ passivating scope"
@SuppressWarnings("cdi-final") - suppress "Decorator bound to managed bean
w/ final method/class"
@SuppressWarnings("cdi-nonbinding") - suppress "Missing @Nonbinding in
qualifier type member", "Missing @Nonbinding in interceptor binding type
member"
@SuppressWarnings("cdi-multiple-observers") - suppress "Multiple observing
parameterts"
@SuppressWarnings("cdi-ambiguous-delegate") - suppress "Multiple or missing
delegate"
@SuppressWarnings("cdi-producer") - suppress "Interceptor or decorator has
a field annotated @Produces"
@SuppressWarnings("cdi-static") - suppress "Illegal specializing bean"
@SuppressWarnings("cdi-empty-named") - suppress "Empty name at parameter
injection"
@SuppressWarnings("cdi-specializes") - suppress "Interceptor or decorator
annotated @Specializes", "Missing type in specializing bean"
@SuppressWarnings("cdi-generic") - suppress "Generic or static method is
annotated @Inject"
@SuppressWarnings("cdi-non-empty-named") - suppress "Stereotype has
non-empty name"
was (Author: akazakov):
@SupressWarnings("all") - supress all the warnings.
*CDI Warnings.*
@SupressWarnings("cdi") - supress all the CDI warnings.
@SupressWarnings("cdi-annotated-observer") - supress "Observer is annotated
@Inject"
@SupressWarnings("cdi-target") - supress "Missing or incorrect @Target or
@Retention in an annotation type"
@SupressWarnings("cdi-interceptor") - supress "Illegal lifecycle callback
interceptor binding"
@SupressWarnings("cdi-multiple-disposers") - supress "Multiple disposers
for producer"
@SupressWarnings("cdi-default-scope") - supress "Missing scope when there
is no default scope"
@SupressWarnings("cdi-annotated-produces") - supress "Illegal producer in
Session Bean"
@SupressWarnings("cdi-typed") - supress "Illegal type in @Typed"
Stereotype has @Typed"
@SupressWarnings("cdi-named-producer") - supress "Producer field
declaration of resource specifies EL name"
@SupressWarnings("cdi-constructor") - supress "Constructor parameter
illegally annotated", "Multiple injection constructors"
@SupressWarnings("cdi-specializes-named") - supress "Conflicting name in
specializing bean"
@SupressWarnings("cdi-stereotype") - supress "Illegal qualifier in
stereotype"
@SupressWarnings("cdi-missing-interceptor-binding") - supress "Missing
interceptor binding"
@SupressWarnings("cdi-type-variable") - supress "Injection type is
variable"
@SupressWarnings("cdi-observer") - supress "Illegal conditional
observer", "Illegal observer in Session Bean" and "Interceptor or
decorator annotated @Observes"
@SupressWarnings("cdi-multiple-disposes") - supress "Multiple disposing
parameters"
@SupressWarnings("cdi-ambiguous-interceptor-binding") - supress
"Conflicting interceptor binding"
@SupressWarnings("cdi-interceptor-decorator") - supress "Both @Interceptor
and @Decorator used", "Session bean annotated @Interceptor or @Decorator"
@SupressWarnings("cdi-inconsistent-specialization") - supress "Inconsistent
specialization"
@SupressWarnings("cdi-delegate") - supress "Illegal bean declares
delegate", "Illegal injection point delegate"
@SupressWarnings("cdi-nullable") - supress "Injection point of primitive
type resolves to a nullabe bean"
@SupressWarnings("cdi-ambiguous-name") - supress "Ambiguous EL names"
@SupressWarnings("cdi-missing-producer") - supress "No producer matching
disposer"
@SupressWarnings("cdi-annotated-parameter") - supress "Producer parameter
illegally annotated", "Observer parameter illegally annotated"
@SupressWarnings("cdi-annotated-disposer") - supress "Disposer is annotated
@Inject", "Illegal disposer in Session Bean"
@SupressWarnings("cdi-multiple-scopes") - supress "Multiple scope
annotations", "Stereotype declares more than one scope"
@SupressWarnings("cdi-named") - supress "Interceptor or decorator declares
name"
@SupressWarnings("cdi-scope") - supress "Illegal scope when type injection
point is injected", "Illegal scope for bean", "Illegal scope for
interceptor or decorator"
@SupressWarnings("cdi-disposer") - supress "Interceptor or decorator has a
method annotated @Disposes"
@SupressWarnings("cdi-delegate-type") - supress "Delegate has illegal
type"
@SupressWarnings("cdi-alternative") - supress "Interceptor or decorator is
an alternative"
@SupressWarnings("cdi-interceptor-binding") - supress "Illegal interceptor
binding method"
@SupressWarnings("cdi-annotated-inject") - supress "Producer is annotated
@Inject"
@SupressWarnings("cdi-typed-producer") - supress "Wildcard or variable in
producer field type/method return type"
@SupressWarnings("cdi-ambiguous-dependency") - supress "Unsatisfied or
ambiguous dependencies for injection point" Unproxyable bean type for injection
point"
@SupressWarnings("cdi-not-passivation-capable") - supress "Not passivation
capable managed bean w/ passivating scope"
@SupressWarnings("cdi-final") - supress "Decorator bound to managed bean w/
final method/class"
@SupressWarnings("cdi-nonbinding") - supress "Missing @Nonbinding in
qualifier type member", "Missing @Nonbinding in interceptor binding type
member"
@SupressWarnings("cdi-multiple-observers") - supress "Multiple observing
parameterts"
@SupressWarnings("cdi-ambiguous-delegate") - supress "Multiple or missing
delegate"
@SupressWarnings("cdi-producer") - supress "Interceptor or decorator has a
field annotated @Produces"
@SupressWarnings("cdi-static") - supress "Illegal specializing bean"
@SupressWarnings("cdi-empty-named") - supress "Empty name at parameter
injection"
@SupressWarnings("cdi-specializes") - supress "Interceptor or decorator
annotated @Specializes", "Missing type in specializing bean"
@SupressWarnings("cdi-generic") - supress "Generic or static method is
annotated @Inject"
@SupressWarnings("cdi-non-empty-named") - supress "Stereotype has non-empty
name"
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