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:
Chris Beams 2014-08-26 09:20:10 +02:00
parent 9c3df7375a
commit 7d6ca37d06
No known key found for this signature in database
GPG key ID: 3D214F8F5BC5ED73
168 changed files with 3005 additions and 5439 deletions

View file

@ -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;