Skip to content

Commit

Permalink
rimosso calcolo id artisti dal master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
MickHardins committed Apr 28, 2017
1 parent df9ac60 commit 7ff984c
Showing 1 changed file with 1 addition and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,5 @@ public int hashCode() {
return name.hashCode();
}

public void calculateID() {
try {

ByteArrayOutputStream baos = new ByteArrayOutputStream();
ObjectOutputStream oos = new ObjectOutputStream(baos);
oos.writeObject(this);
oos.close();

MessageDigest m = MessageDigest.getInstance("SHA1");
m.update(baos.toByteArray());

id = new BigInteger(1, m.digest()).toString(16);
}
catch (Exception e) {
e.printStackTrace();
}
}

}

0 comments on commit 7ff984c

Please sign in to comment.