void (String[] args) { String pwd = "password"; char[] pwdCharArray = pwd.toCharArray(); String t = String.valueOf(pwdCharArray); // The inspection "Call to default 'toString()'" marks "pwdCharArray" although String.valueOf() can handle char[] }