SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.0.4

Threshold is

Effort is default

Summary

Classes Bugs Errors Missing Classes
136 28 0 0

Files

Class Bugs
org.orekit.tutorials.estimation.common.AbstractOrbitDetermination 2
org.orekit.tutorials.estimation.common.AbstractOrbitDeterminationEngine 2
org.orekit.tutorials.estimation.common.KalmanOrbitDeterminationObserver 1
org.orekit.tutorials.propagation.cr3bp.PropagationInCR3BP$TutorialStepHandler 1
org.orekit.tutorials.yaml.TutorialEstimatedParameter 2
org.orekit.tutorials.yaml.TutorialForceModel$TutorialPolynomialAcceleration 4
org.orekit.tutorials.yaml.TutorialKalman 12
org.orekit.tutorials.yaml.TutorialSpacecraft 2
org.orekit.tutorials.yaml.TutorialStation 2

org.orekit.tutorials.estimation.common.AbstractOrbitDetermination

Bug Category Details Line Priority
Possible null pointer dereference of null in org.orekit.tutorials.estimation.common.AbstractOrbitDetermination.runKalman(File) CORRECTNESS NP_NULL_ON_SOME_PATH 709 Medium
Possible null pointer dereference of null in org.orekit.tutorials.estimation.common.AbstractOrbitDetermination.runKalman(File) CORRECTNESS NP_NULL_ON_SOME_PATH 712 Medium

org.orekit.tutorials.estimation.common.AbstractOrbitDeterminationEngine

Bug Category Details Line Priority
Possible null pointer dereference of null in org.orekit.tutorials.estimation.common.AbstractOrbitDeterminationEngine.runKalman(File) CORRECTNESS NP_NULL_ON_SOME_PATH 703 Medium
Possible null pointer dereference of null in org.orekit.tutorials.estimation.common.AbstractOrbitDeterminationEngine.runKalman(File) CORRECTNESS NP_NULL_ON_SOME_PATH 706 Medium

org.orekit.tutorials.estimation.common.KalmanOrbitDeterminationObserver

Bug Category Details Line Priority
org.orekit.tutorials.estimation.common.KalmanOrbitDeterminationObserver.evaluationPerformed(KalmanEstimation) concatenates strings using + in a loop PERFORMANCE SBSC_USE_STRINGBUFFER_CONCATENATION 192 Medium

org.orekit.tutorials.propagation.cr3bp.PropagationInCR3BP$TutorialStepHandler

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

org.orekit.tutorials.yaml.TutorialEstimatedParameter

Bug Category Details Line Priority
org.orekit.tutorials.yaml.TutorialEstimatedParameter.getValues() may expose internal representation by returning TutorialEstimatedParameter.values MALICIOUS_CODE EI_EXPOSE_REP 48 Medium
org.orekit.tutorials.yaml.TutorialEstimatedParameter.setValues(double[]) may expose internal representation by storing an externally mutable object into TutorialEstimatedParameter.values MALICIOUS_CODE EI_EXPOSE_REP2 56 Medium

org.orekit.tutorials.yaml.TutorialForceModel$TutorialPolynomialAcceleration

Bug Category Details Line Priority
org.orekit.tutorials.yaml.TutorialForceModel$TutorialPolynomialAcceleration.getCoefficients() may expose internal representation by returning TutorialForceModel$TutorialPolynomialAcceleration.coefficients MALICIOUS_CODE EI_EXPOSE_REP 456 Medium
org.orekit.tutorials.yaml.TutorialForceModel$TutorialPolynomialAcceleration.getDirections() may expose internal representation by returning TutorialForceModel$TutorialPolynomialAcceleration.directions MALICIOUS_CODE EI_EXPOSE_REP 440 Medium
org.orekit.tutorials.yaml.TutorialForceModel$TutorialPolynomialAcceleration.setCoefficients(double[]) may expose internal representation by storing an externally mutable object into TutorialForceModel$TutorialPolynomialAcceleration.coefficients MALICIOUS_CODE EI_EXPOSE_REP2 464 Medium
org.orekit.tutorials.yaml.TutorialForceModel$TutorialPolynomialAcceleration.setDirections(double[]) may expose internal representation by storing an externally mutable object into TutorialForceModel$TutorialPolynomialAcceleration.directions MALICIOUS_CODE EI_EXPOSE_REP2 448 Medium

