Discourage the use of a Provider<T> where T is a type that is lazy #10610
Labels
a:feature
A new functionality
in:provider-api
property lazy provider MapProperty ListProperty DirectoryProperty
in:work-validation
task validation, warnings, disable optimizations
Using a provider of a lazy type is generally pointless, and the lazy type can be used directly instead. Find ways to avoid the following:
Provider<FileCollection>
(or any subtype such asFileTree
)Provider<Provider<?>>
(or any subtype ofProvider
such asProperty
)Provider<DomainObjectCollection<?>>
(or any subtype such asTaskCollection
).This might include validation, documentation, clearer APIs (for example changing these types to extend
Provider
).The text was updated successfully, but these errors were encountered: