FindBugs Bug Detector Report

The following document contains the results of FindBugs

FindBugs Version is 3.0.1

Threshold is medium

Effort is min

Summary

Classes Bugs Errors Missing Classes
109 6 0 0

org.locationtech.spatial4j.context.SpatialContext

Bug Category Details Line Priority
Static initializer for org.locationtech.spatial4j.context.SpatialContext creates instance before all static final fields assigned BAD_PRACTICE SI_INSTANCE_BEFORE_FINALS_ASSIGNED 41 Medium

org.locationtech.spatial4j.io.GeoJSONReader

Bug Category Details Line Priority
Switch statement found in org.locationtech.spatial4j.io.GeoJSONReader.readCoordXYZ(JSONParser, ShapeFactory$PointsBuilder) where default case is missing STYLE SF_SWITCH_NO_DEFAULT 89-92 Medium

org.locationtech.spatial4j.io.LegacyShapeReader

Bug Category Details Line Priority
Redundant nullcheck of d, which is known to be non-null in org.locationtech.spatial4j.io.LegacyShapeReader.readShapeOrNull(String, SpatialContext) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 91 Medium

org.locationtech.spatial4j.io.WKTReader$State

Bug Category Details Line Priority
Unread public/protected field: org.locationtech.spatial4j.io.WKTReader$State.dimension STYLE URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD 482 Medium

org.locationtech.spatial4j.io.jts.JtsPolyshapeWriter

Bug Category Details Line Priority
Dead store to dim in org.locationtech.spatial4j.io.jts.JtsPolyshapeWriter.write(PolyshapeWriter$Encoder, CoordinateSequence) STYLE DLS_DEAD_LOCAL_STORE 50 Medium

org.locationtech.spatial4j.shape.impl.GeoCircle

Bug Category Details Line Priority
org.locationtech.spatial4j.shape.impl.GeoCircle doesn't override CircleImpl.equals(Object) STYLE EQ_DOESNT_OVERRIDE_EQUALS 1 Medium