org.orekit.tutorials.yaml.TutorialKalman

Bug Category Details Line Priority
org.orekit.tutorials.yaml.TutorialKalman.getCartesianOrbitalP() may expose internal representation by returning TutorialKalman.cartesianOrbitalP MALICIOUS_CODE EI_EXPOSE_REP 56 Medium
org.orekit.tutorials.yaml.TutorialKalman.getCartesianOrbitalQ() may expose internal representation by returning TutorialKalman.cartesianOrbitalQ MALICIOUS_CODE EI_EXPOSE_REP 72 Medium
org.orekit.tutorials.yaml.TutorialKalman.getMeasurementP() may expose internal representation by returning TutorialKalman.measurementP MALICIOUS_CODE EI_EXPOSE_REP 120 Medium
org.orekit.tutorials.yaml.TutorialKalman.getMeasurementQ() may expose internal representation by returning TutorialKalman.measurementQ MALICIOUS_CODE EI_EXPOSE_REP 136 Medium
org.orekit.tutorials.yaml.TutorialKalman.getPropagationP() may expose internal representation by returning TutorialKalman.propagationP MALICIOUS_CODE EI_EXPOSE_REP 88 Medium
org.orekit.tutorials.yaml.TutorialKalman.getPropagationQ() may expose internal representation by returning TutorialKalman.propagationQ MALICIOUS_CODE EI_EXPOSE_REP 104 Medium
org.orekit.tutorials.yaml.TutorialKalman.setCartesianOrbitalP(double[]) may expose internal representation by storing an externally mutable object into TutorialKalman.cartesianOrbitalP MALICIOUS_CODE EI_EXPOSE_REP2 64 Medium
org.orekit.tutorials.yaml.TutorialKalman.setCartesianOrbitalQ(double[]) may expose internal representation by storing an externally mutable object into TutorialKalman.cartesianOrbitalQ MALICIOUS_CODE EI_EXPOSE_REP2 80 Medium
org.orekit.tutorials.yaml.TutorialKalman.setMeasurementP(double[]) may expose internal representation by storing an externally mutable object into TutorialKalman.measurementP MALICIOUS_CODE EI_EXPOSE_REP2 128 Medium
org.orekit.tutorials.yaml.TutorialKalman.setMeasurementQ(double[]) may expose internal representation by storing an externally mutable object into TutorialKalman.measurementQ MALICIOUS_CODE EI_EXPOSE_REP2 144 Medium
org.orekit.tutorials.yaml.TutorialKalman.setPropagationP(double[]) may expose internal representation by storing an externally mutable object into TutorialKalman.propagationP MALICIOUS_CODE EI_EXPOSE_REP2 96 Medium
org.orekit.tutorials.yaml.TutorialKalman.setPropagationQ(double[]) may expose internal representation by storing an externally mutable object into TutorialKalman.propagationQ MALICIOUS_CODE EI_EXPOSE_REP2 112 Medium

org.orekit.tutorials.yaml.TutorialSpacecraft

Bug Category Details Line Priority
org.orekit.tutorials.yaml.TutorialSpacecraft.getAntennaOffset() may expose internal representation by returning TutorialSpacecraft.antennaOffset MALICIOUS_CODE EI_EXPOSE_REP 99 Medium
org.orekit.tutorials.yaml.TutorialSpacecraft.setAntennaOffset(double[]) may expose internal representation by storing an externally mutable object into TutorialSpacecraft.antennaOffset MALICIOUS_CODE EI_EXPOSE_REP2 107 Medium

org.orekit.tutorials.yaml.TutorialStation

Bug Category Details Line Priority
org.orekit.tutorials.yaml.TutorialStation.getCoordinates() may expose internal representation by returning TutorialStation.coordinates MALICIOUS_CODE EI_EXPOSE_REP 87 Medium
org.orekit.tutorials.yaml.TutorialStation.setCoordinates(double[]) may expose internal representation by storing an externally mutable object into TutorialStation.coordinates MALICIOUS_CODE EI_EXPOSE_REP2 98 Medium