Apache Commons logo Commons Math

FindBugs Bug Detector Report

The following document contains the results of FindBugs

FindBugs Version is 3.0.1

Threshold is

Effort is min

Summary

Classes Bugs Errors Missing Classes
1223 14 0 0

org.apache.commons.math3.dfp.DfpMath

Bug Category Details Line Priority
Useless object stored in variable c of method org.apache.commons.math3.dfp.DfpMath.sin(Dfp) STYLE UC_USELESS_OBJECT 757 Medium

org.apache.commons.math3.exception.util.ExceptionContext

Bug Category Details Line Priority
org.apache.commons.math3.exception.util.ExceptionContext.serializeContext(ObjectOutputStream) makes inefficient use of keySet iterator instead of entrySet iterator PERFORMANCE WMI_WRONG_MAP_ITERATOR 291 Medium

org.apache.commons.math3.fitting.GaussianCurveFitter$ParameterGuesser$1

Bug Category Details Line Priority
org.apache.commons.math3.fitting.GaussianCurveFitter$ParameterGuesser$1.compare(WeightedObservedPoint, WeightedObservedPoint) incorrectly handles double value BAD_PRACTICE CO_COMPARETO_INCORRECT_FLOATING 278 Medium
org.apache.commons.math3.fitting.GaussianCurveFitter$ParameterGuesser$1.compare(WeightedObservedPoint, WeightedObservedPoint) incorrectly handles double value BAD_PRACTICE CO_COMPARETO_INCORRECT_FLOATING 266 Medium
org.apache.commons.math3.fitting.GaussianCurveFitter$ParameterGuesser$1.compare(WeightedObservedPoint, WeightedObservedPoint) incorrectly handles double value BAD_PRACTICE CO_COMPARETO_INCORRECT_FLOATING 272 Medium

org.apache.commons.math3.fitting.GaussianFitter$ParameterGuesser$1

Bug Category Details Line Priority
org.apache.commons.math3.fitting.GaussianFitter$ParameterGuesser$1.compare(WeightedObservedPoint, WeightedObservedPoint) incorrectly handles double value BAD_PRACTICE CO_COMPARETO_INCORRECT_FLOATING 212 Medium
org.apache.commons.math3.fitting.GaussianFitter$ParameterGuesser$1.compare(WeightedObservedPoint, WeightedObservedPoint) incorrectly handles double value BAD_PRACTICE CO_COMPARETO_INCORRECT_FLOATING 200 Medium
org.apache.commons.math3.fitting.GaussianFitter$ParameterGuesser$1.compare(WeightedObservedPoint, WeightedObservedPoint) incorrectly handles double value BAD_PRACTICE CO_COMPARETO_INCORRECT_FLOATING 206 Medium

org.apache.commons.math3.geometry.euclidean.threed.Plane

Bug Category Details Line Priority
Rough value of Math.PI found: 3.141592653489793 BAD_PRACTICE CNT_ROUGH_CONSTANT_VALUE 348 Medium

org.apache.commons.math3.optimization.fitting.GaussianFitter$ParameterGuesser$1

Bug Category Details Line Priority
org.apache.commons.math3.optimization.fitting.GaussianFitter$ParameterGuesser$1.compare(WeightedObservedPoint, WeightedObservedPoint) incorrectly handles double value BAD_PRACTICE CO_COMPARETO_INCORRECT_FLOATING 213 Medium
org.apache.commons.math3.optimization.fitting.GaussianFitter$ParameterGuesser$1.compare(WeightedObservedPoint, WeightedObservedPoint) incorrectly handles double value BAD_PRACTICE CO_COMPARETO_INCORRECT_FLOATING 201 Medium
org.apache.commons.math3.optimization.fitting.GaussianFitter$ParameterGuesser$1.compare(WeightedObservedPoint, WeightedObservedPoint) incorrectly handles double value BAD_PRACTICE CO_COMPARETO_INCORRECT_FLOATING 207 Medium

org.apache.commons.math3.util.FastMath$CodyWaite

Bug Category Details Line Priority
Rough value of Math.PI/2 found: 1.570796251296997 BAD_PRACTICE CNT_ROUGH_CONSTANT_VALUE 4156 High

org.apache.commons.math3.util.ResizableDoubleArray

Bug Category Details Line Priority
Inconsistent synchronization of org.apache.commons.math3.util.ResizableDoubleArray.expansionMode; locked 77% of time MT_CORRECTNESS IS2_INCONSISTENT_SYNC 1029 Medium