You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by GitBox <gi...@apache.org> on 2019/11/04 09:55:29 UTC

[GitHub] [commons-lang] Lysergid commented on a change in pull request #416: Add support of lambda value evaluation for defaulting methods

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) {
      * <p>Caller responsible for thread-safety and exception handling of default value supplier</p>
      *
      * <pre>
-     * StringUtils.lazyDefaultIfBlank(null, () -&gt; "NULL")   = "NULL"
-     * StringUtils.lazyDefaultIfBlank("", () -&gt; "NULL")     = "NULL"
-     * StringUtils.lazyDefaultIfBlank(" ", () -&gt; "NULL")    = "NULL"
-     * StringUtils.lazyDefaultIfBlank("bat", () -&gt; "NULL")  = "bat"
-     * StringUtils.lazyDefaultIfBlank("", () -&gt; null)       = null
-     * StringUtils.lazyDefaultIfBlank("", null)                = null
+     * StringUtils.defaultIfBlank(null, () -&gt; "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