Clone
Adam Murdoch
committed
on 01 Jan
Add more validation of inject annotations.
- Don't allow an inject annotation on any method of a type for which it is not relevant, e.g. `@W… Show more
Add more validation of inject annotations.

- Don't allow an inject annotation on any method of a type for which it is not relevant, e.g. `@Workspace` on a `Task` (was only applied to getters previously).

- Don't allow multiple inject annotations on the same getter (received a cryptic error message previously).

- Don't allow inject annotations on private methods, setter methods, static methods and getter methods that cannot be overridden (was applied only to `@Inject` previously).

- Don't allow inject annotations on methods of `ExtensionAware` (received a cryptic error message previously).

Show less

master + 369 more