We are getting security tooling reports because
JavaMailSender.setPassword(String s) 
exists, and thus the password can not be guaranteed to be cleared from memory. If the the api was changed/added to take
JavaMailSender.setPassword(char[] c)
Then the array could be Arrays.fill(c, 0);
when done.