DefaultAddressParserProvider: deprecate fromNetworks()

It was already package-private and is only used by deprecated methods
in `AddressParser`.
This commit is contained in:
Sean Gilligan 2024-08-05 15:14:25 -07:00 committed by Andreas Schildbach
parent c27947d0da
commit d394ce63a5

View File

@ -76,10 +76,11 @@ class DefaultAddressParserProvider implements AddressParser.AddressParserProvide
}
/**
* Dynamically create a new AddressParser using a snapshot of currently configured networks
* from Networks.get().
* Dynamically create a new {@link AddressParser} using a snapshot of currently configured networks
* from {@code Networks.get()}. This is only used by deprecated methods in {@link AddressParser}.
* @return A backward-compatible parser
*/
@Deprecated
static DefaultAddressParserProvider fromNetworks() {
List<Network> nets = Networks.get().stream()
.map(NetworkParameters::network)