Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-12303

Make Quick Fix "Add @SuppressWarnings" work on Temporary annotations

XMLWordPrintable

    • The, Add @SuppressWarnings, quickfix has been updated with a new feature that allows it to work for temporary annotations.
    • Documented as Feature Request

      Test case:
      EXECUTE:
      1. Create CDI project
      2. Create class:

      import javax.enterprise.event.Observes;
      
      public class Test {
      	public void foo(@Observes String s1, String s2) {
      	}
      }
      

      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

            dazarov_jira Daniel Azarov (Inactive)
            dazarov_jira Daniel Azarov (Inactive)
            Isaac Rooskov Isaac Rooskov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: