[
https://issues.jboss.org/browse/JBIDE-12303?page=com.atlassian.jira.plugi...
]
Daniel Azarov updated JBIDE-12303:
----------------------------------
Description:
Test case:
EXECUTE:
1. Create CDI project
2. Create class:
{code}
import javax.enterprise.event.Observes;
public class Test {
public void foo(@Observes String s1, String s2) {
}
}
{code}
3. Be sure that preference JBoss Tools->CDI->CDI Validator->Multiple observing
parameters is set to value "Warning"
4. Open class Test in Java Editor
5. Add annotation @Observes to parameter s2
6. Do not save the editor
ASSERT:
annotations @Observes should be marked with problem annotation
EXECUTE: Point mpouse to one of annotations @Observes
ASSERT: Quick Fixes "Add @SuppressWarnings" for method and for parameter should
be in Text Hoover
Make Quick Fix "Add @SuppressWarnings" work on Temporary
annotations
--------------------------------------------------------------------
Key: JBIDE-12303
URL:
https://issues.jboss.org/browse/JBIDE-12303
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: common/jst/core
Reporter: Daniel Azarov
Assignee: Daniel Azarov
Labels: new_and_noteworthy
Fix For: 3.4.0.M1
Test case:
EXECUTE:
1. Create CDI project
2. Create class:
{code}
import javax.enterprise.event.Observes;
public class Test {
public void foo(@Observes String s1, String s2) {
}
}
{code}
3. Be sure that preference JBoss Tools->CDI->CDI Validator->Multiple observing
parameters is set to value "Warning"
4. Open class Test in Java Editor
5. Add annotation @Observes to parameter s2
6. Do not save the editor
ASSERT:
annotations @Observes should be marked with problem annotation
EXECUTE: Point mpouse to one of annotations @Observes
ASSERT: Quick Fixes "Add @SuppressWarnings" for method and for parameter should
be in Text Hoover
--
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