当前位置: 移动技术网 > IT编程>数据库>Mysql > 静态代码ai详情

静态代码ai详情

2018年01月31日  | 移动技术网IT编程  | 我要评论

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("")

其他的不用改。

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网