Description
This snippet:
try
{
try
{
_userUpdate.lock();
char[] orig = user.getPassword();
user.setPassword(password);
try
{ savePasswordFile(); }catch (IOException e)
{ _logger.error("Unable to save password file, password change for user '" + principal + "' discarded"); //revert the password change user.setPassword(orig); return false; } return true;
}
finally
{
if (_userUpdate.isHeldByCurrentThread())
}
}
catch (Exception e)
is flagged by our Sonar server. This patch will streamline the code.