3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-14 11:15:51 +00:00

Fix a couple of static method via instance warnings.

This commit is contained in:
Mike Hearn 2014-07-10 15:33:10 +02:00
parent a750a14edd
commit 682bd035fc

View File

@ -93,7 +93,7 @@ public class DeterministicSeed implements EncryptableItem {
* @param creationTimeSeconds When the seed was originally created, UNIX time. * @param creationTimeSeconds When the seed was originally created, UNIX time.
*/ */
public DeterministicSeed(List<String> mnemonicCode, String passphrase, long creationTimeSeconds) { public DeterministicSeed(List<String> mnemonicCode, String passphrase, long creationTimeSeconds) {
this(getCachedMnemonicCodec().toSeed(mnemonicCode, passphrase), mnemonicCode, creationTimeSeconds); this(MnemonicCode.toSeed(mnemonicCode, passphrase), mnemonicCode, creationTimeSeconds);
} }
/** /**
@ -125,7 +125,7 @@ public class DeterministicSeed implements EncryptableItem {
// cannot happen // cannot happen
throw new RuntimeException(e); throw new RuntimeException(e);
} }
this.seed = getCachedMnemonicCodec().toSeed(mnemonicCode, passphrase); this.seed = MnemonicCode.toSeed(mnemonicCode, passphrase);
this.encryptedMnemonicCode = null; this.encryptedMnemonicCode = null;
this.creationTimeSeconds = creationTimeSeconds; this.creationTimeSeconds = creationTimeSeconds;
} }