<Swing Dev> RFR: 8266902: Remove final modifier from static methods in swing.text.Utilities

Sergey Bylokhov serb at openjdk.java.net
Fri May 28 01:47:04 UTC 2021


On Mon, 24 May 2021 18:55:38 GMT, rajat mahajan <github.com+79671271+rajamah at openjdk.org> wrote:

> Summary: Removed redundant usage of final modifier from static methods in javax.swing.Utilities, since static methods are not inherited and cannot be overridden.

This is not a noop fix, the final keyword in the static method prevents the method to be hidden by the subclass.

-------------

PR: https://git.openjdk.java.net/jdk/pull/4171


More information about the swing-dev mailing list