jmeter-commits mailing list archives

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

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

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

Modified: jmeter/trunk/src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java?rev=1780719&r1=1780718&r2=1780719&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java
(original)
+++ jmeter/trunk/src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java
Sat Jan 28 16:43:12 2017
@@ -141,12 +141,7 @@ implements ActionListener, TreeSelection
     /** {@inheritDoc} */
     @Override
     public void add(final SampleResult sample) {
-        JMeterUtils.runSafe(false, new Runnable() {
-            @Override
-            public void run() {
-                updateGui(sample);
-            }
-        });
+        JMeterUtils.runSafe(false, ()-> updateGui(sample));
     }
 
     /**



Mime
View raw message