LANG-1422: Add null-safe StringUtils.valueOf(char[]) to delegate to String.valueOf(char[])
Fix checkstyle violations
This commit is contained in:
parent
c70e05ae41
commit
5afe35c024
|
@ -9413,10 +9413,10 @@ public class StringUtils {
|
|||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns the string representation of the {@code char} array or null.
|
||||
*
|
||||
* Returns the string representation of the {@code char} array or null.
|
||||
*
|
||||
* @param value the character array.
|
||||
* @return a String or null
|
||||
* @see String#valueOf(char[])
|
||||
|
@ -9425,5 +9425,5 @@ public class StringUtils {
|
|||
public static String valueOf(final char[] value) {
|
||||
return value == null ? null : String.valueOf(value);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ import org.junit.jupiter.api.Test;
|
|||
|
||||
/**
|
||||
* Tests {@link StringUtils}'s valueOf() methods.
|
||||
*
|
||||
*
|
||||
* @since 3.9
|
||||
*/
|
||||
public class StringUtilsValueOfTest {
|
||||
|
|
Loading…
Reference in New Issue