square/dagger — pull request #299 by sgoldfed (2013-07-26 23:16:37+00:00)
Title: Added new static checks

Added the following checks:

Check for @Inject on a final field

Validate the use of scoping annotations

error if a scoping annotation is anywhere but a class or method

error if a scoping annotation is on an abstract class or interface

error for more than one scoping annotation is on an element where scoping is allowed

warning if a scoping annotation is on a method that is not a @dagger.Provides method

Validate the use of qualifier annotations

error for more than one qualifier annotation on an element where qualifiers are allowed

error if a qualifier is anywhere but a field, method, or parameter

warning if a qualifier is on a non @dagger.Provides method

warning if a qualifier is on a parameter that is not an @dagger.Provides method parameter or an @Inject constructor parameter

warning if a qualifier is on a non-injectable field