Mikhail2048 opened a new pull request #857: URL: https://github.com/apache/commons-lang/pull/857
I have encountered a following use case: we have a java object in the local cache, that might have or might have not a `String` field. In case this String field is empty we need to do AWS S3 lookup for that object and fetch this String field from pulled object. Problem is that `defaultIfEmpty(final T source, final T default)` method that already present in `StringUtils` will do S3 lookup in any case, even if source String is present. I think it would be a great idea to create almost the same method but with lazy computation of default string, exactly for that kind of use cases. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
