mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2024-11-19 18:00:39 +01:00
KeyChainGroup: Small optimization in toString().
This commit is contained in:
parent
f70086ae64
commit
b024f6e571
@ -795,11 +795,8 @@ public class KeyChainGroup implements KeyBag {
|
||||
for (ECKey key : keys)
|
||||
key.formatKeyWithAddress(includePrivateKeys, builder, params);
|
||||
}
|
||||
List<String> chainStrs = Lists.newLinkedList();
|
||||
for (DeterministicKeyChain chain : chains) {
|
||||
chainStrs.add(chain.toString(includePrivateKeys, params));
|
||||
}
|
||||
builder.append(Joiner.on('\n').join(chainStrs));
|
||||
for (DeterministicKeyChain chain : chains)
|
||||
builder.append(chain.toString(includePrivateKeys, params)).append('\n');
|
||||
return builder.toString();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user