mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-12-15 15:59:10 -05:00
Use Preconditions#checkNotNull vs. #checkArgument
This commit is contained in:
parent
ccd5f815f8
commit
15a6d8a295
1 changed files with 2 additions and 3 deletions
|
|
@ -27,7 +27,6 @@ import io.bitsquare.gui.util.ImageUtil;
|
|||
import io.bitsquare.persistence.Persistence;
|
||||
import io.bitsquare.user.User;
|
||||
|
||||
import com.google.common.base.Preconditions;
|
||||
import com.google.common.base.Throwables;
|
||||
|
||||
import com.google.inject.Guice;
|
||||
|
|
@ -47,6 +46,7 @@ import javafx.stage.Stage;
|
|||
|
||||
import org.springframework.core.env.Environment;
|
||||
|
||||
import static com.google.common.base.Preconditions.checkNotNull;
|
||||
import static io.bitsquare.app.BitsquareEnvironment.*;
|
||||
|
||||
public class BitsquareApp extends Application {
|
||||
|
|
@ -61,8 +61,7 @@ public class BitsquareApp extends Application {
|
|||
|
||||
@Override
|
||||
public void start(Stage primaryStage) throws IOException {
|
||||
Preconditions.checkArgument(env != null, "Environment must not be null");
|
||||
|
||||
checkNotNull(env, "Environment must not be null");
|
||||
bitsquareAppModule = new BitsquareAppModule(env, primaryStage);
|
||||
injector = Guice.createInjector(bitsquareAppModule);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue