[jbosstools-issues] [JBoss JIRA] (JBIDE-10187) Add support for a @SuppressWarnings

Alexey Kazakov (JIRA) jira-events at lists.jboss.org
Thu Jan 12 18:55:41 EST 2012


    [ https://issues.jboss.org/browse/JBIDE-10187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12659097#comment-12659097 ] 

Alexey Kazakov commented on JBIDE-10187:
----------------------------------------


@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_ at SuppressWarnings.png, Add_ at SuppressWarnings2.png, Add_ at SuppressWarnings2.png, Add_ at SuppressWarnings3.png, Add_ at 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

        


More information about the jbosstools-issues mailing list