您的位置:首页 > 编程语言

静态代码——ai

2018-01-09 23:09 148 查看
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("")
其他的不用改。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: