Checkstyle-方法按修饰符排序 [英] Checkstyle - methods order by modifier

查看:63
本文介绍了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 完成这项工作。

检查文档

仅供参考:有些逻辑<对此的href = https://github.com/teamed/qulice/issues/930 rel = nofollow noreferrer>问题。

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