mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-03-10 17:26:28 +01:00
BitcoinURI: remove redundant BitcoinNetwork
cast
This commit is contained in:
parent
cfc3b26a53
commit
0685bf70e4
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ public class BitcoinURI {
|
|||
if (!addressToken.isEmpty()) {
|
||||
// Attempt to parse the addressToken as a Bitcoin address for this network
|
||||
try {
|
||||
Address address = new DefaultAddressParser().parseAddress(addressToken, (BitcoinNetwork) network);
|
||||
Address address = new DefaultAddressParser().parseAddress(addressToken, network);
|
||||
putWithValidation(FIELD_ADDRESS, address);
|
||||
} catch (final AddressFormatException e) {
|
||||
throw new BitcoinURIParseException("Bad address", e);
|
||||
|
|
Loading…
Add table
Reference in a new issue