matthiasblaesing commented on a change in pull request #2309:
URL: https://github.com/apache/netbeans/pull/2309#discussion_r473281787



##########
File path: java/maven/src/org/netbeans/modules/maven/api/execute/RunUtils.java
##########
@@ -218,4 +219,10 @@ public static boolean 
hasTestCompileOnSaveEnabled(RunConfig config) {
         return false;
     }
 
+    private static void invokeLaterWithUI(Runnable runnable) {
+        if (GraphicsEnvironment.isHeadless()) {
+            return;
+        }

Review comment:
       Understood - when I first read the method name, I assumed, that is 
intended to invoke the Runnable on the EDT. That made me wonder why 
`SwingUtilities#invokeLater` was not used, which led to me reading the method.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to