Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions src/main/java/org/apache/commons/lang3/Strings.java
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ public boolean endsWithAny(final CharSequence sequence, final CharSequence... se
*
* @param cs1 the first CharSequence, may be {@code null}
* @param cs2 the second CharSequence, may be {@code null}
* @return {@code true} if the CharSequences are equal (case-sensitive), or both {@code null}
* @return {@code true} if the CharSequences are equal or both {@code null}
* @see Object#equals(Object)
* @see String#compareTo(String)
* @see String#equalsIgnoreCase(String)
Expand Down Expand Up @@ -713,7 +713,7 @@ public boolean endsWithAny(final CharSequence sequence, final CharSequence... se
*
* @param str1 the first CharSequence, may be {@code null}
* @param str2 the second CharSequence, may be {@code null}
* @return {@code true} if the CharSequences are equal (case-sensitive), or both {@code null}
* @return {@code true} if the CharSequences are equal or both {@code null}
* @see Object#equals(Object)
* @see String#compareTo(String)
* @see String#equalsIgnoreCase(String)
Expand Down Expand Up @@ -751,7 +751,7 @@ public boolean endsWithAny(final CharSequence sequence, final CharSequence... se
*
* @param string to compare, may be {@code null}.
* @param searchStrings a vararg of strings, may be {@code null}.
* @return {@code true} if the string is equal (case-sensitive) to any other element of {@code searchStrings}; {@code false} if {@code searchStrings} is
* @return {@code true} if the string is equal to any other element of {@code searchStrings}; {@code false} if {@code searchStrings} is
* null or contains no matches.
*/
public boolean equalsAny(final CharSequence string, final CharSequence... searchStrings) {
Expand Down Expand Up @@ -1095,7 +1095,7 @@ public String remove(final String str, final String remove) {
}

/**
* Case-insensitive removal of a substring if it is at the end of a source string, otherwise returns the source string.
* Removal of a substring if it is at the end of a source string, otherwise returns the source string.
*
* <p>
* A {@code null} source string will return {@code null}. An empty ("") source string will return the empty string. A {@code null} search string will return
Expand Down Expand Up @@ -1132,7 +1132,7 @@ public String remove(final String str, final String remove) {
* </pre>
*
* @param str the source String to search, may be null
* @param remove the String to search for (case-insensitive) and remove, may be null
* @param remove the String to search for and remove, may be null
* @return the substring with the string removed if found, {@code null} if null String input
*/
public String removeEnd(final String str, final CharSequence remove) {
Expand All @@ -1146,7 +1146,7 @@ public String removeEnd(final String str, final CharSequence remove) {
}

/**
* Case-insensitive removal of a substring if it is at the beginning of a source string, otherwise returns the source string.
* Removal of a substring if it is at the beginning of a source string, otherwise returns the source string.
*
* <p>
* A {@code null} source string will return {@code null}. An empty ("") source string will return the empty string. A {@code null} search string will return
Expand Down Expand Up @@ -1182,7 +1182,7 @@ public String removeEnd(final String str, final CharSequence remove) {
* </pre>
*
* @param str the source String to search, may be null
* @param remove the String to search for (case-insensitive) and remove, may be null
* @param remove the String to search for and remove, may be null
* @return the substring with the string removed if found, {@code null} if null String input
*/
public String removeStart(final String str, final CharSequence remove) {
Expand All @@ -1193,7 +1193,7 @@ public String removeStart(final String str, final CharSequence remove) {
}

/**
* Case insensitively replaces all occurrences of a String within another String.
* Replaces all occurrences of a String within another String.
*
* <p>
* A {@code null} reference passed to this method is a no-op.
Expand Down Expand Up @@ -1230,7 +1230,7 @@ public String removeStart(final String str, final CharSequence remove) {
*
* @see #replace(String text, String searchString, String replacement, int max)
* @param text text to search and replace in, may be null
* @param searchString the String to search for (case-insensitive), may be null
* @param searchString the String to search for, may be null
* @param replacement the String to replace it with, may be null
* @return the text with any replacements processed, {@code null} if null String input
*/
Expand Down Expand Up @@ -1283,7 +1283,7 @@ public String replace(final String text, final String searchString, final String
* </pre>
*
* @param text text to search and replace in, may be null
* @param searchString the String to search for (case-insensitive), may be null
* @param searchString the String to search for, may be null
* @param replacement the String to replace it with, may be null
* @param max maximum number of values to replace, or {@code -1} if no maximum
* @return the text with any replacements processed, {@code null} if null String input
Expand Down Expand Up @@ -1398,7 +1398,7 @@ public String replaceOnce(final String text, final String searchString, final St
* @see String#startsWith(String)
* @param str the CharSequence to check, may be null
* @param prefix the prefix to find, may be null
* @return {@code true} if the CharSequence starts with the prefix, case-sensitive, or both {@code null}
* @return {@code true} if the CharSequence starts with the prefix or both {@code null}
*/
public boolean startsWith(final CharSequence str, final CharSequence prefix) {
if (str == null || prefix == null) {
Expand Down
Loading