方法按修饰符排序

方法按修饰符排序

本文介绍了Checkstyle-方法按修饰符排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以添加到checkstyle规则以按修饰符将类中的方法排序。我的意思是开头是公共方法,而结尾是私有方法?

Is it possible add to checkstyle rule to have ordered methods in class by modifier. I mean public methods on the begining and private methods in the end ?

推荐答案

MethodsOrderCheck 完成这项工作。

检查

仅供参考:有些逻辑问题。

这篇关于Checkstyle-方法按修饰符排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 11:41