findbug问题,在线等
写了一个方法如:
findbugs插件检出高报警BUG。
Type Abbreviation Type Category
IL IL_INFINITE_LOOP:An apparent infinite loop
This loop doesn't seem to have a way to terminate (other than by perhaps throwing an exception).
这个BUG该怎么改啊?多谢!
/*
* copyString
* 拷贝一段字符串到新的字符串中,这个方法会new一个新的指针
*/
public static String copyString(String src, int start, int len)
{
if(src == null)
{
return null;
}
StringBuffer sb = new StringBuffer();
for(int i = start; i < len; i++)
{
// 对src进行处理
}
return sb.toString();
}
findbugs插件检出高报警BUG。
Type Abbreviation Type Category
IL IL_INFINITE_LOOP:An apparent infinite loop
This loop doesn't seem to have a way to terminate (other than by perhaps throwing an exception).
这个BUG该怎么改啊?多谢!
...全文
相关推荐
findbug3下载
findbug3,代码检查工具,支持myeclipse2014,jdk1.7下通过
findbug2.0版本
findbug2,代码检查工具,myeclipse10下通过,2014的话换findbug3
eclipse 3 findbug 插件
eclipse,findbug, 插件,找錯eclipse,findbug, 插件,找錯eclipse,findbug, 插件,找錯eclipse,findbug, 插件,找錯eclipse,findbug, 插件,找錯
Findbug使用指南.docx
Findbug使用指南.docx
Findbug软件测试
对于软件测试的一些基本的资料,如何去测试Findbug,,,


