我有ThreadLocal实例,它是用重写的initValue方法初始化的。此外,我还用@edu.umd.cs.findbugs.annotations.SuppressWarnings("SIC_INNER_SHOULD_BE_STATIC_ANON")对其进行了注释,如下所示@edu.umd.cs.findbugs.annotations.SuppressWarnings("SIC_INNER_SHOULD_BE_STATIC_ANON")
p
我最近发现了FindBugs的@edu.umd.cs.findbugs.annotations.SuppressWarnings注释,它非常酷,允许您基本上告诉FindBugs忽略某些警告。我刚刚在包含这个SLF4J绑定的包上运行了find,它抱怨原始StaticLoggerBinder作者(Ceki )编写的特定代码行:
// to avoid constant folding by the因此,为了让FindBugs</