Java Checkstyle Rule To Restrict Method Empty Lines

前端 未结 4 1356
春和景丽
春和景丽 2021-01-19 10:19

Is there a way to setup checkstyle to prevent leading, multiple or trailing empty lines in method bodies:

e.g.

private void a() {
-
int a = 1;
doStu         


        
4条回答
提交回复
热议问题