#1868 - Change the Metric "sqlHash" into a hash of the SQL + name + location

This commit is contained in:
rob bygrave
2019-11-20 20:15:32 +13:00
parent 88839f7613
commit eb292e017e
19 changed files with 256 additions and 31 deletions
@@ -9,7 +9,6 @@ public final class Md5 {
* Return the MD5 hash of the underlying sql.
*/
public static String hash(String content) {
try {
MessageDigest md = MessageDigest.getInstance("MD5");
return digestToHex(md.digest(content.getBytes(StandardCharsets.UTF_8)));