findbugs警告26个。主要有以下9类问题。 1、Bug: Hard coded reference to an absolute pathname BUG描述:This code constructs a File object using a hard coded to an absolute pathname(此代码包含文件对象为一个绝对路径名) 问题原因:硬编
1 )原代码如下: protected String[] a = null; public void test(String[] str){ this.a = str; } findbugs描述为: This code stores a reference to an externally mutable object into the internal represen