LANG-1422: Add null-safe StringUtils.valueOf(char[]) to delegate to String.valueOf(char[])

Fix checkstyle violations
This commit is contained in:
pascalschumacher 2018-10-26 19:48:28 +02:00
parent c70e05ae41
commit 5afe35c024
2 changed files with 5 additions and 5 deletions

View File

@ -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);
}
}

View File

@ -21,7 +21,7 @@ import org.junit.jupiter.api.Test;
/**
* Tests {@link StringUtils}'s valueOf() methods.
*
*
* @since 3.9
*/
public class StringUtilsValueOfTest {