静态代码ai详情,静态ai详情


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

其他的不用改。

相关内容