Hi, It is true, that static methods can't be overridden in a subclass, however they can be hidden. So final keyword prevents method hiding. It also helps make the code explicit. Finally, the final keyword can slightly improve performance because the JVM should not check if the method is hidden or overridden in a subclass.
Just two cents. Regards, David Emmanuel Bourg <ebo...@apache.org> ezt írta (időpont: 2024. okt. 29., K, 8:30): > Hi Gary, > > Le 28/10/2024 à 23:02, Gary Gregory a écrit : > > > Would you please explain why you need this change? > > > > TY, > > Gary > > static methods are not inherited and can't be overridden in a subclass. > The 'final' modifier on a static method has no effect and can be removed. > > Emmanuel Bourg > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > >