-
Sub-task
-
Resolution: Done
-
Major
-
None
-
Documentation (Ref Guide, User Guide, etc.)
-
Not Required
This quick fix should offer next:
1. Delete @Disposes annotation
2. Delete @Observes annotation
Test case:
EXECUTE: Create CDI project
EXECUTE: Create TestBean class
package org.test; import javax.enterprise.event.Observes; import javax.enterprise.inject.Disposes; import javax.enterprise.inject.Produces; public class TestBean { @Produces public String produce(){ return "a"; } public void method(@Observes String param1, @Disposes String param2){ } }
ASSERT: @Observes and @Disposes annotations should be marked by problem markers
EXECUTE: Point mouse to @Observes or @Disposes annotations
ASSERT: Text hover with quick fixes appears