Fork me on GitHub

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
29 14 0 0

Files

Class Bugs
it.tidalwave.bluemarine2.rest.CachingRestClientSupport 2
it.tidalwave.bluemarine2.rest.ResponseEntityIo 2
it.tidalwave.bluemarine2.util.Miscellaneous 5
it.tidalwave.bluemarine2.util.RdfUtilities 1
it.tidalwave.util.MappingFinder 1
it.tidalwave.util.Memoize 1
it.tidalwave.util.SupplierBasedFinder 1
it.tidalwave.util.spi.PriorityAsSupport 1

it.tidalwave.bluemarine2.rest.CachingRestClientSupport

Bug Category Details Line Priority
it.tidalwave.bluemarine2.rest.CachingRestClientSupport.requestFromNetwork(String) calls Thread.sleep() with a lock held MT_CORRECTNESS SWL_SLEEP_WITH_LOCK_HELD 231 Medium
Private method it.tidalwave.bluemarine2.rest.CachingRestClientSupport.requestFromCacheAndThenNetwork(String) is never called PERFORMANCE UPM_UNCALLED_PRIVATE_METHOD 260 Low

it.tidalwave.bluemarine2.rest.ResponseEntityIo

Bug Category Details Line Priority
Possible null pointer dereference in it.tidalwave.bluemarine2.rest.ResponseEntityIo.store(Path, ResponseEntity, List, Function) due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 81 Medium
Possible null pointer dereference in it.tidalwave.bluemarine2.rest.ResponseEntityIo.store(Path, ResponseEntity, List, Function) due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 94 Medium

it.tidalwave.bluemarine2.util.Miscellaneous

Bug Category Details Line Priority
it.tidalwave.bluemarine2.util.Miscellaneous.<static initializer for Miscellaneous>() uses the same code for two switch clauses STYLE DB_DUPLICATE_SWITCH_CLAUSES 71 Low
Hard coded reference to an absolute pathname in it.tidalwave.bluemarine2.util.Miscellaneous.normalizedPath(Path) STYLE DMI_HARDCODED_ABSOLUTE_FILENAME 121 Medium
Use of non-localized String.toUpperCase() or String.toLowerCase() in it.tidalwave.bluemarine2.util.Miscellaneous.<static initializer for Miscellaneous>() I18N DM_CONVERT_CASE 62 Low
Possible null pointer dereference in it.tidalwave.bluemarine2.util.Miscellaneous.normalizedPath(Path) due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 143 Medium
Nullcheck of stream at line 139 of value previously dereferenced in it.tidalwave.bluemarine2.util.Miscellaneous.normalizedPath(Path) CORRECTNESS RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE 139 Medium

it.tidalwave.bluemarine2.util.RdfUtilities

Bug Category Details Line Priority
Possible null pointer dereference in it.tidalwave.bluemarine2.util.RdfUtilities.exportToFile(Model, Path) due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 87 Medium

it.tidalwave.util.MappingFinder

Bug Category Details Line Priority
The field it.tidalwave.util.MappingFinder.mapper is transient but isn't set by deserialization BAD_PRACTICE SE_TRANSIENT_FIELD_NOT_RESTORED Low

it.tidalwave.util.Memoize

Bug Category Details Line Priority
Inconsistent synchronization of it.tidalwave.util.Memoize.value; locked 50% of time MT_CORRECTNESS IS2_INCONSISTENT_SYNC 76 Medium

it.tidalwave.util.SupplierBasedFinder

Bug Category Details Line Priority
Class it.tidalwave.util.SupplierBasedFinder defines non-transient non-serializable instance field supplier BAD_PRACTICE SE_BAD_FIELD Medium

it.tidalwave.util.spi.PriorityAsSupport

Bug Category Details Line Priority
Class it.tidalwave.util.spi.PriorityAsSupport implements same interface as superclass STYLE RI_REDUNDANT_INTERFACES 51 Low