eirikbakke commented on code in PR #9303:
URL: https://github.com/apache/netbeans/pull/9303#discussion_r3018151705
##########
platform/core.startup/src/org/netbeans/core/startup/Splash.java:
##########
@@ -265,17 +284,91 @@ public void flushCaches(DataOutputStream os) throws
IOException {
@Override
public void cacheReady() {
}
+
+ private static void onEDT(Runnable edtAction) {
+ if (SwingUtilities.isEventDispatchThread()) {
+ edtAction.run();
+ } else {
+ SwingUtilities.invokeLater(edtAction);
+ }
+ }
+
+ private static class Progress {
Review Comment:
incrementProgress would return a new immutable record with updated values,
then one would assign that to a single volatile member. But no need for that.
--
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.
To unsubscribe, e-mail: [email protected]
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