Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Checkstyle Module for Method Ordering

Is there a Checkstyle module that verifies that public methods should come before the private ones in a class? I can't find one.

DeclarationOrderModifier does not do it

ModifierOrder does not do it.

like image 576
Prashant Pandey Avatar asked Aug 01 '26 23:08

Prashant Pandey


1 Answers

Updated

MethodsOrderCheck can handle this.

See documentation here: sourceforge link

like image 189
Levente Takács Avatar answered Aug 03 '26 11:08

Levente Takács



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!