jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1795016 - /jmeter/trunk/src/core/org/apache/jmeter/gui/util/FocusRequester.java
Date Fri, 12 May 2017 19:38:56 GMT
Author: fschumacher
Date: Fri May 12 19:38:56 2017
New Revision: 1795016

URL: http://svn.apache.org/viewvc?rev=1795016&view=rev
Log:
Use method reference.

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/util/FocusRequester.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/util/FocusRequester.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/gui/util/FocusRequester.java?rev=1795016&r1=1795015&r2=1795016&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/gui/util/FocusRequester.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/gui/util/FocusRequester.java Fri May 12 19:38:56
2017
@@ -30,6 +30,6 @@ import javax.swing.SwingUtilities;
 public class FocusRequester {
 
     public static void requestFocus(final Component comp) {
-        SwingUtilities.invokeLater(() -> comp.requestFocusInWindow());
+        SwingUtilities.invokeLater(comp::requestFocusInWindow);
     }
 }



Mime
View raw message