FindBugs Bug Detector Report

The following document contains the results of FindBugs Report

FindBugs Version is 2.0.1

Threshold is medium

Effort is min

Summary

ClassesBugsErrorsMissing Classes
1913800

org.deegree.geometry.Geometries

BugCategoryDetailsLinePriority
Switch statement found in org.deegree.geometry.Geometries.collectMembersDeep(Geometry, List) where one case falls through to the next caseSTYLESF_SWITCH_FALLTHROUGH167Medium

org.deegree.geometry.GeometryTransformer

BugCategoryDetailsLinePriority
Dead store to tmp in org.deegree.geometry.GeometryTransformer.transform(Points, Transformation)STYLEDLS_DEAD_LOCAL_STORE822Medium
Dead store to result in org.deegree.geometry.GeometryTransformer.transform(Point, Transformation)STYLEDLS_DEAD_LOCAL_STORE849Medium
Dead store to c2 in org.deegree.geometry.GeometryTransformer.transform(CurveSegment, Transformation)STYLEDLS_DEAD_LOCAL_STORE691Medium

org.deegree.geometry.io.WKTWriter

BugCategoryDetailsLinePriority
Null passed for nonnull parameter of writePolygonWithoutPrefix(Surface, Writer) in org.deegree.geometry.io.WKTWriter.writePolygonPatch(String, ICRS, PrecisionModel, PolygonPatch, Writer)CORRECTNESSNP_NULL_PARAM_DEREF456Medium

org.deegree.geometry.linearization.CurveLinearizer

BugCategoryDetailsLinePriority
Possible null pointer dereference of solution in org.deegree.geometry.linearization.CurveLinearizer.solveLinearEquation(double[][], double[]) on exception pathCORRECTNESSNP_NULL_ON_SOME_PATH_EXCEPTION472Medium

org.deegree.geometry.standard.DefaultEnvelope

BugCategoryDetailsLinePriority
Inconsistent synchronization of org.deegree.geometry.standard.DefaultEnvelope.transformer; locked 66% of timeMT_CORRECTNESSIS2_INCONSISTENT_SYNC149Medium

org.deegree.geometry.standard.curvesegments.DefaultArcString

BugCategoryDetailsLinePriority
Check for oddness that won't work for negative numbers in new org.deegree.geometry.standard.curvesegments.DefaultArcString(Points)STYLEIM_BAD_CHECK_FOR_ODD63Medium

org.deegree.geometry.standard.curvesegments.DefaultArcStringByBulge

BugCategoryDetailsLinePriority
org.deegree.geometry.standard.curvesegments.DefaultArcStringByBulge.getBulges() may expose internal representation by returning DefaultArcStringByBulge.bulgesMALICIOUS_CODEEI_EXPOSE_REP86Medium
new org.deegree.geometry.standard.curvesegments.DefaultArcStringByBulge(Points, double[], Points) may expose internal representation by storing an externally mutable object into DefaultArcStringByBulge.bulgesMALICIOUS_CODEEI_EXPOSE_REP280Medium

org.deegree.geometry.standard.points.PackedPoints

BugCategoryDetailsLinePriority
org.deegree.geometry.standard.points.PackedPoints.getAsArray() may expose internal representation by returning PackedPoints.coordinatesMALICIOUS_CODEEI_EXPOSE_REP135Medium
new org.deegree.geometry.standard.points.PackedPoints(ICRS, double[], int) may expose internal representation by storing an externally mutable object into PackedPoints.coordinatesMALICIOUS_CODEEI_EXPOSE_REP269Medium

org.deegree.geometry.standard.points.PointsArray

BugCategoryDetailsLinePriority
org.deegree.geometry.standard.points.PointsArray.clone() does not call super.clone()BAD_PRACTICECN_IDIOM_NO_SUPER_CALL203Medium

org.deegree.geometry.standard.points.PointsList

BugCategoryDetailsLinePriority
org.deegree.geometry.standard.points.PointsList.clone() does not call super.clone()BAD_PRACTICECN_IDIOM_NO_SUPER_CALL191Medium

org.deegree.geometry.standard.primitive.DefaultOrientableCurve

BugCategoryDetailsLinePriority
Unwritten field: org.deegree.geometry.standard.primitive.DefaultOrientableCurve.crsCORRECTNESSUWF_UNWRITTEN_FIELD99Medium
Unwritten field: org.deegree.geometry.standard.primitive.DefaultOrientableCurve.idCORRECTNESSUWF_UNWRITTEN_FIELD94Medium

org.deegree.geometry.standard.primitive.DefaultOrientableSurface

BugCategoryDetailsLinePriority
Unwritten field: org.deegree.geometry.standard.primitive.DefaultOrientableSurface.crsCORRECTNESSUWF_UNWRITTEN_FIELD97Medium
Unwritten field: org.deegree.geometry.standard.primitive.DefaultOrientableSurface.idCORRECTNESSUWF_UNWRITTEN_FIELD92Medium

