mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2024-11-20 18:22:12 +01:00
Apply "Anonymous type has shorter lambda alternative" refactoring.
This commit is contained in:
parent
c08a4d97d3
commit
b6b221ae1b
@ -81,17 +81,14 @@ public class PeerMonitor {
|
||||
}
|
||||
|
||||
private void lookupReverseDNS(final Peer peer) {
|
||||
new Thread() {
|
||||
@Override
|
||||
public void run() {
|
||||
// This can take a looooong time.
|
||||
String reverseDns = peer.getAddress().getAddr().getCanonicalHostName();
|
||||
synchronized (reverseDnsLookups) {
|
||||
reverseDnsLookups.put(peer, reverseDns);
|
||||
}
|
||||
refreshUI();
|
||||
new Thread(() -> {
|
||||
// This can take a looooong time.
|
||||
String reverseDns = peer.getAddress().getAddr().getCanonicalHostName();
|
||||
synchronized (reverseDnsLookups) {
|
||||
reverseDnsLookups.put(peer, reverseDns);
|
||||
}
|
||||
}.start();
|
||||
refreshUI();
|
||||
}).start();
|
||||
}
|
||||
|
||||
private void refreshUI() {
|
||||
|
Loading…
Reference in New Issue
Block a user