Make org.apache.commons.lang3.CharSequenceUtils.toCharArray(CharSequence)

public.
This commit is contained in:
Gary Gregory 2020-06-26 15:32:13 -04:00
parent 10f6a80c96
commit 1621a23d2b
2 changed files with 3 additions and 1 deletions

View File

@ -81,6 +81,7 @@ The <action> type attribute can be add,update,fix,remove.
<action type="add" dev="ggregory">Add ObjectUtils.toString(Object, Supplier&lt;String&gt;).</action>
<action issue="LANG-1567" type="update" dev="ggregory" due-to="Miguel Muñoz, Bruno P. Kinoshita, Gary Gregory">Fixed Javadocs for setTestRecursive() #556.</action>
<action issue="LANG-1542" type="update" dev="ggregory" due-to=" Trần Ngọc Khoa, Gary Gregory">ToStringBuilder.reflectionToString - Wrong JSON format when object has a List of Enum.</action>
<action type="update" dev="ggregory">Make org.apache.commons.lang3.CharSequenceUtils.toCharArray(CharSequence) public.</action>
<action type="update" dev="ggregory">org.apache.commons:commons-parent 50 -> 51.</action>
<action type="update" dev="ggregory">org.junit-pioneer:junit-pioneer 0.5.4 -> 0.6.0.</action>
<action type="update" dev="ggregory">org.junit.jupiter:junit-jupiter 5.6.0 -> 5.6.1.</action>

View File

@ -303,8 +303,9 @@ private static boolean checkLaterThan1(final CharSequence cs, final CharSequence
*
* @param cs the {@code CharSequence} to be processed
* @return the resulting char array
* @since 3.11
*/
static char[] toCharArray(final CharSequence cs) {
public static char[] toCharArray(final CharSequence cs) {
if (cs instanceof String) {
return ((String) cs).toCharArray();
}