core/src/main/java/org/apache/commons/vfs2/util/UserAuthenticatorUtils.java
/**
     * Converts a string to a char array (null safe).
     * @param string The String to convert.
     * @return The character array.
     */
Converts a string to a char array (null safe).
@param string The String to convert.
@return The character array.
Converts a string to a char array ( null safe ) . @param string The String to convert . @return The character array .
public static char[] toChar(String string)
    {
        if (string == null)
        {
            return null;
        }
        return string.toCharArray();
    }
public static char [ ] toChar ( String string ) { if ( string == null ) { return null ; } return string . toCharArray ( ) ; }
Converts a string to a char array (null safe).
Converts a string to a char array ( null safe ) .