Skip to content

Commit

Permalink
use static import to replace string
Browse files Browse the repository at this point in the history
  • Loading branch information
chengenzhao committed Oct 8, 2017
1 parent 0510564 commit d5a6a0f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/com/whitewoodcity/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.whitewoodcity.ui.PagePane;
import com.whitewoodcity.util.Res;
import io.vertx.core.Vertx;
import io.vertx.core.impl.FileResolver;
import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.scene.Group;
Expand All @@ -14,9 +13,9 @@
import javafx.stage.Stage;

import javax.script.ScriptEngineManager;
import java.util.Locale;

import static io.vertx.core.impl.FileResolver.CACHE_DIR_BASE_PROP_NAME;
import static io.vertx.core.spi.resolver.ResolverProvider.DISABLE_DNS_RESOLVER_PROP_NAME;

public class Main extends Application {

Expand Down Expand Up @@ -71,7 +70,7 @@ public void stop() throws Exception {

public static void main(String[] args) throws Exception{

System.getProperties().setProperty("vertx.disableDnsResolver","true");
System.getProperties().setProperty(DISABLE_DNS_RESOLVER_PROP_NAME,"true");
System.getProperties().setProperty(CACHE_DIR_BASE_PROP_NAME, Res.getDefaultDirectory().getPath());
vertx = Vertx.vertx();
scriptEngineManager = new ScriptEngineManager();
Expand Down

0 comments on commit d5a6a0f

Please # to comment.