mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-06-30 01:27:37 -04:00
Apply formatting to Java sources
This is essentially the default IDEA formatting settings, with one tweak made to allow same-line field annotations (useful particularly in the case of the @FXML annotation)
This commit is contained in:
parent
9c3df7375a
commit
7d6ca37d06
168 changed files with 3005 additions and 5439 deletions
|
@ -40,14 +40,13 @@ import io.bitsquare.storage.Persistence;
|
|||
import io.bitsquare.trade.TradeManager;
|
||||
import io.bitsquare.trade.orderbook.OrderBook;
|
||||
import io.bitsquare.user.User;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
||||
public class BitSquareModule extends AbstractModule
|
||||
{
|
||||
public class BitSquareModule extends AbstractModule {
|
||||
|
||||
@Override
|
||||
protected void configure()
|
||||
{
|
||||
protected void configure() {
|
||||
bind(User.class).asEagerSingleton();
|
||||
bind(OrderBook.class).asEagerSingleton();
|
||||
bind(Persistence.class).asEagerSingleton();
|
||||
|
@ -80,23 +79,19 @@ public class BitSquareModule extends AbstractModule
|
|||
}
|
||||
}
|
||||
|
||||
class NetworkParametersProvider implements Provider<NetworkParameters>
|
||||
{
|
||||
class NetworkParametersProvider implements Provider<NetworkParameters> {
|
||||
private final String networkType;
|
||||
|
||||
@Inject
|
||||
public NetworkParametersProvider(@Named("networkType") String networkType)
|
||||
{
|
||||
public NetworkParametersProvider(@Named("networkType") String networkType) {
|
||||
this.networkType = networkType;
|
||||
}
|
||||
|
||||
|
||||
public NetworkParameters get()
|
||||
{
|
||||
public NetworkParameters get() {
|
||||
NetworkParameters result = null;
|
||||
|
||||
switch (networkType)
|
||||
{
|
||||
switch (networkType) {
|
||||
case WalletFacade.MAIN_NET:
|
||||
result = MainNetParams.get();
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue