sevntu-checkstyle / methods-distance

GNU Lesser General Public License v3.0
5 stars 13 forks source link

minor: make private class final with default constructor #72

Closed Kevin222004 closed 1 year ago

Kevin222004 commented 1 year ago

minor: make private class final with default constructor

This is part of https://github.com/checkstyle/checkstyle/pull/12737

According to the https://docs.oracle.com/javase/specs/jls/se17/html/jls-8.html#jls-8.8.9 The default constructor has the same access modifier as the class. and according to the check https://checkstyle.org/config_design.html#FinalClass a class that has only private constructors and has no descendant classes is declared as final.

Kevin222004 commented 1 year ago

Please don't merge this .

I will ping you when it is ready

Kevin222004 commented 1 year ago

You can merge this it will fine it would be great if this get merge quicker