jmeter-commits mailing list archives

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

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

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

Modified: jmeter/trunk/src/components/org/apache/jmeter/visualizers/AssertionVisualizer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/visualizers/AssertionVisualizer.java?rev=1780672&r1=1780671&r2=1780672&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/visualizers/AssertionVisualizer.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/visualizers/AssertionVisualizer.java Sat
Jan 28 12:39:26 2017
@@ -58,13 +58,10 @@ public class AssertionVisualizer extends
         sb.append(sample.getSampleLabel());
         sb.append(getAssertionResult(sample));
         sb.append("\n"); // $NON-NLS-1$
-        JMeterUtils.runSafe(false, new Runnable() {
-            @Override
-            public void run() {
-                synchronized (textArea) {
-                    textArea.append(sb.toString());
-                    textArea.setCaretPosition(textArea.getText().length());
-                }                
+        JMeterUtils.runSafe(false, () -> {
+            synchronized (textArea) {
+                textArea.append(sb.toString());
+                textArea.setCaretPosition(textArea.getText().length());
             }
         });
     }



Mime
View raw message