This message was deleted.
# plugin-development
s
This message was deleted.
t
Method documentation is missing this part
v
I'd say it has to, otherwise it cannot know, can it?
t
value provider could be wrapped in some container like Java
Optional
that may indicate no value provider is available or some is set. But from the Gradle code I see it is not the case here and code triggers value calculation
v
I'm not sure what you mean. If the provider calculates to
null
,
isPresent()
returns
false
, so you cannot say whether it is present without calculating.
Copy code
providers.provider { null }.isPresent()
will evaluate to
false
.
👍 1