You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by RahulNagekar <gi...@git.apache.org> on 2018/12/01 06:30:59 UTC

[GitHub] commons-lang pull request #278: Lang-1345 Enhance non-empty strings

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

    https://github.com/apache/commons-lang/pull/278#discussion_r238054315
  
    --- Diff: src/main/java/org/apache/commons/lang3/StringUtils.java ---
    @@ -9008,6 +9011,56 @@ public static String appendIfMissingIgnoreCase(final String str, final CharSeque
             return appendIfMissing(str, suffix, true, suffixes);
         }
     
    +    /**
    +     * <p>Returns either the passed in String with the specified suffix attached,
    +     * or if the String is empty ("")/{@code null}, an empty string.</p>
    +     *
    +     * <p>Whitespace is defined by {@link Character#isWhitespace(char)}.</p>
    +     *
    +     * <pre>
    +     * StringUtils.appendIfNotBlank(null, " ")      = ""
    --- End diff --
    
    The javadoc needs an update to be in sync with the method name.


---