[Title]Fix useless static codes were found by findbugs
authorhyunsik.noh <hyunsik.noh@samsung.com>
Wed, 18 Jan 2012 07:08:22 +0000 (16:08 +0900)
committerhyunsik.noh <hyunsik.noh@samsung.com>
Wed, 18 Jan 2012 07:08:22 +0000 (16:08 +0900)
Change-Id: I0bb1c329b14bf4713a8a86a3af87c93e87ca24fe

com.samsung.tizen.common.connection/src/com/samsung/tizen/common/connection/explorer/ConnectionExplorerPanel.java
com.samsung.tizen.common.connection/src/com/samsung/tizen/common/connection/ui/ConnectionExplorer.java
com.samsung.tizen.common.connection/src/com/samsung/tizen/common/connection/ui/LogView.java

index b07a6d7..262e6dd 100644 (file)
@@ -303,7 +303,7 @@ public class ConnectionExplorerPanel extends Panel
                if (sdbBridge != null) {
                        devices = sdbBridge.getDevices();
                }
-               if (devices.length != 0) {
+               if (devices != null && devices.length != 0) {
                        for (IDevice device : devices) {
                                this.deviceConnected(device);
                        }
index e2bc2be..ab5a801 100644 (file)
@@ -86,10 +86,6 @@ public class ConnectionExplorer extends ViewPart {
        private static final String EMULATOR_PID_PATH = "conf" + File.separatorChar
                        + "emulator.pid";
 
-       public ConnectionExplorer() {
-               explorer = this;
-       }
-
        public static ConnectionExplorer gerDefault() {
                if (explorer == null) {
                        explorer = new ConnectionExplorer();
index 26f8f0f..5afd6ae 100644 (file)
@@ -53,14 +53,13 @@ public final class LogView extends ViewPart {
 
        private LogPanel logPanel;
 
-       public static LogView newLogView;
-       private static Action addAction;
-       private static Action removeAction;
-       private static Action editAction;
-       private static Action exportAction;
-       private static Action clearAction;
-
-       private static Action[] logLevelActions;
+       private Action addAction;
+       private Action removeAction;
+       private Action editAction;
+       private Action exportAction;
+       private Action clearAction;
+
+       private Action[] logLevelActions;
        private String[] logLevelIcons = { "icons/log/v.png", //$NON-NLS-1S
                        "icons/log/d.png", //$NON-NLS-1S
                        "icons/log/i.png", //$NON-NLS-1S
@@ -70,11 +69,6 @@ public final class LogView extends ViewPart {
 
        private Clipboard clipboard;
 
-
-       public LogView() {
-               newLogView = this;
-       }
-
        @Override
        public void createPartControl(Composite parent) {
                Display d = parent.getDisplay();