Fork me on GitHub

SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.5.0

Threshold is low

Effort is max

Summary

Classes Bugs Errors Missing Classes
5 10 0 0

Files

Class Bugs
it.tidalwave.northernwind.core.impl.patches.HTMLSerializer 4
it.tidalwave.northernwind.core.impl.patches.HTMLdtd 6

it.tidalwave.northernwind.core.impl.patches.HTMLSerializer

Bug Category Details Line Priority
Dead store to state in it.tidalwave.northernwind.core.impl.patches.HTMLSerializer.characters(String) STYLE DLS_DEAD_LOCAL_STORE 856 Medium
Null passed for non-null parameter of HTMLdtd.isPreserveSpace(String) in it.tidalwave.northernwind.core.impl.patches.HTMLSerializer.startElement(String, String, String, Attributes) CORRECTNESS NP_NULL_PARAM_DEREF 354 Medium
Null passed for non-null parameter of HTMLdtd.isPreserveSpace(String) in it.tidalwave.northernwind.core.impl.patches.HTMLSerializer.startElement(String, String, String, Attributes) CORRECTNESS NP_NULL_PARAM_DEREF 354 Medium
Nullcheck of htmlName at line 362 of value previously dereferenced in it.tidalwave.northernwind.core.impl.patches.HTMLSerializer.startElement(String, String, String, Attributes) CORRECTNESS RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE 354 Medium

it.tidalwave.northernwind.core.impl.patches.HTMLdtd

Bug Category Details Line Priority
it.tidalwave.northernwind.core.impl.patches.HTMLdtd.defineElement(String, int) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead PERFORMANCE DM_NUMBER_CTOR 442 Medium
it.tidalwave.northernwind.core.impl.patches.HTMLdtd.defineEntity(String, char) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead PERFORMANCE DM_NUMBER_CTOR 434 Medium
it.tidalwave.northernwind.core.impl.patches.HTMLdtd.fromChar(int) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead PERFORMANCE DM_NUMBER_CTOR 347 Medium
Incorrect lazy initialization of static field it.tidalwave.northernwind.core.impl.patches.HTMLdtd._byName in it.tidalwave.northernwind.core.impl.patches.HTMLdtd.initialize() MT_CORRECTNESS LI_LAZY_INIT_STATIC 369 Low
it.tidalwave.northernwind.core.impl.patches.HTMLdtd.initialize() may fail to close stream BAD_PRACTICE OS_OPEN_STREAM 381 Medium
Exception is caught when Exception is not thrown in it.tidalwave.northernwind.core.impl.patches.HTMLdtd.initialize() STYLE REC_CATCH_EXCEPTION 404 Low