PMD Results
The following document contains the results of PMD 6.55.0.
PMD found no problems in your source code.
Suppressed Violations
Filename | Rule message | Suppression type | Reason |
---|---|---|---|
org/hipparchus/optim/BaseMultiStartMultivariateOptimizer.java | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | nopmd | - caching a RuntimeException is intentional here, it will be rethrown later |
org/hipparchus/optim/LocalizedOptimFormats.java | Avoid empty catch blocks | nopmd | |
org/hipparchus/optim/linear/LinearConstraint.java | You should not modify visibility of constructors, methods or fields using setAccessible() | nopmd | |
org/hipparchus/optim/linear/LinearObjectiveFunction.java | You should not modify visibility of constructors, methods or fields using setAccessible() | nopmd | |
org/hipparchus/optim/linear/SolutionCallback.java | Avoid unnecessary constructors - the compiler will generate these for you | nopmd | - unnecessary constructor added intentionally to make javadoc happy |
org/hipparchus/optim/nonlinear/scalar/MultivariateFunctionMappingAdapter.java | Use opposite operator instead of the logic complement operator. | nopmd | - the test is written this way so it also fails for NaN |
org/hipparchus/optim/nonlinear/scalar/MultivariateFunctionPenaltyAdapter.java | Use opposite operator instead of the logic complement operator. | nopmd | - the test is written in such a way it also fails for NaN |
org/hipparchus/optim/nonlinear/scalar/gradient/NonLinearConjugateGradientOptimizer.java | Avoid unnecessary constructors - the compiler will generate these for you | nopmd | - unnecessary constructor added intentionally to make javadoc happy |
org/hipparchus/optim/nonlinear/scalar/noderiv/BOBYQAOptimizer.java | A high ratio of statements to labels in a switch statement. Consider refactoring. | nopmd | - the reference algorithm is as complex as this, we simply ported it from Fortran with minimal changes |
org/hipparchus/optim/nonlinear/scalar/noderiv/BOBYQAOptimizer.java | A high ratio of statements to labels in a switch statement. Consider refactoring. | nopmd | - the reference algorithm is as complex as this, we simply ported it from Fortran with minimal changes |
org/hipparchus/optim/nonlinear/scalar/noderiv/CMAESOptimizer.java | Perhaps 'logMu2' could be replaced by a local variable. | nopmd | - using a field here is for performance reasons |
org/hipparchus/optim/nonlinear/vector/constrained/SQPOptimizerGM.java | The value assigned to variable 'jacobi' is never used (overwritten on line 137) | nopmd | - PMD detect a false positive here |
org/hipparchus/optim/nonlinear/vector/leastsquares/LeastSquaresBuilder.java | Avoid unnecessary constructors - the compiler will generate these for you | nopmd | - unnecessary constructor added intentionally to make javadoc happy |
org/hipparchus/optim/nonlinear/vector/leastsquares/LevenbergMarquardtOptimizer.java | The user-supplied array 'weightedJacobian' is stored directly. | nopmd | - staring array references is intentional and documented here |
org/hipparchus/optim/nonlinear/vector/leastsquares/LevenbergMarquardtOptimizer.java | The user-supplied array 'permutation' is stored directly. | nopmd | - staring array references is intentional and documented here |
org/hipparchus/optim/nonlinear/vector/leastsquares/LevenbergMarquardtOptimizer.java | The user-supplied array 'diagR' is stored directly. | nopmd | - staring array references is intentional and documented here |
org/hipparchus/optim/nonlinear/vector/leastsquares/LevenbergMarquardtOptimizer.java | The user-supplied array 'jacNorm' is stored directly. | nopmd | - staring array references is intentional and documented here |
org/hipparchus/optim/nonlinear/vector/leastsquares/LevenbergMarquardtOptimizer.java | The user-supplied array 'beta' is stored directly. | nopmd | - staring array references is intentional and documented here |
org/hipparchus/optim/univariate/MultiStartUnivariateOptimizer.java | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | nopmd | - caching a RuntimeException is intentional here, it will be rethrown later |