neilcsmith-net commented on code in PR #9677:
URL: https://github.com/apache/netbeans/pull/9677#discussion_r4218278874


##########
platform/core.startup/src/org/netbeans/core/startup/Splash.java:
##########
@@ -546,21 +551,17 @@ public SplashPainter(Progress model, Graphics graphics, 
JComponent comp, boolean
             }
         }
 
-        long next;
         final void repaint(Rectangle r) {
             if (comp != null) {
                 comp.repaint(r);
             } else {
-                if (next < System.currentTimeMillis()) {
-                    paint();
-                    try {
-                        SplashScreen ss = SplashScreen.getSplashScreen();
-                        if (ss != null) {
-                            ss.update();
-                        }
-                    } catch (IllegalStateException splashAlreadyClosed) {}
-                    next = System.currentTimeMillis() + 200;
-                }
+                paint();

Review Comment:
   Sure, if you manually create the splash file it might trigger, but the code 
to actually generate that file doesn't run since #1246  So, _in practice_ this 
timing code using `next` is not used in the current release.
   
   That wasn't an argument against your approach, or in favour of removing the 
`comp == null` code.  Just a useful note to consider in reviewing what has 
actually changed here during startup.



-- 
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

Reply via email to