commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] MarkDacek commented on issue #408: LANG-1435: Implemented defaultIfNull method that uses a supplier for default value
Date Fri, 01 Mar 2019 02:52:12 GMT
MarkDacek commented on issue #408: LANG-1435: Implemented defaultIfNull method that uses a
supplier for default value
URL: https://github.com/apache/commons-lang/pull/408#issuecomment-468522634
 
 
   I'm curious whether this is worthwhile given the existence of ObjectUtils.firstNonNull.
Is the supplier that much of a necessity?
   
   The only plus I see is that it wouldn't be executed if the default isn't null. Is that
a major performance increase for a significant number of use-cases?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message