Java代码检查工具Checkstyle常见输出结果

来源:互联网 发布:mysql documentation 编辑:程序博客网 时间:2024/03/29 16:27

如果您喜欢这些文章,欢迎点击此处订阅本Blog

Blog 订阅

<script type="text/javascript"><!--google_ad_client = "pub-7343546549496470";/* 728x90, 大横幅正文上方 */google_ad_slot = "4725362798";google_ad_width = 728;google_ad_height = 90;// --></script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>


 

1Type is missing a javadoc commentClass   

缺少类型说明

2“{” should be on the previous line

“{” 应该位于前一行

3Methods is missing a javadoc comment

方法前面缺少javadoc注释

4Expected @throws tag for “Exception”

在注释中希望有@throws的说明

5“.” Is preceeded with whitespace “.”

前面不能有空格

6“.” Is followed by whitespace“.”

后面不能有空格

7“=” is not preceeded with whitespace

“=” 前面缺少空格

8“=” is not followed with whitespace   

“=” 后面缺少空格

9“}” should be on the same line    

“}” 应该与下条语句位于同一行

10Unused @param tag for “unused”

没有参数“unused”,不需注释

11Variable “CA” missing javadoc

变量“CA”缺少javadoc注释

12Line longer than 80characters   

行长度超过80

13Line contains a tab character

行含有”tab” 字符

14Redundant “Public” modifier

冗余的“public” modifier

15Final modifier out of order with the JSL

suggestionFinal modifier的顺序错误

16Avoid using the “.*” form of import

Import格式避免使用“.*”

17Redundant import from the same package

从同一个包中Import内容

18Unused import-java.util.list

Import进来的java.util.list没有被使用

19Duplicate import to line 13

重复Import同一个内容

20Import from illegal package

从非法包中 Import内容

21“while” construct must use “{}”

“while” 语句缺少“{}”

22Variable “sTest1” must be private and have accessor method

变量“sTest1”应该是private的,并且有调用它的方法

23Variable “ABC” must match pattern “^[a-z][a-zA-Z0-9]*$”      

变量“ABC”不符合命名规则“^[a-z][a-zA-Z0-9]*$”

24“(” is followed by whitespace    

“(” 后面不能有空格

25“)” is proceeded by whitespace

“)” 前面不能有空格


<script type="text/javascript"><!--google_ad_client = "pub-7343546549496470";/* 728x90, 大横幅正文下方 */google_ad_slot = "4725362798";google_ad_width = 728;google_ad_height = 90;// --></script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>


<script type="text/javascript"><!--google_ad_client = "pub-7343546549496470";/* 468x15 横链接单元 */google_ad_slot = "5785741422";google_ad_width = 468;google_ad_height = 15;// --></script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>


<script src="http://www.google.com/reader/ui/publisher.js" type="text/javascript"></script><script src="http://www.google.com/reader/public/javascript/user/00697638153916680411/state/com.google/broadcast?n=5&amp;callback=GRC_p(%7Bc%3A%22green%22%2Ct%3A%22%5Cu8FD9%5Cu4E9B%5Cu6587%5Cu7AE0%5Cu4E5F%5Cu503C%5Cu5F97%5Cu4E00%5Cu770B%22%2Cs%3A%22false%22%7D)%3Bnew%20GRC" type="text/javascript"></script>

原创粉丝点击