mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
* Some minor changes.
This commit is contained in:
parent
692fe8046e
commit
4ca5909840
3 changed files with 2 additions and 10 deletions
|
|
@ -81,15 +81,6 @@ public class Deck implements Serializable {
|
|||
Collections.sort(sbCardNames);
|
||||
String deckString = deckCardNames.toString() + sbCardNames.toString();
|
||||
deck.setDeckHashCode(DeckUtil.fixedHash(deckString));
|
||||
// try{
|
||||
// MessageDigest messageDigest = MessageDigest.getInstance("SHA-256");
|
||||
// messageDigest.update(deckString.getBytes());
|
||||
// String encryptedString = new String(messageDigest.digest());
|
||||
// deck.setDeckHashCode(encryptedString.hashCode());
|
||||
// }
|
||||
// catch (NoSuchAlgorithmException e) {
|
||||
// // nothing
|
||||
// }
|
||||
return deck;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -386,6 +386,7 @@ public enum CardRepository {
|
|||
|
||||
return cardDao.query(queryBuilder.prepare());
|
||||
} catch (SQLException ex) {
|
||||
Logger.getLogger(CardRepository.class).error("Error during execution of card repository query statement", ex);
|
||||
}
|
||||
return new ArrayList<>();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue