静态代码——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("")
其他的不用改。
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("")
其他的不用改。
相关文章推荐
- svn管理代码在cornerstone上无法添加.a 静态库文件
- 【C/C++学院】0822-类型转换函数与构造转换函数/类的继承/类的继承以及区别/继承静态成员与静态函数//继承实现代码重用/单继承QT案例/多继承简介以及实战/Gpu编程
- 静态关键字static和静态代码块、局部代码快、构造代码块
- PHP生成HTML静态页面实例代码
- 静态代码分析工具
- java代码问题分析之静态分析工具(Klocwork Insight)
- C++代码静态分析工具-Prefast
- DeepLearning.ai 代码笔记5:序列模型
- Cppcheck 1.54 C/C++静态代码分析工具
- 通用PHP动态生成静态HTML网页的代码
- 生成静态文件的新闻系统核心代码(.net C#)二 选择自 bmiracle 的 Blog
- java中静态代码块、构造代码块、普通代码块
- 静态代码检查工具 cppcheck 的使用
- C语言内存分区_栈区、堆区、全局&静态区、文字常量区、程序代码区
- 静态web服务器(核心代码)
- Java静态代理和动态代理的简单代码实现。
- 代码模块 - 代码字典 - 静态类库
- C++性能系列之静态代码检查工具介绍(一)
- 爬网站静态代码工具
- 恶意代码分析——动、静态分析基础技术