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

Alexey Kazakov (Commented) (JIRA) jira-events at lists.jboss.org
Thu Dec 15 12:33:09 EST 2011


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

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

We don't use any special names for JBT warnings so far. We use preference IDs for corresponding problems.
For example we have a validation rule that validates if a producer annotated @Inject. This rule has a preference key - "org.jboss.tools.cdi.core.validator.problem.producerAnnotatedInject".
Our validation framework now checks if the java element (which is going to be marked as a problem) annotated @SuppressWarnings(<preferenceIDofValidationRule>);
We were thinking about adding some map between validation preference IDs and warning names because preference IDs were not supposed to be used in UI. When we started this work we decided not to use any map in the first version of this feature but now when we almost complete it and we still have plenty of time for work on Beta1 I think that we can add such a map right now and get rid of preference IDs in @SuppressWarnings.
                
> 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: Daniel Azarov
>             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
>
>
> Would be nice to place a 
> @SuppressWarning("ambigiousinjection") or similar on an injection point that tooling can't figure out.

--
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