devxlogo

May 23, 2018

Calling Date.setTime()

account.changePassword(oldPassword, newPassword);Date lastModified = getLastModified();lastModified.setTime(System.currentTimeMillis()); The above code updates the last modified date of the password and wants to avoid creating a new Object, but uses instead the setTime method