add @Nullable/NotNull annotations, cleanup with intellij inspections

This commit is contained in:
Manfred Karrer 2014-06-30 02:17:26 +02:00
parent 2def1f5971
commit ebf2c559db
101 changed files with 2181 additions and 1613 deletions

View file

@ -22,8 +22,9 @@ import io.bitsquare.trade.Trading;
import io.bitsquare.trade.orderbook.OrderBook;
import io.bitsquare.trade.orderbook.OrderBookFilter;
import io.bitsquare.user.User;
import io.bitsquare.util.Utilities;
import java.io.File;
import io.bitsquare.util.FileUtil;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public class BitSquareModule extends AbstractModule
{
@ -66,9 +67,10 @@ class BitSquareWalletAppKitProvider implements Provider<BitSquareWalletAppKit>
this.networkParameters = networkParameters;
}
@NotNull
public BitSquareWalletAppKit get()
{
return new BitSquareWalletAppKit(networkParameters, new File(Utilities.getRootDir()), WalletFacade.WALLET_PREFIX);
return new BitSquareWalletAppKit(networkParameters, FileUtil.getRootDirectory());
}
}
@ -82,9 +84,10 @@ class NetworkParametersProvider implements Provider<NetworkParameters>
this.networkType = networkType;
}
@Nullable
public NetworkParameters get()
{
NetworkParameters result = null;
@Nullable NetworkParameters result = null;
switch (networkType)
{