Author: echatellier Date: 2013-02-04 10:18:54 +0100 (Mon, 04 Feb 2013) New Revision: 67 Url: http://forge.codelutin.com/projects/cantharella/repository/revisions/67 Log: Replace deprecated method (shaHex > sha1Hex) Modified: trunk/cantharella.utils/src/main/java/nc/ird/module/utils/PasswordTools.java Modified: trunk/cantharella.utils/src/main/java/nc/ird/module/utils/PasswordTools.java =================================================================== --- trunk/cantharella.utils/src/main/java/nc/ird/module/utils/PasswordTools.java 2013-02-04 00:22:15 UTC (rev 66) +++ trunk/cantharella.utils/src/main/java/nc/ird/module/utils/PasswordTools.java 2013-02-04 09:18:54 UTC (rev 67) @@ -67,10 +67,9 @@ * @param password Password * @return Hashed password */ - @SuppressWarnings("deprecation") public static String sha1(String password) { AssertTools.assertNotNull(password); - return DigestUtils.shaHex(password); + return DigestUtils.sha1Hex(password); } /**