Lysergid commented on a change in pull request #416: Add support of lambda value evaluation for defaulting methods URL: https://github.com/apache/commons-lang/pull/416#discussion_r341968129 ########## File path: src/main/java/org/apache/commons/lang3/StringUtils.java ########## @@ -1491,12 +1491,12 @@ public static int countMatches(final CharSequence str, final CharSequence sub) { *
Caller responsible for thread-safety and exception handling of default value supplier
* *- * StringUtils.lazyDefaultIfBlank(null, () -> "NULL") = "NULL" - * StringUtils.lazyDefaultIfBlank("", () -> "NULL") = "NULL" - * StringUtils.lazyDefaultIfBlank(" ", () -> "NULL") = "NULL" - * StringUtils.lazyDefaultIfBlank("bat", () -> "NULL") = "bat" - * StringUtils.lazyDefaultIfBlank("", () -> null) = null - * StringUtils.lazyDefaultIfBlank("", null) = null + * StringUtils.defaultIfBlank(null, () -> "NULL") = "NULL" Review comment: Thanks for hint ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: users@infra.apache.org With regards, Apache Git Services