Replace priority with @Priority
The new @Priority annotation serves the exact same purpose as @Event(priority = ...), but should be easier to read in complex handler declarations. It has to be used in conjunction with the @Event annotation, not instead of it.
This commit is contained in:
		| @@ -80,7 +80,7 @@ public class EventProcessor extends AbstractProcessor { | ||||
| 				if (declaredElement.getKind() == ElementKind.INTERFACE | ||||
| 					|| declaredElement.getModifiers().contains(Modifier.ABSTRACT)) | ||||
| 					warning(paramElement, | ||||
| 						"Parameter should be instantiable or handler should include subtypes"); | ||||
| 						"Parameter should be instantiable or handler should use @Polymorphic"); | ||||
| 			} | ||||
|  | ||||
| 			// Check listener for interface implementation | ||||
|   | ||||
		Reference in New Issue
	
	Block a user