10.Make “df” an instance variable
提示非线程安全字段不应该是静态的,所以把前面的static 修饰符去掉就可以。
11.Either re-interrupt this method or rethrow the “InterruptedException”
这种interrupt异常,需要在catch中加上Thread.currentThread().interrupt();
12.Remove the unboxing from “Integer”
提示是这个Integer封装是多余的,所以直接用强类型转换就可以吧。
13.Use another way to initialize this instance
这个提示用其他的方式初始化,不要在定义的时候就初始化,修改如下:
遇到的基本上就是这些bug了,还有css中的一些bug,按照提示修改的
14.Unexpected missing generic font family
将这两个body的样式合二为一,可以消除bug和漏洞
15.Unexpected duplicate “display”
Display 重复了,删除掉一个。
16.Unexpected unknown type selector “element”
空样式,直接删除掉。
17. Change this condition so that it does not always evaluate to “false”
(更改此条件,以便它不总是评估为“false")
这是很多webservice文件中出现的一个bug。 如果后期会对webservice文件过滤,这个就可以不管了。不过也可以把这行删除掉,obj不可能为null if (obj == null) return false; 这样这个bug也没有了。
二 漏洞
1.Use a logger to log this exception
这种提示就是异常应该用日志打印出来。