org.deegree.geometry.standard.primitive.DefaultPoint

BugCategoryDetailsLinePriority
org.deegree.geometry.standard.primitive.DefaultPoint.getAsArray() may expose internal representation by returning DefaultPoint.coordinatesMALICIOUS_CODEEI_EXPOSE_REP97Medium
new org.deegree.geometry.standard.primitive.DefaultPoint(String, ICRS, PrecisionModel, double[]) may expose internal representation by storing an externally mutable object into DefaultPoint.coordinatesMALICIOUS_CODEEI_EXPOSE_REP274Medium
org.deegree.geometry.standard.primitive.DefaultPoint.toString() concatenates strings using + in a loopPERFORMANCESBSC_USE_STRINGBUFFER_CONCATENATION154Medium

org.deegree.geometry.standard.primitive.DefaultPolygon

BugCategoryDetailsLinePriority
Unused field: org.deegree.geometry.standard.primitive.DefaultPolygon.envelopePERFORMANCEUUF_UNUSED_FIELDMedium

org.deegree.geometry.standard.surfacepatches.DefaultCone

BugCategoryDetailsLinePriority
Unread field: org.deegree.geometry.standard.surfacepatches.DefaultCone.columnsPERFORMANCEURF_UNREAD_FIELD65Medium
Unread field: org.deegree.geometry.standard.surfacepatches.DefaultCone.rowsPERFORMANCEURF_UNREAD_FIELD64Medium

org.deegree.geometry.standard.surfacepatches.DefaultCylinder

BugCategoryDetailsLinePriority
Unread field: org.deegree.geometry.standard.surfacepatches.DefaultCylinder.columnsPERFORMANCEURF_UNREAD_FIELD65Medium
Unread field: org.deegree.geometry.standard.surfacepatches.DefaultCylinder.rowsPERFORMANCEURF_UNREAD_FIELD64Medium

org.deegree.geometry.standard.surfacepatches.DefaultGriddedSurfacePatch

BugCategoryDetailsLinePriority
Unread field: org.deegree.geometry.standard.surfacepatches.DefaultGriddedSurfacePatch.columnsPERFORMANCEURF_UNREAD_FIELD65Medium
Unread field: org.deegree.geometry.standard.surfacepatches.DefaultGriddedSurfacePatch.rowsPERFORMANCEURF_UNREAD_FIELD64Medium

org.deegree.geometry.standard.surfacepatches.DefaultSphere

BugCategoryDetailsLinePriority
Unread field: org.deegree.geometry.standard.surfacepatches.DefaultSphere.columnsPERFORMANCEURF_UNREAD_FIELD65Medium
Unread field: org.deegree.geometry.standard.surfacepatches.DefaultSphere.rowsPERFORMANCEURF_UNREAD_FIELD64Medium

org.deegree.geometry.utils.GeometryUtils

BugCategoryDetailsLinePriority
Switch statement found in org.deegree.geometry.utils.GeometryUtils.measurePathLengths(Shape) where one case falls through to the next caseSTYLESF_SWITCH_FALLTHROUGH273Medium
Switch statement found in org.deegree.geometry.utils.GeometryUtils.measurePathLengths(Shape) where default case is missingSTYLESF_SWITCH_NO_DEFAULT265Medium
Switch statement found in org.deegree.geometry.utils.GeometryUtils.prettyPrintShape(Shape) where default case is missingSTYLESF_SWITCH_NO_DEFAULT205Medium

org.deegree.geometry.validation.GeometryFixer

BugCategoryDetailsLinePriority
Possible null pointer dereference of fixedCurve in org.deegree.geometry.validation.GeometryFixer.fixCurve(Curve, Point) on exception pathCORRECTNESSNP_NULL_ON_SOME_PATH_EXCEPTION172Medium
Possible null pointer dereference of repaired in org.deegree.geometry.validation.GeometryFixer.fixUnclosedRing(Ring) on exception pathCORRECTNESSNP_NULL_ON_SOME_PATH_EXCEPTION106Medium
Possible null pointer dereference of fixedCurve in org.deegree.geometry.validation.GeometryFixer.invertOrientation(Curve) on exception pathCORRECTNESSNP_NULL_ON_SOME_PATH_EXCEPTION231Medium
Possible null pointer dereference of fixedRing in org.deegree.geometry.validation.GeometryFixer.invertOrientation(Ring) on exception pathCORRECTNESSNP_NULL_ON_SOME_PATH_EXCEPTION254Medium

org.deegree.geometry.validation.GeometryValidator

BugCategoryDetailsLinePriority
Doomed test for equality to NaN in org.deegree.geometry.validation.GeometryValidator.getPoint(Coordinate, ICRS)CORRECTNESSFE_TEST_IF_EQUAL_TO_NOT_A_NUMBER522High