jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1381389 - /jmeter/trunk/src/monitor/components/org/apache/jmeter/visualizers/MonitorPerformancePanel.java
Date Wed, 05 Sep 2012 21:20:38 GMT
Author: pmouawad
Date: Wed Sep  5 21:20:37 2012
New Revision: 1381389

URL: http://svn.apache.org/viewvc?rev=1381389&view=rev
Log:
use interface instead of impl
remove useless null test

Modified:
    jmeter/trunk/src/monitor/components/org/apache/jmeter/visualizers/MonitorPerformancePanel.java

Modified: jmeter/trunk/src/monitor/components/org/apache/jmeter/visualizers/MonitorPerformancePanel.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/monitor/components/org/apache/jmeter/visualizers/MonitorPerformancePanel.java?rev=1381389&r1=1381388&r2=1381389&view=diff
==============================================================================
--- jmeter/trunk/src/monitor/components/org/apache/jmeter/visualizers/MonitorPerformancePanel.java
(original)
+++ jmeter/trunk/src/monitor/components/org/apache/jmeter/visualizers/MonitorPerformancePanel.java
Wed Sep  5 21:20:37 2012
@@ -16,12 +16,13 @@
  */
 package org.apache.jmeter.visualizers;
 
-import java.util.HashMap;
 import java.awt.BorderLayout;
 import java.awt.Color;
 import java.awt.Dimension;
-import java.awt.Font;
 import java.awt.FlowLayout;
+import java.awt.Font;
+import java.util.HashMap;
+import java.util.Map;
 
 import javax.swing.ImageIcon;
 import javax.swing.JLabel;
@@ -29,11 +30,11 @@ import javax.swing.JPanel;
 import javax.swing.JScrollPane;
 import javax.swing.JSplitPane;
 import javax.swing.JTree;
+import javax.swing.event.TreeSelectionEvent;
+import javax.swing.event.TreeSelectionListener;
 import javax.swing.tree.DefaultMutableTreeNode;
 import javax.swing.tree.DefaultTreeModel;
 import javax.swing.tree.TreeSelectionModel;
-import javax.swing.event.TreeSelectionListener;
-import javax.swing.event.TreeSelectionEvent;
 
 import org.apache.jmeter.samplers.Clearable;
 import org.apache.jmeter.samplers.SampleResult;
@@ -55,7 +56,7 @@ public class MonitorPerformancePanel ext
 
     private DefaultMutableTreeNode ROOTNODE;
 
-    private final HashMap<String, DefaultMutableTreeNode> SERVERMAP;
+    private final Map<String, DefaultMutableTreeNode> SERVERMAP;
 
     private final MonitorAccumModel MODEL;
 
@@ -280,7 +281,7 @@ public class MonitorPerformancePanel ext
         if (SERVERTREE.getLastSelectedPathComponent() != null) {
             DefaultMutableTreeNode node = (DefaultMutableTreeNode) SERVERTREE.getLastSelectedPathComponent();
             Object usrobj = node.getUserObject();
-            if (usrobj != null && usrobj instanceof MonitorModel) {
+            if (usrobj instanceof MonitorModel) {
                 MonitorModel mo = (MonitorModel) usrobj;
                 GRAPH.updateGui(mo);
                 this.updateUI();



Mime
View raw message