You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by jl...@apache.org on 2018/12/05 12:40:54 UTC

[09/12] tomee git commit: openejb-daemon: remove unused import

openejb-daemon: remove unused import


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/d27842c4
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/d27842c4
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/d27842c4

Branch: refs/heads/master
Commit: d27842c4bf6e81b9e4497e0fb002d9f950657f3e
Parents: 8734925
Author: Hayri Cicek <ha...@kodnito.com>
Authored: Mon Dec 3 20:33:59 2018 +0100
Committer: Hayri Cicek <ha...@kodnito.com>
Committed: Mon Dec 3 20:33:59 2018 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/openejb/daemon/NTService.java  | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/d27842c4/server/openejb-daemon/src/main/java/org/apache/openejb/daemon/NTService.java
----------------------------------------------------------------------
diff --git a/server/openejb-daemon/src/main/java/org/apache/openejb/daemon/NTService.java b/server/openejb-daemon/src/main/java/org/apache/openejb/daemon/NTService.java
index 5be681a..53e2282 100644
--- a/server/openejb-daemon/src/main/java/org/apache/openejb/daemon/NTService.java
+++ b/server/openejb-daemon/src/main/java/org/apache/openejb/daemon/NTService.java
@@ -19,7 +19,6 @@ package org.apache.openejb.daemon;
 import org.apache.openejb.cli.Bootstrap;
 import org.apache.openejb.loader.SystemInstance;
 import org.apache.openejb.server.Server;
-import org.apache.openejb.server.ServerRuntimeException;
 
 import java.util.ArrayList;
 import java.util.Arrays;
@@ -27,7 +26,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
 
 public class NTService {
 
-    private static final NTService instance = new NTService();
+    private static final NTService INSTANCE = new NTService();
     private final AtomicBoolean running = new AtomicBoolean(false);
 
     /**
@@ -37,7 +36,7 @@ public class NTService {
      */
     public static void start(final String[] args) {
         try {
-            instance.startImpl(args);
+            INSTANCE.startImpl(args);
         } catch (Throwable e) {
             e.printStackTrace(System.err);
         }
@@ -50,7 +49,7 @@ public class NTService {
      */
     public static void stop(final String[] args) {
         try {
-            instance.stopImpl();
+            INSTANCE.stopImpl();
         } catch (Throwable e) {
             e.printStackTrace(System.err);
         }
@@ -70,7 +69,7 @@ public class NTService {
                 System.setProperty("openejb.home", System.getProperty("user.dir"));
             }
 
-            final ArrayList<String> list = new ArrayList<String>();
+            final ArrayList<String> list = new ArrayList<>();
             list.addAll(Arrays.asList(args));
 
             if (!list.contains("start")) {