mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-24 15:35:34 -04:00
Polish
- Use AtomicBoolean vs. SimpleBooleanProperty in TomP2PTests to avoid use of javax.* classes where they aren't otherwise necessary. - Reformat code globally to eliminate trailing whitespace and fix indentation - Optimize imports globally to eliminate unused imports
This commit is contained in:
parent
c8ece38889
commit
1d5673ebb1
8 changed files with 10 additions and 20 deletions
|
@ -30,9 +30,7 @@ import java.net.UnknownHostException;
|
|||
import java.util.UUID;
|
||||
import java.util.concurrent.CountDownLatch;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import javafx.beans.property.BooleanProperty;
|
||||
import javafx.beans.property.SimpleBooleanProperty;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
|
||||
import net.tomp2p.connection.Bindings;
|
||||
import net.tomp2p.connection.ChannelClientConfiguration;
|
||||
|
@ -307,8 +305,8 @@ public class TomP2PTests {
|
|||
BaseFuture fb1 = peer1.peer().bootstrap().peerAddress(masterPeerAddress).start();
|
||||
BaseFuture fb2 = peer2.peer().bootstrap().peerAddress(masterPeerAddress).start();
|
||||
|
||||
final BooleanProperty peer1Done = new SimpleBooleanProperty();
|
||||
final BooleanProperty peer2Done = new SimpleBooleanProperty();
|
||||
final AtomicBoolean peer1Done = new AtomicBoolean();
|
||||
final AtomicBoolean peer2Done = new AtomicBoolean();
|
||||
|
||||
fb1.addListener(new BaseFutureListener<BaseFuture>() {
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue