mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-06 10:08:32 +00:00
Adding @since tags to the two new methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@594416 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
34f2cb2ab0
commit
f001010ccd
@ -5037,6 +5037,7 @@ public static int indexOfDifference(String str1, String str2) {
|
||||
*
|
||||
* @param strs array of strings, entries may be null
|
||||
* @return the index where the strings begin to differ; -1 if they are all equal
|
||||
* @since 2.4
|
||||
*/
|
||||
public static int indexOfDifference(String[] strs) {
|
||||
if (strs == null || strs.length <= 1) {
|
||||
@ -5128,6 +5129,7 @@ public static int indexOfDifference(String[] strs) {
|
||||
* @return the initial sequence of characters that are common to all Strings
|
||||
* in the array; empty String if the array is null, the elements are all null
|
||||
* or if there is no common prefix.
|
||||
* @since 2.4
|
||||
*/
|
||||
public static String getCommonPrefix(String[] strs) {
|
||||
if (strs == null || strs.length == 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user