SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 3.1.11

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 858 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 356 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 356 Medium
Nullcheck of htmlName at line 364 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 356 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 443 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 435 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 348 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 370 Low
it.tidalwave.northernwind.core.impl.patches.HTMLdtd.initialize() may fail to close stream BAD_PRACTICE OS_OPEN_STREAM 382 Medium
Exception is caught when Exception is not thrown in it.tidalwave.northernwind.core.impl.patches.HTMLdtd.initialize() STYLE REC_CATCH_EXCEPTION 405 Low