Github user alasdairhodge commented on a diff in the pull request:

    https://github.com/apache/brooklyn-server/pull/137#discussion_r74739189
  
    --- Diff: 
core/src/main/java/org/apache/brooklyn/util/core/flags/TypeCoercions.java ---
    @@ -138,6 +139,9 @@ private TypeCoercions() {}
         @SuppressWarnings({ "unchecked" })
         public static <T> T coerce(Object value, TypeToken<T> targetTypeToken) 
{
             if (value==null) return null;
    +        if (value instanceof DeferredSupplier<?>) {
    +            value = ((DeferredSupplier<?>) value).get();
    --- End diff --
    
    @aledsage: Revisiting this, `DeferredSupplier` simply restates the contract 
of (Guava) `Supplier`. While superficially redundant, it may offer a (tenuous) 
distinction between "immediately resolvable" and "deferred-ly resolvable" 
quantities. Seems weak though, and potentially *very* confusing for users.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to