mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-06-30 01:27:37 -04:00
add @Nullable/NotNull annotations, cleanup with intellij inspections
This commit is contained in:
parent
2def1f5971
commit
ebf2c559db
101 changed files with 2181 additions and 1613 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue