-
Notifications
You must be signed in to change notification settings - Fork 9
@Provides Validation
Henry edited this page May 22, 2020
·
2 revisions
-
@Provides methods can only be present within a @Module or @ProducerModule
-
@Provides methods may not have type parameters
-
@Provides methods cannot be private
-
@Provides methods cannot be abstract
-
@Provides methods may only throw unchecked exceptions
-
@Provides methods cannot use more than one @Scope
-
@Provides methods may not use more than one @Qualifier
-
@Provides methods must return a value (not void)
-
@Provides methods must not return framework types