jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1780675 - /jmeter/trunk/src/components/org/apache/jmeter/visualizers/ComparisonVisualizer.java
Date Sat, 28 Jan 2017 12:49:17 GMT
Author: fschumacher
Date: Sat Jan 28 12:49:17 2017
New Revision: 1780675

URL: http://svn.apache.org/viewvc?rev=1780675&view=rev
Log:
Use lambda expression instead of anonymous class.

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

Modified: jmeter/trunk/src/components/org/apache/jmeter/visualizers/ComparisonVisualizer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/visualizers/ComparisonVisualizer.java?rev=1780675&r1=1780674&r2=1780675&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/visualizers/ComparisonVisualizer.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/visualizers/ComparisonVisualizer.java Sat
Jan 28 12:49:17 2017
@@ -61,14 +61,11 @@ public class ComparisonVisualizer extend
 
     @Override
     public void add(final SampleResult sample) {
-        JMeterUtils.runSafe(false, new Runnable() {
-            @Override
-            public void run() {
-                DefaultMutableTreeNode currNode = new DefaultMutableTreeNode(sample);
-                treeModel.insertNodeInto(currNode, root, root.getChildCount());
-                if (root.getChildCount() == 1) {
-                    resultsTree.expandPath(new TreePath(root));
-                }                
+        JMeterUtils.runSafe(false, () -> {
+            DefaultMutableTreeNode currNode = new DefaultMutableTreeNode(sample);
+            treeModel.insertNodeInto(currNode, root, root.getChildCount());
+            if (root.getChildCount() == 1) {
+                resultsTree.expandPath(new TreePath(root));
             }
         });
     }



Mime
View raw message