欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

静态代码ai详情

程序员文章站 2022-03-16 16:22:16
1、 Remove this debuggerstatement 去掉 debugger 2、"factory" expects "1"argume...

1、 Remove this debuggerstatement

去掉 debugger

2、"factory" expects "1"arguments, but "2" were provided

对应参数多了

3、This caseduplicates the one on line 942

重复

4、Replace '!='operator with one of '<=', '>=', '<', or '>' comparison operators

循环里面逻辑问题

5、Replace this usageof System.out or System.err by a logger

System.out.println("initialized log4j finish ");

改:MKBLogger.info("initializedlog4j finish");

6、Use a logger to logthis exception

改:MKBLogger.info("BaiAdaptersimnet Exception:" + e.toString());

MKBLogger.error("DBManager simnetException:" + e.toString());

7、Remove thishard-coded password.

不用改

8、The return value of"replaceAll" must be used

str.replaceAll(regEx, ""); 改:regEx = str.replaceAll(regEx,"");

9、 数组:_ids _ids == null ||_ids.equals("")

其他的不用改。