You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2022/10/13 12:42:34 UTC

[commons-math] branch master updated (85c6427a1 -> b72c0945a)

This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git


    from 85c6427a1 Add code of conduct
     new 49d542fc0 Update to commons RNG 1.5
     new 8dfca662f Update git ignore to recursively ignore build files
     new bc9e8bd27 Update fixed seed test
     new 93e3ee4b7 Formatting. Remove empty lines before closing curly bracket.
     new a8d392580 Use diamond operator
     new 5a8234a2f Remove trailing whitespace
     new e59397ba1 Update to CP 54
     new 8d4381b75 Drop junit 5.7.2 for 5.9.0 in commons parent
     new 10f519d8c Drop antrun 1.8 for 3.1.0 in commons parent
     new 070517388 Drop checkstyle 3.1.0 for 3.2.0 in commons parent
     new f142596f1 Fix checkstyle for UnnecessaryParentheses
     new 2ceab60e7 Update spotbugs 4.3.0 to CP 4.7.2.0
     new 23ef546ef Update PMD version to commons parent
     new cff0c9b4b Remove javadoc links added by commons parent
     new 7b18e4f67 Reorder properties to match commons RNG parent.
     new b7988729b Drop surefire 3.0.0-M5 for 3.0.0-M7 in commons parent
     new 86c703f3a Update changes report configuration to allow component reports
     new c20a45006 Remove redundant properties and dependency management
     new e1dd863d2 Drop exec-maven-plugin management
     new 1d50e68f6 Add my name to the developers
     new 02ca77c64 Update coverage badge
     new 2c76d1891 Disable Travis (superseded by GH actions)
     new b72c0945a Use mvn for README contributing build goal

The 23 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .gitignore                                         |  12 +-
 .travis.yml                                        |  38 ------
 README.md                                          |   6 +-
 commons-math-core/pom.xml                          |   3 +-
 .../commons/math4/core/jdkmath/AccurateMath.java   |  16 ---
 .../math4/examples/kmeans/image/StandAlone.java    |  16 +--
 commons-math-examples/pom.xml                      |  45 +------
 commons-math-legacy-core/pom.xml                   |   3 +-
 .../apache/commons/math4/legacy/core/Field.java    |   1 -
 .../apache/commons/math4/legacy/core/dfp/Dfp.java  |  10 --
 .../commons/math4/legacy/core/dfp/DfpDec.java      |   2 -
 .../commons/math4/legacy/core/dfp/DfpField.java    |   8 --
 .../commons/math4/legacy/core/dfp/DfpMath.java     |  11 --
 .../core/ExtendedFieldElementAbstractTest.java     |   1 -
 .../commons/math4/legacy/core/MathArraysTest.java  |   1 -
 .../commons/math4/legacy/core/dfp/Decimal10.java   |   1 -
 .../commons/math4/legacy/core/dfp/DfpDecTest.java  |   1 -
 .../commons/math4/legacy/core/dfp/DfpMathTest.java |   1 -
 .../commons/math4/legacy/core/dfp/DfpTest.java     |   1 -
 .../legacy/core/jdkmath/AccurateMathTest.java      |   4 -
 commons-math-legacy-exception/pom.xml              |   3 +-
 .../legacy/exception/MathArithmeticException.java  |   1 -
 .../exception/MathIllegalArgumentException.java    |   1 -
 .../exception/MathIllegalStateException.java       |   1 -
 .../MathUnsupportedOperationException.java         |   1 -
 .../legacy/exception/NotANumberException.java      |   1 -
 .../legacy/exception/util/DummyLocalizable.java    |   1 -
 .../exception/util/ExceptionContextProvider.java   |   1 -
 .../exception/util/LocalizedFormatsTest.java       |   3 -
 commons-math-legacy/pom.xml                        |   4 +-
 .../math4/legacy/analysis/FunctionUtils.java       |   9 --
 .../analysis/MultivariateMatrixFunction.java       |   1 -
 .../analysis/MultivariateVectorFunction.java       |   1 -
 .../legacy/analysis/UnivariateMatrixFunction.java  |   1 -
 .../legacy/analysis/UnivariateVectorFunction.java  |   1 -
 .../analysis/differentiation/DSCompiler.java       |  48 -------
 .../differentiation/DerivativeStructure.java       |  13 +-
 .../FiniteDifferencesDifferentiator.java           |  10 --
 .../analysis/differentiation/GradientFunction.java |   2 -
 .../analysis/differentiation/JacobianFunction.java |   2 -
 .../MultivariateDifferentiableVectorFunction.java  |   1 -
 .../analysis/differentiation/SparseGradient.java   |   9 --
 .../UnivariateDifferentiableMatrixFunction.java    |   1 -
 .../UnivariateDifferentiableVectorFunction.java    |   1 -
 .../UnivariateFunctionDifferentiator.java          |   1 -
 .../UnivariateMatrixFunctionDifferentiator.java    |   1 -
 .../UnivariateVectorFunctionDifferentiator.java    |   1 -
 .../math4/legacy/analysis/function/Acos.java       |   1 -
 .../math4/legacy/analysis/function/Acosh.java      |   1 -
 .../math4/legacy/analysis/function/Asin.java       |   1 -
 .../math4/legacy/analysis/function/Asinh.java      |   1 -
 .../math4/legacy/analysis/function/Atan.java       |   1 -
 .../math4/legacy/analysis/function/Atanh.java      |   1 -
 .../math4/legacy/analysis/function/Cbrt.java       |   1 -
 .../math4/legacy/analysis/function/Constant.java   |   1 -
 .../math4/legacy/analysis/function/Cos.java        |   1 -
 .../math4/legacy/analysis/function/Cosh.java       |   1 -
 .../math4/legacy/analysis/function/Exp.java        |   1 -
 .../math4/legacy/analysis/function/Expm1.java      |   1 -
 .../math4/legacy/analysis/function/Gaussian.java   |   3 -
 .../analysis/function/HarmonicOscillator.java      |   2 -
 .../math4/legacy/analysis/function/Identity.java   |   1 -
 .../math4/legacy/analysis/function/Inverse.java    |   1 -
 .../math4/legacy/analysis/function/Log.java        |   1 -
 .../math4/legacy/analysis/function/Log10.java      |   1 -
 .../math4/legacy/analysis/function/Log1p.java      |   1 -
 .../math4/legacy/analysis/function/Logistic.java   |   1 -
 .../math4/legacy/analysis/function/Logit.java      |   1 -
 .../math4/legacy/analysis/function/Minus.java      |   1 -
 .../math4/legacy/analysis/function/Power.java      |   1 -
 .../math4/legacy/analysis/function/Sigmoid.java    |   5 -
 .../math4/legacy/analysis/function/Sin.java        |   1 -
 .../math4/legacy/analysis/function/Sinc.java       |   6 -
 .../math4/legacy/analysis/function/Sinh.java       |   1 -
 .../math4/legacy/analysis/function/Sqrt.java       |   1 -
 .../math4/legacy/analysis/function/Tan.java        |   1 -
 .../math4/legacy/analysis/function/Tanh.java       |   1 -
 .../analysis/integration/MidPointIntegrator.java   |   4 +-
 .../analysis/integration/RombergIntegrator.java    |   4 +-
 .../analysis/integration/TrapezoidIntegrator.java  |   2 +-
 .../analysis/integration/UnivariateIntegrator.java |   1 -
 .../interpolation/AkimaSplineInterpolator.java     |   1 -
 .../BicubicInterpolatingFunction.java              |   2 -
 .../interpolation/FieldHermiteInterpolator.java    |   5 -
 .../interpolation/HermiteInterpolator.java         |   6 -
 .../analysis/polynomials/PolynomialFunction.java   |   2 +-
 .../polynomials/PolynomialFunctionNewtonForm.java  |   2 -
 .../analysis/polynomials/PolynomialsUtils.java     |  10 +-
 .../legacy/analysis/solvers/AllowedSolution.java   |   1 -
 .../legacy/analysis/solvers/BaseSecantSolver.java  |   1 -
 .../BracketedRealFieldUnivariateSolver.java        |   1 -
 .../solvers/BracketedUnivariateSolver.java         |   1 -
 .../solvers/BracketingNthOrderBrentSolver.java     |  19 +--
 .../FieldBracketingNthOrderBrentSolver.java        |  17 +--
 .../legacy/analysis/solvers/LaguerreSolver.java    |   4 +-
 .../legacy/analysis/solvers/SecantSolver.java      |   1 -
 .../analysis/solvers/UnivariateSolverUtils.java    |   8 +-
 .../distribution/EnumeratedDistribution.java       |   2 +-
 .../distribution/EnumeratedRealDistribution.java   |   1 -
 ...ariateNormalMixtureExpectationMaximization.java |   1 -
 .../math4/legacy/fitting/HarmonicCurveFitter.java  |   2 +-
 .../leastsquares/DenseWeightedEvaluation.java      |   1 -
 .../fitting/leastsquares/EvaluationRmsChecker.java |   1 -
 .../fitting/leastsquares/GaussNewtonOptimizer.java |   1 -
 .../leastsquares/LeastSquaresOptimizer.java        |   2 -
 .../leastsquares/LevenbergMarquardtOptimizer.java  |   6 +-
 .../leastsquares/MultivariateJacobianFunction.java |   1 -
 .../math4/legacy/genetics/BinaryMutation.java      |   1 -
 .../commons/math4/legacy/genetics/Chromosome.java  |   1 -
 .../legacy/genetics/ElitisticListPopulation.java   |   1 -
 .../commons/math4/legacy/genetics/Fitness.java     |   1 -
 .../legacy/genetics/FixedGenerationCount.java      |   1 -
 .../math4/legacy/genetics/GeneticAlgorithm.java    |   1 -
 .../genetics/InvalidRepresentationException.java   |   1 -
 .../math4/legacy/genetics/OnePointCrossover.java   |   1 -
 .../legacy/genetics/PermutationChromosome.java     |   1 -
 .../math4/legacy/genetics/RandomKeyMutation.java   |   1 -
 .../math4/legacy/genetics/TournamentSelection.java |   1 -
 .../math4/legacy/linear/AbstractFieldMatrix.java   |  29 +---
 .../math4/legacy/linear/AbstractRealMatrix.java    |  17 +--
 .../math4/legacy/linear/Array2DRowFieldMatrix.java |   5 +-
 .../math4/legacy/linear/Array2DRowRealMatrix.java  |   4 +-
 .../math4/legacy/linear/ArrayFieldVector.java      |   5 +-
 .../math4/legacy/linear/BiDiagonalTransformer.java |   7 -
 .../commons/math4/legacy/linear/BigRealField.java  |   1 -
 .../math4/legacy/linear/BlockFieldMatrix.java      |  13 +-
 .../math4/legacy/linear/BlockRealMatrix.java       |   9 +-
 .../math4/legacy/linear/ConjugateGradient.java     |   4 +-
 .../math4/legacy/linear/EigenDecomposition.java    |   1 -
 .../math4/legacy/linear/FieldLUDecomposition.java  |   8 +-
 .../commons/math4/legacy/linear/FieldVector.java   |   1 -
 .../math4/legacy/linear/LUDecomposition.java       |   6 +-
 .../commons/math4/legacy/linear/MatrixUtils.java   |   7 +-
 .../legacy/linear/OpenIntToDoubleHashMap.java      |  11 --
 .../math4/legacy/linear/OpenIntToFieldHashMap.java |  11 --
 .../math4/legacy/linear/OpenMapRealMatrix.java     |   2 -
 .../math4/legacy/linear/OpenMapRealVector.java     |   1 -
 .../math4/legacy/linear/QRDecomposition.java       |   1 -
 .../math4/legacy/linear/RealMatrixFormat.java      |   1 -
 .../commons/math4/legacy/linear/RealVector.java    |   4 +-
 .../math4/legacy/linear/RealVectorFormat.java      |   1 -
 .../linear/RectangularCholeskyDecomposition.java   |   3 -
 .../legacy/linear/SingularValueDecomposition.java  |   2 -
 .../math4/legacy/linear/SparseFieldMatrix.java     |   1 -
 .../math4/legacy/linear/SparseFieldVector.java     |   5 +-
 .../math4/legacy/linear/SparseRealMatrix.java      |   1 -
 .../apache/commons/math4/legacy/linear/SymmLQ.java |   4 +-
 .../legacy/ml/clustering/CentroidCluster.java      |   1 -
 .../math4/legacy/ml/clustering/DoublePoint.java    |   1 -
 .../clustering/ElkanKMeansPlusPlusClusterer.java   |  18 +--
 .../legacy/ml/clustering/FuzzyKMeansClusterer.java |   5 +-
 .../ml/clustering/KMeansPlusPlusClusterer.java     |  10 +-
 .../math4/legacy/ode/AbstractFieldIntegrator.java  |   6 -
 .../math4/legacy/ode/AbstractIntegrator.java       |   7 -
 .../math4/legacy/ode/AbstractParameterizable.java  |   1 -
 .../legacy/ode/ContinuousOutputFieldModel.java     |   6 -
 .../math4/legacy/ode/ContinuousOutputModel.java    |  10 +-
 .../commons/math4/legacy/ode/EquationsMapper.java  |   1 -
 .../math4/legacy/ode/ExpandableStatefulODE.java    |   8 --
 .../math4/legacy/ode/FieldEquationsMapper.java     |   1 -
 .../math4/legacy/ode/FieldExpandableODE.java       |   4 -
 .../commons/math4/legacy/ode/FieldODEState.java    |   2 -
 .../legacy/ode/FieldODEStateAndDerivative.java     |   1 -
 .../math4/legacy/ode/FieldSecondaryEquations.java  |   1 -
 .../math4/legacy/ode/FirstOrderConverter.java      |   2 -
 .../ode/FirstOrderDifferentialEquations.java       |   1 -
 .../ode/FirstOrderFieldDifferentialEquations.java  |   1 -
 .../legacy/ode/FirstOrderFieldIntegrator.java      |   1 -
 .../math4/legacy/ode/FirstOrderIntegrator.java     |   1 -
 .../commons/math4/legacy/ode/JacobianMatrices.java |  15 +--
 .../legacy/ode/MainStateJacobianProvider.java      |   1 -
 .../math4/legacy/ode/MultistepFieldIntegrator.java |  11 --
 .../math4/legacy/ode/MultistepIntegrator.java      |  11 --
 .../commons/math4/legacy/ode/ODEIntegrator.java    |   1 -
 .../math4/legacy/ode/ParameterConfiguration.java   |   1 -
 .../legacy/ode/ParameterJacobianProvider.java      |   1 -
 .../math4/legacy/ode/ParameterJacobianWrapper.java |   2 -
 .../commons/math4/legacy/ode/Parameterizable.java  |   1 -
 .../commons/math4/legacy/ode/ParameterizedODE.java |   1 -
 .../math4/legacy/ode/ParameterizedWrapper.java     |   1 -
 .../ode/SecondOrderDifferentialEquations.java      |   1 -
 .../math4/legacy/ode/SecondOrderIntegrator.java    |   1 -
 .../math4/legacy/ode/SecondaryEquations.java       |   1 -
 .../legacy/ode/UnknownParameterException.java      |   1 -
 .../commons/math4/legacy/ode/events/Action.java    |   1 -
 .../math4/legacy/ode/events/EventFilter.java       |   7 -
 .../math4/legacy/ode/events/EventHandler.java      |   2 -
 .../math4/legacy/ode/events/EventState.java        |  26 ++--
 .../math4/legacy/ode/events/FieldEventHandler.java |   1 -
 .../math4/legacy/ode/events/FieldEventState.java   |   7 -
 .../math4/legacy/ode/events/FilterType.java        |   3 -
 .../math4/legacy/ode/events/Transformer.java       |   1 -
 .../nonstiff/AdamsBashforthFieldIntegrator.java    |   7 -
 .../ode/nonstiff/AdamsBashforthIntegrator.java     |   7 -
 .../legacy/ode/nonstiff/AdamsFieldIntegrator.java  |   1 -
 .../ode/nonstiff/AdamsFieldStepInterpolator.java   |   3 -
 .../math4/legacy/ode/nonstiff/AdamsIntegrator.java |   1 -
 .../ode/nonstiff/AdamsMoultonFieldIntegrator.java  |   5 -
 .../ode/nonstiff/AdamsMoultonIntegrator.java       |   5 -
 .../nonstiff/AdamsNordsieckFieldTransformer.java   |   6 -
 .../ode/nonstiff/AdamsNordsieckTransformer.java    |   3 -
 .../nonstiff/AdaptiveStepsizeFieldIntegrator.java  |   8 --
 .../ode/nonstiff/AdaptiveStepsizeIntegrator.java   |  16 +--
 .../ClassicalRungeKuttaFieldIntegrator.java        |   1 -
 .../ClassicalRungeKuttaFieldStepInterpolator.java  |   2 -
 .../nonstiff/ClassicalRungeKuttaIntegrator.java    |   1 -
 .../ClassicalRungeKuttaStepInterpolator.java       |   4 +-
 .../nonstiff/DormandPrince54FieldIntegrator.java   |   3 -
 .../DormandPrince54FieldStepInterpolator.java      |   2 -
 .../ode/nonstiff/DormandPrince54Integrator.java    |   3 -
 .../nonstiff/DormandPrince54StepInterpolator.java  |   8 +-
 .../nonstiff/DormandPrince853FieldIntegrator.java  |   4 -
 .../DormandPrince853FieldStepInterpolator.java     |   3 -
 .../ode/nonstiff/DormandPrince853Integrator.java   |   3 -
 .../nonstiff/DormandPrince853StepInterpolator.java |  13 +-
 .../EmbeddedRungeKuttaFieldIntegrator.java         |   8 --
 .../ode/nonstiff/EmbeddedRungeKuttaIntegrator.java |   8 --
 .../legacy/ode/nonstiff/EulerFieldIntegrator.java  |   1 -
 .../ode/nonstiff/EulerFieldStepInterpolator.java   |   2 -
 .../math4/legacy/ode/nonstiff/EulerIntegrator.java |   1 -
 .../legacy/ode/nonstiff/EulerStepInterpolator.java |   4 +-
 .../ode/nonstiff/FieldButcherArrayProvider.java    |   1 -
 .../legacy/ode/nonstiff/GillFieldIntegrator.java   |   2 -
 .../ode/nonstiff/GillFieldStepInterpolator.java    |   2 -
 .../math4/legacy/ode/nonstiff/GillIntegrator.java  |   1 -
 .../legacy/ode/nonstiff/GillStepInterpolator.java  |   4 +-
 .../ode/nonstiff/GraggBulirschStoerIntegrator.java |  76 ++++-------
 .../GraggBulirschStoerStepInterpolator.java        |  13 +-
 .../ode/nonstiff/HighamHall54FieldIntegrator.java  |   3 -
 .../HighamHall54FieldStepInterpolator.java         |   2 -
 .../ode/nonstiff/HighamHall54Integrator.java       |   3 -
 .../ode/nonstiff/HighamHall54StepInterpolator.java |   4 +-
 .../legacy/ode/nonstiff/LutherFieldIntegrator.java |   2 -
 .../ode/nonstiff/LutherFieldStepInterpolator.java  |   2 -
 .../legacy/ode/nonstiff/LutherIntegrator.java      |   1 -
 .../ode/nonstiff/LutherStepInterpolator.java       |   4 +-
 .../ode/nonstiff/MidpointFieldIntegrator.java      |   1 -
 .../nonstiff/MidpointFieldStepInterpolator.java    |   2 -
 .../legacy/ode/nonstiff/MidpointIntegrator.java    |   1 -
 .../ode/nonstiff/MidpointStepInterpolator.java     |   4 +-
 .../ode/nonstiff/RungeKuttaFieldIntegrator.java    |   6 -
 .../nonstiff/RungeKuttaFieldStepInterpolator.java  |   1 -
 .../legacy/ode/nonstiff/RungeKuttaIntegrator.java  |   6 -
 .../ode/nonstiff/RungeKuttaStepInterpolator.java   |   5 -
 .../ode/nonstiff/ThreeEighthesFieldIntegrator.java |   1 -
 .../ThreeEighthesFieldStepInterpolator.java        |   2 -
 .../ode/nonstiff/ThreeEighthesIntegrator.java      |   1 -
 .../nonstiff/ThreeEighthesStepInterpolator.java    |   6 +-
 .../sampling/AbstractFieldStepInterpolator.java    |   1 -
 .../ode/sampling/AbstractStepInterpolator.java     |   8 --
 .../legacy/ode/sampling/DummyStepHandler.java      |   1 -
 .../legacy/ode/sampling/FieldFixedStepHandler.java |   1 -
 .../legacy/ode/sampling/FieldStepHandler.java      |   1 -
 .../legacy/ode/sampling/FieldStepInterpolator.java |   1 -
 .../legacy/ode/sampling/FieldStepNormalizer.java   |   2 -
 .../legacy/ode/sampling/FixedStepHandler.java      |   1 -
 .../ode/sampling/NordsieckStepInterpolator.java    |   6 -
 .../math4/legacy/ode/sampling/StepHandler.java     |   1 -
 .../legacy/ode/sampling/StepInterpolator.java      |   1 -
 .../math4/legacy/ode/sampling/StepNormalizer.java  |   1 -
 .../legacy/optim/AbstractOptimizationProblem.java  |   1 -
 .../optim/linear/LinearObjectiveFunction.java      |   2 +-
 .../math4/legacy/optim/linear/SimplexTableau.java  |  18 +--
 .../scalar/MultivariateFunctionMappingAdapter.java |   2 -
 .../scalar/MultivariateFunctionPenaltyAdapter.java |   2 +-
 .../nonlinear/scalar/noderiv/BOBYQAOptimizer.java  |   9 --
 .../legacy/random/SobolSequenceGenerator.java      |   1 -
 .../commons/math4/legacy/special/BesselJ.java      |   9 +-
 .../commons/math4/legacy/stat/Frequency.java       |   3 +-
 .../commons/math4/legacy/stat/StatUtils.java       |   1 -
 .../stat/correlation/SpearmansCorrelation.java     |   1 -
 .../stat/correlation/StorelessCovariance.java      |   2 -
 .../AbstractStorelessUnivariateStatistic.java      |   1 -
 .../descriptive/AbstractUnivariateStatistic.java   |   1 -
 .../math4/legacy/stat/descriptive/DoubleArray.java |   1 -
 .../descriptive/MultivariateSummaryStatistics.java |   1 -
 .../stat/descriptive/ResizableDoubleArray.java     |   1 -
 .../StatisticalMultivariateSummary.java            |   1 -
 .../stat/descriptive/StatisticalSummary.java       |   1 -
 .../descriptive/StorelessUnivariateStatistic.java  |   1 -
 .../descriptive/SynchronizedSummaryStatistics.java |   1 -
 .../stat/descriptive/WeightedEvaluation.java       |   1 -
 .../stat/descriptive/moment/GeometricMean.java     |   1 -
 .../legacy/stat/descriptive/moment/Kurtosis.java   |   1 -
 .../stat/descriptive/moment/SecondMoment.java      |   1 -
 .../stat/descriptive/moment/StandardDeviation.java |   1 -
 .../stat/descriptive/moment/ThirdMoment.java       |   1 -
 .../descriptive/moment/VectorialCovariance.java    |   2 -
 .../stat/descriptive/moment/VectorialMean.java     |   1 -
 .../math4/legacy/stat/descriptive/rank/Median.java |   1 -
 .../rank/MedianOf3PivotingStrategy.java            |   1 -
 .../stat/descriptive/rank/PSquarePercentile.java   |   1 -
 .../legacy/stat/descriptive/rank/Percentile.java   |   1 -
 .../legacy/stat/descriptive/summary/Product.java   |   1 -
 .../math4/legacy/stat/descriptive/summary/Sum.java |   1 -
 .../stat/descriptive/summary/SumOfSquares.java     |   1 -
 .../math4/legacy/stat/inference/ChiSquareTest.java |  13 +-
 .../commons/math4/legacy/stat/inference/GTest.java |   2 +-
 .../legacy/stat/inference/InferenceTestUtils.java  |   1 -
 .../stat/inference/KolmogorovSmirnovTest.java      |   2 +-
 .../math4/legacy/stat/inference/OneWayAnova.java   |   7 -
 .../commons/math4/legacy/stat/inference/TTest.java |  27 ----
 .../legacy/stat/interval/AgrestiCoullInterval.java |   1 -
 .../stat/interval/BinomialConfidenceInterval.java  |   1 -
 .../math4/legacy/stat/interval/IntervalUtils.java  |   1 -
 .../stat/interval/NormalApproximationInterval.java |   1 -
 .../math4/legacy/stat/ranking/NaturalRanking.java  |   1 -
 .../AbstractMultipleLinearRegression.java          |   4 +-
 .../regression/GLSMultipleLinearRegression.java    |   2 -
 .../stat/regression/MillerUpdatingRegression.java  |   1 -
 .../stat/regression/MultipleLinearRegression.java  |   1 -
 .../regression/OLSMultipleLinearRegression.java    |   1 -
 .../legacy/stat/regression/SimpleRegression.java   |   3 +-
 .../math4/legacy/util/CombinatoricsUtils.java      |   1 -
 .../commons/math4/legacy/util/ComplexFormat.java   |   1 -
 .../commons/math4/legacy/util/CompositeFormat.java |   6 +-
 .../math4/legacy/analysis/FunctionUtilsTest.java   |   5 -
 .../math4/legacy/analysis/MonitoredFunction.java   |   1 -
 .../math4/legacy/analysis/QuinticFunction.java     |   1 -
 .../math4/legacy/analysis/SumSincFunction.java     |   1 -
 .../math4/legacy/analysis/XMinus5Function.java     |   1 -
 .../analysis/differentiation/DSCompilerTest.java   |   3 -
 .../differentiation/DerivativeStructureTest.java   |  22 ---
 .../FiniteDifferencesDifferentiatorTest.java       |   8 --
 .../differentiation/GradientFunctionTest.java      |   2 -
 .../differentiation/JacobianFunctionTest.java      |   2 -
 .../differentiation/SparseGradientTest.java        |  20 ---
 .../analysis/function/BivariateFunctionTest.java   |   1 -
 .../math4/legacy/analysis/function/SqrtTest.java   |   1 -
 .../UnivariateDifferentiableFunctionTest.java      |   1 -
 .../analysis/function/UnivariateFunctionTest.java  |   1 -
 .../IterativeLegendreGaussIntegratorTest.java      |   2 -
 .../integration/MidPointIntegratorTest.java        |   3 -
 .../integration/TrapezoidIntegratorTest.java       |   1 -
 .../integration/gauss/BaseRuleFactoryTest.java     |   2 +-
 .../FieldHermiteInterpolatorTest.java              |   4 -
 .../interpolation/HermiteInterpolatorTest.java     |   3 -
 .../interpolation/LoessInterpolatorTest.java       |   2 +-
 .../PolynomialFunctionNewtonFormTest.java          |   1 -
 .../analysis/polynomials/PolynomialsUtilsTest.java |   8 --
 .../solvers/BaseSecantSolverAbstractTest.java      |   3 +-
 .../solvers/BracketingNthOrderBrentSolverTest.java |   2 -
 .../legacy/analysis/solvers/BrentSolverTest.java   |   1 -
 .../FieldBracketingNthOrderBrentSolverTest.java    |   2 -
 .../legacy/analysis/solvers/MullerSolverTest.java  |   2 +-
 .../EnumeratedRealDistributionTest.java            |  10 +-
 .../field/ExtendedFieldElementAbstractTest.java    |   1 -
 .../AbstractLeastSquaresOptimizerAbstractTest.java |   2 +-
 .../leastsquares/EvaluationRmsCheckerTest.java     |   1 -
 .../fitting/leastsquares/EvaluationTest.java       |   6 +-
 .../GaussNewtonOptimizerWithCholeskyTest.java      |   1 -
 .../GaussNewtonOptimizerWithLUTest.java            |   1 -
 .../GaussNewtonOptimizerWithQRTest.java            |   1 -
 .../LevenbergMarquardtOptimizerTest.java           |   1 -
 .../legacy/genetics/BinaryChromosomeTest.java      |   1 -
 .../math4/legacy/genetics/BinaryMutationTest.java  |   1 -
 .../math4/legacy/genetics/ChromosomeTest.java      |   1 -
 .../math4/legacy/genetics/CycleCrossoverTest.java  |  10 +-
 .../legacy/genetics/DummyBinaryChromosome.java     |   1 -
 .../math4/legacy/genetics/DummyRandomKey.java      |   1 -
 .../genetics/ElitisticListPopulationTest.java      |   1 -
 .../math4/legacy/genetics/FitnessCachingTest.java  |   2 +-
 .../legacy/genetics/FixedGenerationCountTest.java  |   1 -
 .../genetics/GeneticAlgorithmTestBinary.java       |   4 +-
 .../genetics/GeneticAlgorithmTestPermutations.java |   2 +-
 .../math4/legacy/genetics/ListPopulationTest.java  |   1 -
 .../math4/legacy/genetics/NPointCrossoverTest.java |   9 +-
 .../legacy/genetics/OnePointCrossoverTest.java     |   1 -
 .../legacy/genetics/OrderedCrossoverTest.java      |   8 +-
 .../legacy/genetics/RandomKeyMutationTest.java     |   1 -
 .../math4/legacy/genetics/RandomKeyTest.java       |   1 -
 .../legacy/genetics/TournamentSelectionTest.java   |   1 -
 .../legacy/genetics/UniformCrossoverTest.java      |  12 +-
 .../math4/legacy/linear/ArrayFieldVectorTest.java  |   7 -
 .../math4/legacy/linear/ArrayRealVectorTest.java   |   1 -
 .../legacy/linear/BiDiagonalTransformerTest.java   |   8 +-
 .../math4/legacy/linear/BigRealFieldTest.java      |   1 -
 .../commons/math4/legacy/linear/BigRealTest.java   |   1 -
 .../math4/legacy/linear/BlockFieldMatrixTest.java  |  11 +-
 .../math4/legacy/linear/BlockRealMatrixTest.java   |   6 +-
 .../legacy/linear/CholeskyDecompositionTest.java   |   1 -
 .../math4/legacy/linear/CholeskySolverTest.java    |   2 -
 .../math4/legacy/linear/DiagonalMatrixTest.java    |   2 -
 .../legacy/linear/EigenDecompositionTest.java      |   6 -
 .../legacy/linear/FieldLUDecompositionTest.java    |   4 -
 .../math4/legacy/linear/FieldMatrixImplTest.java   |   2 -
 .../math4/legacy/linear/LUDecompositionTest.java   |   4 -
 .../legacy/linear/OpenIntToDoubleHashMapTest.java  |   4 +-
 .../math4/legacy/linear/OpenIntToFieldTest.java    |   3 +-
 .../math4/legacy/linear/QRDecompositionTest.java   |   7 -
 .../commons/math4/legacy/linear/QRSolverTest.java  |   3 -
 .../math4/legacy/linear/RRQRDecompositionTest.java |   5 -
 .../math4/legacy/linear/RRQRSolverTest.java        |   6 -
 .../legacy/linear/RealVectorAbstractTest.java      |   3 -
 .../RectangularCholeskyDecompositionTest.java      |   4 -
 .../linear/SingularValueDecompositionTest.java     |   6 -
 .../legacy/linear/SingularValueSolverTest.java     |   2 -
 .../math4/legacy/linear/SparseFieldMatrixTest.java |   2 -
 .../math4/legacy/linear/SparseFieldVectorTest.java |   4 -
 .../math4/legacy/linear/SparseRealMatrixTest.java  |   2 -
 .../math4/legacy/linear/SparseRealVectorTest.java  |   2 -
 .../legacy/linear/TriDiagonalTransformerTest.java  |   2 +-
 .../linear/UnmodifiableRealVectorAbstractTest.java |   1 -
 .../legacy/ml/clustering/DBSCANClustererTest.java  |   6 +-
 .../ml/clustering/FuzzyKMeansClustererTest.java    |   3 +-
 .../ml/clustering/KMeansPlusPlusClustererTest.java |   4 -
 .../MultiKMeansPlusPlusClustererTest.java          |   5 +-
 .../legacy/ode/ContinuousOutputFieldModelTest.java |   8 +-
 .../legacy/ode/ContinuousOutputModelTest.java      |   3 -
 .../math4/legacy/ode/FieldExpandableODETest.java   |   3 -
 .../math4/legacy/ode/FirstOrderConverterTest.java  |   3 -
 .../math4/legacy/ode/JacobianMatricesTest.java     |   5 -
 .../math4/legacy/ode/TestFieldProblem1.java        |   2 -
 .../math4/legacy/ode/TestFieldProblem2.java        |   2 -
 .../math4/legacy/ode/TestFieldProblem3.java        |   5 +-
 .../math4/legacy/ode/TestFieldProblem5.java        |   1 -
 .../math4/legacy/ode/TestFieldProblem6.java        |   3 -
 .../math4/legacy/ode/TestFieldProblemAbstract.java |   1 -
 .../math4/legacy/ode/TestFieldProblemHandler.java  |   1 -
 .../commons/math4/legacy/ode/TestProblem1.java     |   2 -
 .../commons/math4/legacy/ode/TestProblem2.java     |   2 -
 .../commons/math4/legacy/ode/TestProblem3.java     |   4 +-
 .../commons/math4/legacy/ode/TestProblem4.java     |   3 -
 .../commons/math4/legacy/ode/TestProblem5.java     |   1 -
 .../commons/math4/legacy/ode/TestProblem6.java     |   2 -
 .../math4/legacy/ode/TestProblemHandler.java       |   2 -
 .../math4/legacy/ode/events/CloseEventsTest.java   |   3 -
 .../math4/legacy/ode/events/EventFilterTest.java   |   9 --
 .../math4/legacy/ode/events/EventStateTest.java    |   5 -
 ...tractEmbeddedRungeKuttaFieldIntegratorTest.java |  13 --
 .../AbstractRungeKuttaFieldIntegratorTest.java     |  14 --
 .../AdamsBashforthFieldIntegratorTest.java         |   1 -
 .../ode/nonstiff/AdamsBashforthIntegratorTest.java |   9 --
 .../nonstiff/AdamsFieldIntegratorAbstractTest.java |   9 --
 .../nonstiff/AdamsMoultonFieldIntegratorTest.java  |   1 -
 .../ode/nonstiff/AdamsMoultonIntegratorTest.java   |   8 --
 .../nonstiff/AdamsNordsieckTransformerTest.java    |   4 -
 ...lassicalRungKuttaFieldStepInterpolatorTest.java |   1 -
 .../ClassicalRungeKuttaFieldIntegratorTest.java    |   2 -
 .../ClassicalRungeKuttaIntegratorTest.java         |   7 -
 .../ClassicalRungeKuttaStepInterpolatorTest.java   |   2 -
 .../DormandPrince54FieldIntegratorTest.java        |   1 -
 .../DormandPrince54FieldStepInterpolatorTest.java  |   1 -
 .../nonstiff/DormandPrince54IntegratorTest.java    |   8 --
 .../DormandPrince54StepInterpolatorTest.java       |   3 -
 .../DormandPrince853FieldIntegratorTest.java       |   1 -
 .../DormandPrince853FieldStepInterpolatorTest.java |   1 -
 .../nonstiff/DormandPrince853IntegratorTest.java   |  12 --
 .../DormandPrince853StepInterpolatorTest.java      |   3 -
 ...eddedRungeKuttaFieldIntegratorAbstractTest.java |  13 --
 .../ode/nonstiff/EulerFieldIntegratorTest.java     |   2 -
 .../nonstiff/EulerFieldStepInterpolatorTest.java   |   1 -
 .../legacy/ode/nonstiff/EulerIntegratorTest.java   |   6 -
 .../ode/nonstiff/EulerStepInterpolatorTest.java    |   6 -
 .../ode/nonstiff/GillFieldIntegratorTest.java      |   2 -
 .../nonstiff/GillFieldStepInterpolatorTest.java    |   1 -
 .../legacy/ode/nonstiff/GillIntegratorTest.java    |   6 -
 .../ode/nonstiff/GillStepInterpolatorTest.java     |   2 -
 .../nonstiff/GraggBulirschStoerIntegratorTest.java |  10 --
 .../GraggBulirschStoerStepInterpolatorTest.java    |   3 -
 .../nonstiff/HighamHall54FieldIntegratorTest.java  |   1 -
 .../HighamHall54FieldStepInterpolatorTest.java     |   1 -
 .../ode/nonstiff/HighamHall54IntegratorTest.java   |   9 --
 .../nonstiff/HighamHall54StepInterpolatorTest.java |   3 -
 .../ode/nonstiff/LutherFieldIntegratorTest.java    |   1 -
 .../nonstiff/LutherFieldStepInterpolatorTest.java  |   1 -
 .../legacy/ode/nonstiff/LutherIntegratorTest.java  |   5 -
 .../ode/nonstiff/LutherStepInterpolatorTest.java   |   2 -
 .../ode/nonstiff/MidpointFieldIntegratorTest.java  |   2 -
 .../MidpointFieldStepInterpolatorTest.java         |   1 -
 .../ode/nonstiff/MidpointIntegratorTest.java       |   6 -
 .../ode/nonstiff/MidpointStepInterpolatorTest.java |   2 -
 .../RungeKuttaFieldIntegratorAbstractTest.java     |  14 --
 ...ungeKuttaFieldStepInterpolatorAbstractTest.java |   8 --
 .../legacy/ode/nonstiff/StepFieldProblem.java      |   1 -
 .../math4/legacy/ode/nonstiff/StepProblem.java     |   1 -
 .../nonstiff/ThreeEighthesFieldIntegratorTest.java |   2 -
 .../ThreeEighthesFieldStepInterpolatorTest.java    |   1 -
 .../ode/nonstiff/ThreeEighthesIntegratorTest.java  |   7 -
 .../ThreeEighthesStepInterpolatorTest.java         |   2 -
 .../ode/sampling/DummyFieldStepInterpolator.java   |   1 -
 .../legacy/ode/sampling/DummyStepInterpolator.java |   3 -
 .../ode/sampling/DummyStepInterpolatorTest.java    |   4 -
 .../sampling/NordsieckStepInterpolatorTest.java    |   2 -
 .../ode/sampling/StepInterpolatorTestUtils.java    |   6 -
 .../ode/sampling/StepNormalizerOutputTestBase.java |   1 -
 .../legacy/ode/sampling/StepNormalizerTest.java    |   1 -
 .../math4/legacy/optim/SimplePointCheckerTest.java |   2 +-
 .../math4/legacy/optim/SimpleValueCheckerTest.java |   1 -
 .../legacy/optim/linear/SimplexSolverTest.java     |   2 -
 .../MultivariateFunctionMappingAdapterTest.java    |   1 -
 .../MultivariateFunctionPenaltyAdapterTest.java    |   3 +-
 .../NonLinearConjugateGradientOptimizerTest.java   |   6 -
 .../SimpleUnivariateValueCheckerTest.java          |   1 -
 .../legacy/random/SobolSequenceGeneratorTest.java  |   1 -
 .../commons/math4/legacy/stat/FrequencyTest.java   |   3 +-
 .../commons/math4/legacy/stat/StatUtilsTest.java   |   4 -
 .../legacy/stat/correlation/CovarianceTest.java    |   1 -
 .../stat/correlation/KendallsCorrelationTest.java  |   1 -
 .../correlation/SpearmansRankCorrelationTest.java  |   1 -
 .../stat/correlation/StorelessCovarianceTest.java  |   2 -
 .../AggregateSummaryStatisticsTest.java            |   3 -
 .../descriptive/DescriptiveStatisticsTest.java     |   4 -
 .../stat/descriptive/DoubleArrayAbstractTest.java  |   3 -
 .../MultivariateSummaryStatisticsTest.java         |   3 -
 .../stat/descriptive/ResizableDoubleArrayTest.java |   5 -
 .../StorelessUnivariateStatisticAbstractTest.java  |   3 -
 .../stat/descriptive/SummaryStatisticsTest.java    |   2 -
 .../UnivariateStatisticAbstractTest.java           |   2 -
 .../stat/descriptive/moment/FourthMomentTest.java  |   1 -
 .../stat/descriptive/moment/GeometricMeanTest.java |   1 -
 .../stat/descriptive/moment/InteractionTest.java   |   2 -
 .../stat/descriptive/moment/KurtosisTest.java      |   1 -
 .../legacy/stat/descriptive/moment/MeanTest.java   |   1 -
 .../stat/descriptive/moment/SecondMomentTest.java  |   1 -
 .../descriptive/moment/StandardDeviationTest.java  |   1 -
 .../stat/descriptive/moment/ThirdMomentTest.java   |   1 -
 .../stat/descriptive/moment/VarianceTest.java      |   2 -
 .../moment/VectorialCovarianceTest.java            |   1 -
 .../stat/descriptive/moment/VectorialMeanTest.java |   1 -
 .../legacy/stat/descriptive/rank/MaxTest.java      |   1 -
 .../legacy/stat/descriptive/rank/MinTest.java      |   1 -
 .../descriptive/rank/PSquarePercentileTest.java    |  12 +-
 .../stat/descriptive/rank/PercentileTest.java      |   3 -
 .../stat/descriptive/summary/ProductTest.java      |   1 -
 .../stat/descriptive/summary/SumLogTest.java       |   1 -
 .../legacy/stat/descriptive/summary/SumSqTest.java |   1 -
 .../legacy/stat/descriptive/summary/SumTest.java   |   1 -
 .../legacy/stat/inference/BinomialTestTest.java    |   1 -
 .../legacy/stat/inference/ChiSquareTestTest.java   |   1 -
 .../stat/inference/InferenceTestUtilsTest.java     |   2 -
 .../stat/inference/KolmogorovSmirnovTestTest.java  |   3 -
 .../legacy/stat/inference/OneWayAnovaTest.java     |   3 -
 .../math4/legacy/stat/inference/TTestTest.java     |   1 -
 .../stat/interval/AgrestiCoullIntervalTest.java    |   1 -
 .../interval/NormalApproximationIntervalTest.java  |   1 -
 .../legacy/stat/ranking/NaturalRankingTest.java    |   1 -
 .../GLSMultipleLinearRegressionTest.java           |   1 -
 .../regression/MillerUpdatingRegressionTest.java   |   3 -
 .../MultipleLinearRegressionAbstractTest.java      |   1 -
 .../OLSMultipleLinearRegressionTest.java           |   2 -
 .../stat/regression/SimpleRegressionTest.java      |   3 -
 .../math4/legacy/util/CombinatoricsUtilsTest.java  |   1 -
 .../apache/commons/math4/legacy/util/TestBean.java |   1 -
 .../RealFunctionValidation.java                    |   1 -
 commons-math-neuralnet/pom.xml                     |   3 +-
 .../apache/commons/math4/neuralnet/Network.java    |   2 +-
 commons-math-transform/pom.xml                     |   3 +-
 pom.xml                                            | 150 +++++++--------------
 src/changes/changes.xml                            |  92 ++++++-------
 .../resources/checkstyle/checkstyle-legacy.xml     |   2 +-
 .../checkstyle/checkstyle-suppressions-legacy.xml  |  15 +++
 src/site/site.xml                                  |   4 +-
 src/site/xdoc/developers.xml                       |  32 ++---
 src/site/xdoc/index.xml                            |   4 +-
 src/site/xdoc/mail-lists.xml                       |  12 +-
 src/site/xdoc/proposal.xml                         |  30 ++---
 src/site/xdoc/userguide/analysis.xml               |  14 +-
 src/site/xdoc/userguide/complex.xml                |   2 +-
 src/site/xdoc/userguide/exceptions.xml             |   2 +-
 src/site/xdoc/userguide/filter.xml                 |  30 ++---
 src/site/xdoc/userguide/fraction.xml               |   6 +-
 src/site/xdoc/userguide/genetics.xml               |  28 ++--
 src/site/xdoc/userguide/geometry.xml               |   2 +-
 src/site/xdoc/userguide/index.xml                  |  36 ++---
 src/site/xdoc/userguide/linear.xml                 |  14 +-
 src/site/xdoc/userguide/ml.xml                     |  24 ++--
 src/site/xdoc/userguide/ode.xml                    |   4 +-
 src/site/xdoc/userguide/optimization.xml           |   2 +-
 src/site/xdoc/userguide/overview.xml               |  30 ++---
 src/site/xdoc/userguide/random.xml                 |   4 +-
 src/site/xdoc/userguide/special.xml                |   6 +-
 src/site/xdoc/userguide/stat.xml                   |  78 +++++------
 src/site/xdoc/userguide/transform.xml              |   2 +-
 src/site/xdoc/userguide/utilities.xml              |  28 ++--
 .../userguide/ClusterAlgorithmComparison.java      |  67 +++++----
 .../commons/math4/userguide/ExampleUtils.java      |  11 +-
 .../math4/userguide/FastMathTestPerformance.java   |   6 +-
 .../LowDiscrepancyGeneratorComparison.java         |  50 +++----
 .../math4/userguide/filter/CannonballExample.java  |  62 ++++-----
 .../userguide/filter/ConstantVoltageExample.java   |  48 ++++---
 .../userguide/genetics/HelloWorldExample.java      |  23 ++--
 .../userguide/genetics/ImageEvolutionExample.java  |  23 ++--
 .../commons/math4/userguide/genetics/Polygon.java  |  14 +-
 .../userguide/genetics/PolygonChromosome.java      |   7 +-
 .../userguide/genetics/RandomPolygonMutation.java  |   6 +-
 src/userguide/pom.xml                              |   6 +-
 587 files changed, 710 insertions(+), 2302 deletions(-)
 delete mode 100644 .travis.yml


[commons-math] 16/23: Drop surefire 3.0.0-M5 for 3.0.0-M7 in commons parent

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit b7988729bd29d7d24910e6261b65464708773a80
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Oct 13 13:01:07 2022 +0100

    Drop surefire 3.0.0-M5 for 3.0.0-M7 in commons parent
---
 pom.xml | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/pom.xml b/pom.xml
index 469c0aad1..a6dfe9e9f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -65,7 +65,6 @@
     <math.commons.geometry.version>1.0</math.commons.geometry.version>
     <math.commons.statistics.version>1.0-SNAPSHOT</math.commons.statistics.version>
     <math.commons.math3.version>3.6.1</math.commons.math3.version>
-    <math.surefire.version>3.0.0-M5</math.surefire.version>
     <!-- Workaround to avoid duplicating config files. -->
     <math.parent.dir>${basedir}</math.parent.dir>
     <!-- Multi-module support fixed in commons-parent 55 -->
@@ -444,19 +443,6 @@
         </configuration>
       </plugin>
     </plugins>
-
-    <pluginManagement>
-
-      <plugins>
-
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-surefire-plugin</artifactId>
-          <version>${math.surefire.version}</version>
-        </plugin>
-
-      </plugins>
-    </pluginManagement>
   </build>
 
   <reporting>


[commons-math] 04/23: Formatting. Remove empty lines before closing curly bracket.

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit 93e3ee4b78a7df17d196ca441a37815524ea4d36
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Oct 13 11:04:55 2022 +0100

    Formatting. Remove empty lines before closing curly bracket.
---
 .../commons/math4/core/jdkmath/AccurateMath.java   | 16 --------
 .../apache/commons/math4/legacy/core/Field.java    |  1 -
 .../apache/commons/math4/legacy/core/dfp/Dfp.java  | 10 -----
 .../commons/math4/legacy/core/dfp/DfpDec.java      |  2 -
 .../commons/math4/legacy/core/dfp/DfpField.java    |  8 ----
 .../commons/math4/legacy/core/dfp/DfpMath.java     | 11 -----
 .../core/ExtendedFieldElementAbstractTest.java     |  1 -
 .../commons/math4/legacy/core/MathArraysTest.java  |  1 -
 .../commons/math4/legacy/core/dfp/Decimal10.java   |  1 -
 .../commons/math4/legacy/core/dfp/DfpDecTest.java  |  1 -
 .../commons/math4/legacy/core/dfp/DfpMathTest.java |  1 -
 .../commons/math4/legacy/core/dfp/DfpTest.java     |  1 -
 .../legacy/core/jdkmath/AccurateMathTest.java      |  4 --
 .../legacy/exception/MathArithmeticException.java  |  1 -
 .../exception/MathIllegalArgumentException.java    |  1 -
 .../exception/MathIllegalStateException.java       |  1 -
 .../MathUnsupportedOperationException.java         |  1 -
 .../legacy/exception/NotANumberException.java      |  1 -
 .../legacy/exception/util/DummyLocalizable.java    |  1 -
 .../exception/util/ExceptionContextProvider.java   |  1 -
 .../exception/util/LocalizedFormatsTest.java       |  3 --
 .../math4/legacy/analysis/FunctionUtils.java       |  9 ----
 .../analysis/MultivariateMatrixFunction.java       |  1 -
 .../analysis/MultivariateVectorFunction.java       |  1 -
 .../legacy/analysis/UnivariateMatrixFunction.java  |  1 -
 .../legacy/analysis/UnivariateVectorFunction.java  |  1 -
 .../analysis/differentiation/DSCompiler.java       | 48 ----------------------
 .../differentiation/DerivativeStructure.java       |  9 ----
 .../FiniteDifferencesDifferentiator.java           | 10 -----
 .../analysis/differentiation/GradientFunction.java |  2 -
 .../analysis/differentiation/JacobianFunction.java |  2 -
 .../MultivariateDifferentiableVectorFunction.java  |  1 -
 .../analysis/differentiation/SparseGradient.java   |  9 ----
 .../UnivariateDifferentiableMatrixFunction.java    |  1 -
 .../UnivariateDifferentiableVectorFunction.java    |  1 -
 .../UnivariateFunctionDifferentiator.java          |  1 -
 .../UnivariateMatrixFunctionDifferentiator.java    |  1 -
 .../UnivariateVectorFunctionDifferentiator.java    |  1 -
 .../math4/legacy/analysis/function/Acos.java       |  1 -
 .../math4/legacy/analysis/function/Acosh.java      |  1 -
 .../math4/legacy/analysis/function/Asin.java       |  1 -
 .../math4/legacy/analysis/function/Asinh.java      |  1 -
 .../math4/legacy/analysis/function/Atan.java       |  1 -
 .../math4/legacy/analysis/function/Atanh.java      |  1 -
 .../math4/legacy/analysis/function/Cbrt.java       |  1 -
 .../math4/legacy/analysis/function/Constant.java   |  1 -
 .../math4/legacy/analysis/function/Cos.java        |  1 -
 .../math4/legacy/analysis/function/Cosh.java       |  1 -
 .../math4/legacy/analysis/function/Exp.java        |  1 -
 .../math4/legacy/analysis/function/Expm1.java      |  1 -
 .../math4/legacy/analysis/function/Gaussian.java   |  3 --
 .../analysis/function/HarmonicOscillator.java      |  2 -
 .../math4/legacy/analysis/function/Identity.java   |  1 -
 .../math4/legacy/analysis/function/Inverse.java    |  1 -
 .../math4/legacy/analysis/function/Log.java        |  1 -
 .../math4/legacy/analysis/function/Log10.java      |  1 -
 .../math4/legacy/analysis/function/Log1p.java      |  1 -
 .../math4/legacy/analysis/function/Logistic.java   |  1 -
 .../math4/legacy/analysis/function/Logit.java      |  1 -
 .../math4/legacy/analysis/function/Minus.java      |  1 -
 .../math4/legacy/analysis/function/Power.java      |  1 -
 .../math4/legacy/analysis/function/Sigmoid.java    |  5 ---
 .../math4/legacy/analysis/function/Sin.java        |  1 -
 .../math4/legacy/analysis/function/Sinc.java       |  6 ---
 .../math4/legacy/analysis/function/Sinh.java       |  1 -
 .../math4/legacy/analysis/function/Sqrt.java       |  1 -
 .../math4/legacy/analysis/function/Tan.java        |  1 -
 .../math4/legacy/analysis/function/Tanh.java       |  1 -
 .../analysis/integration/MidPointIntegrator.java   |  2 -
 .../analysis/integration/RombergIntegrator.java    |  2 -
 .../analysis/integration/UnivariateIntegrator.java |  1 -
 .../interpolation/AkimaSplineInterpolator.java     |  1 -
 .../BicubicInterpolatingFunction.java              |  2 -
 .../interpolation/FieldHermiteInterpolator.java    |  5 ---
 .../interpolation/HermiteInterpolator.java         |  6 ---
 .../polynomials/PolynomialFunctionNewtonForm.java  |  2 -
 .../analysis/polynomials/PolynomialsUtils.java     |  8 ----
 .../legacy/analysis/solvers/AllowedSolution.java   |  1 -
 .../legacy/analysis/solvers/BaseSecantSolver.java  |  1 -
 .../BracketedRealFieldUnivariateSolver.java        |  1 -
 .../solvers/BracketedUnivariateSolver.java         |  1 -
 .../solvers/BracketingNthOrderBrentSolver.java     | 11 -----
 .../FieldBracketingNthOrderBrentSolver.java        | 11 -----
 .../legacy/analysis/solvers/SecantSolver.java      |  1 -
 .../analysis/solvers/UnivariateSolverUtils.java    |  4 --
 .../distribution/EnumeratedRealDistribution.java   |  1 -
 ...ariateNormalMixtureExpectationMaximization.java |  1 -
 .../leastsquares/DenseWeightedEvaluation.java      |  1 -
 .../fitting/leastsquares/EvaluationRmsChecker.java |  1 -
 .../fitting/leastsquares/GaussNewtonOptimizer.java |  1 -
 .../leastsquares/LeastSquaresOptimizer.java        |  2 -
 .../leastsquares/MultivariateJacobianFunction.java |  1 -
 .../math4/legacy/genetics/BinaryMutation.java      |  1 -
 .../commons/math4/legacy/genetics/Chromosome.java  |  1 -
 .../legacy/genetics/ElitisticListPopulation.java   |  1 -
 .../commons/math4/legacy/genetics/Fitness.java     |  1 -
 .../legacy/genetics/FixedGenerationCount.java      |  1 -
 .../math4/legacy/genetics/GeneticAlgorithm.java    |  1 -
 .../genetics/InvalidRepresentationException.java   |  1 -
 .../math4/legacy/genetics/OnePointCrossover.java   |  1 -
 .../legacy/genetics/PermutationChromosome.java     |  1 -
 .../math4/legacy/genetics/RandomKeyMutation.java   |  1 -
 .../math4/legacy/genetics/TournamentSelection.java |  1 -
 .../math4/legacy/linear/AbstractFieldMatrix.java   | 15 -------
 .../math4/legacy/linear/AbstractRealMatrix.java    |  3 --
 .../math4/legacy/linear/Array2DRowFieldMatrix.java |  3 --
 .../math4/legacy/linear/Array2DRowRealMatrix.java  |  2 -
 .../math4/legacy/linear/ArrayFieldVector.java      |  1 -
 .../math4/legacy/linear/BiDiagonalTransformer.java |  7 ----
 .../commons/math4/legacy/linear/BigRealField.java  |  1 -
 .../math4/legacy/linear/BlockFieldMatrix.java      |  5 ---
 .../math4/legacy/linear/BlockRealMatrix.java       |  1 -
 .../math4/legacy/linear/EigenDecomposition.java    |  1 -
 .../math4/legacy/linear/FieldLUDecomposition.java  |  2 -
 .../commons/math4/legacy/linear/FieldVector.java   |  1 -
 .../commons/math4/legacy/linear/MatrixUtils.java   |  3 --
 .../legacy/linear/OpenIntToDoubleHashMap.java      | 11 -----
 .../math4/legacy/linear/OpenIntToFieldHashMap.java | 11 -----
 .../math4/legacy/linear/OpenMapRealMatrix.java     |  2 -
 .../math4/legacy/linear/OpenMapRealVector.java     |  1 -
 .../math4/legacy/linear/QRDecomposition.java       |  1 -
 .../math4/legacy/linear/RealMatrixFormat.java      |  1 -
 .../math4/legacy/linear/RealVectorFormat.java      |  1 -
 .../linear/RectangularCholeskyDecomposition.java   |  3 --
 .../legacy/linear/SingularValueDecomposition.java  |  2 -
 .../math4/legacy/linear/SparseFieldMatrix.java     |  1 -
 .../math4/legacy/linear/SparseFieldVector.java     |  1 -
 .../math4/legacy/linear/SparseRealMatrix.java      |  1 -
 .../legacy/ml/clustering/CentroidCluster.java      |  1 -
 .../math4/legacy/ml/clustering/DoublePoint.java    |  1 -
 .../legacy/ml/clustering/FuzzyKMeansClusterer.java |  1 -
 .../ml/clustering/KMeansPlusPlusClusterer.java     |  8 ----
 .../math4/legacy/ode/AbstractFieldIntegrator.java  |  6 ---
 .../math4/legacy/ode/AbstractIntegrator.java       |  7 ----
 .../math4/legacy/ode/AbstractParameterizable.java  |  1 -
 .../legacy/ode/ContinuousOutputFieldModel.java     |  6 ---
 .../math4/legacy/ode/ContinuousOutputModel.java    |  6 ---
 .../commons/math4/legacy/ode/EquationsMapper.java  |  1 -
 .../math4/legacy/ode/ExpandableStatefulODE.java    |  8 ----
 .../math4/legacy/ode/FieldEquationsMapper.java     |  1 -
 .../math4/legacy/ode/FieldExpandableODE.java       |  4 --
 .../commons/math4/legacy/ode/FieldODEState.java    |  2 -
 .../legacy/ode/FieldODEStateAndDerivative.java     |  1 -
 .../math4/legacy/ode/FieldSecondaryEquations.java  |  1 -
 .../math4/legacy/ode/FirstOrderConverter.java      |  2 -
 .../ode/FirstOrderDifferentialEquations.java       |  1 -
 .../ode/FirstOrderFieldDifferentialEquations.java  |  1 -
 .../legacy/ode/FirstOrderFieldIntegrator.java      |  1 -
 .../math4/legacy/ode/FirstOrderIntegrator.java     |  1 -
 .../commons/math4/legacy/ode/JacobianMatrices.java | 11 -----
 .../legacy/ode/MainStateJacobianProvider.java      |  1 -
 .../math4/legacy/ode/MultistepFieldIntegrator.java | 11 -----
 .../math4/legacy/ode/MultistepIntegrator.java      | 11 -----
 .../commons/math4/legacy/ode/ODEIntegrator.java    |  1 -
 .../math4/legacy/ode/ParameterConfiguration.java   |  1 -
 .../legacy/ode/ParameterJacobianProvider.java      |  1 -
 .../math4/legacy/ode/ParameterJacobianWrapper.java |  2 -
 .../commons/math4/legacy/ode/Parameterizable.java  |  1 -
 .../commons/math4/legacy/ode/ParameterizedODE.java |  1 -
 .../math4/legacy/ode/ParameterizedWrapper.java     |  1 -
 .../ode/SecondOrderDifferentialEquations.java      |  1 -
 .../math4/legacy/ode/SecondOrderIntegrator.java    |  1 -
 .../math4/legacy/ode/SecondaryEquations.java       |  1 -
 .../legacy/ode/UnknownParameterException.java      |  1 -
 .../commons/math4/legacy/ode/events/Action.java    |  1 -
 .../math4/legacy/ode/events/EventFilter.java       |  7 ----
 .../math4/legacy/ode/events/EventHandler.java      |  2 -
 .../math4/legacy/ode/events/EventState.java        | 10 -----
 .../math4/legacy/ode/events/FieldEventHandler.java |  1 -
 .../math4/legacy/ode/events/FieldEventState.java   |  7 ----
 .../math4/legacy/ode/events/FilterType.java        |  3 --
 .../math4/legacy/ode/events/Transformer.java       |  1 -
 .../nonstiff/AdamsBashforthFieldIntegrator.java    |  7 ----
 .../ode/nonstiff/AdamsBashforthIntegrator.java     |  7 ----
 .../legacy/ode/nonstiff/AdamsFieldIntegrator.java  |  1 -
 .../ode/nonstiff/AdamsFieldStepInterpolator.java   |  3 --
 .../math4/legacy/ode/nonstiff/AdamsIntegrator.java |  1 -
 .../ode/nonstiff/AdamsMoultonFieldIntegrator.java  |  5 ---
 .../ode/nonstiff/AdamsMoultonIntegrator.java       |  5 ---
 .../nonstiff/AdamsNordsieckFieldTransformer.java   |  6 ---
 .../ode/nonstiff/AdamsNordsieckTransformer.java    |  3 --
 .../nonstiff/AdaptiveStepsizeFieldIntegrator.java  |  8 ----
 .../ode/nonstiff/AdaptiveStepsizeIntegrator.java   |  8 ----
 .../ClassicalRungeKuttaFieldIntegrator.java        |  1 -
 .../ClassicalRungeKuttaFieldStepInterpolator.java  |  2 -
 .../nonstiff/ClassicalRungeKuttaIntegrator.java    |  1 -
 .../ClassicalRungeKuttaStepInterpolator.java       |  2 -
 .../nonstiff/DormandPrince54FieldIntegrator.java   |  3 --
 .../DormandPrince54FieldStepInterpolator.java      |  2 -
 .../ode/nonstiff/DormandPrince54Integrator.java    |  3 --
 .../nonstiff/DormandPrince54StepInterpolator.java  |  6 ---
 .../nonstiff/DormandPrince853FieldIntegrator.java  |  4 --
 .../DormandPrince853FieldStepInterpolator.java     |  3 --
 .../ode/nonstiff/DormandPrince853Integrator.java   |  3 --
 .../nonstiff/DormandPrince853StepInterpolator.java | 11 -----
 .../EmbeddedRungeKuttaFieldIntegrator.java         |  8 ----
 .../ode/nonstiff/EmbeddedRungeKuttaIntegrator.java |  8 ----
 .../legacy/ode/nonstiff/EulerFieldIntegrator.java  |  1 -
 .../ode/nonstiff/EulerFieldStepInterpolator.java   |  2 -
 .../math4/legacy/ode/nonstiff/EulerIntegrator.java |  1 -
 .../legacy/ode/nonstiff/EulerStepInterpolator.java |  2 -
 .../ode/nonstiff/FieldButcherArrayProvider.java    |  1 -
 .../legacy/ode/nonstiff/GillFieldIntegrator.java   |  2 -
 .../ode/nonstiff/GillFieldStepInterpolator.java    |  2 -
 .../math4/legacy/ode/nonstiff/GillIntegrator.java  |  1 -
 .../legacy/ode/nonstiff/GillStepInterpolator.java  |  2 -
 .../ode/nonstiff/GraggBulirschStoerIntegrator.java | 22 ----------
 .../GraggBulirschStoerStepInterpolator.java        | 11 -----
 .../ode/nonstiff/HighamHall54FieldIntegrator.java  |  3 --
 .../HighamHall54FieldStepInterpolator.java         |  2 -
 .../ode/nonstiff/HighamHall54Integrator.java       |  3 --
 .../ode/nonstiff/HighamHall54StepInterpolator.java |  2 -
 .../legacy/ode/nonstiff/LutherFieldIntegrator.java |  2 -
 .../ode/nonstiff/LutherFieldStepInterpolator.java  |  2 -
 .../legacy/ode/nonstiff/LutherIntegrator.java      |  1 -
 .../ode/nonstiff/LutherStepInterpolator.java       |  2 -
 .../ode/nonstiff/MidpointFieldIntegrator.java      |  1 -
 .../nonstiff/MidpointFieldStepInterpolator.java    |  2 -
 .../legacy/ode/nonstiff/MidpointIntegrator.java    |  1 -
 .../ode/nonstiff/MidpointStepInterpolator.java     |  2 -
 .../ode/nonstiff/RungeKuttaFieldIntegrator.java    |  6 ---
 .../nonstiff/RungeKuttaFieldStepInterpolator.java  |  1 -
 .../legacy/ode/nonstiff/RungeKuttaIntegrator.java  |  6 ---
 .../ode/nonstiff/RungeKuttaStepInterpolator.java   |  5 ---
 .../ode/nonstiff/ThreeEighthesFieldIntegrator.java |  1 -
 .../ThreeEighthesFieldStepInterpolator.java        |  2 -
 .../ode/nonstiff/ThreeEighthesIntegrator.java      |  1 -
 .../nonstiff/ThreeEighthesStepInterpolator.java    |  4 --
 .../sampling/AbstractFieldStepInterpolator.java    |  1 -
 .../ode/sampling/AbstractStepInterpolator.java     |  8 ----
 .../legacy/ode/sampling/DummyStepHandler.java      |  1 -
 .../legacy/ode/sampling/FieldFixedStepHandler.java |  1 -
 .../legacy/ode/sampling/FieldStepHandler.java      |  1 -
 .../legacy/ode/sampling/FieldStepInterpolator.java |  1 -
 .../legacy/ode/sampling/FieldStepNormalizer.java   |  2 -
 .../legacy/ode/sampling/FixedStepHandler.java      |  1 -
 .../ode/sampling/NordsieckStepInterpolator.java    |  6 ---
 .../math4/legacy/ode/sampling/StepHandler.java     |  1 -
 .../legacy/ode/sampling/StepInterpolator.java      |  1 -
 .../math4/legacy/ode/sampling/StepNormalizer.java  |  1 -
 .../legacy/optim/AbstractOptimizationProblem.java  |  1 -
 .../scalar/MultivariateFunctionMappingAdapter.java |  2 -
 .../nonlinear/scalar/noderiv/BOBYQAOptimizer.java  |  9 ----
 .../legacy/random/SobolSequenceGenerator.java      |  1 -
 .../commons/math4/legacy/stat/Frequency.java       |  1 -
 .../commons/math4/legacy/stat/StatUtils.java       |  1 -
 .../stat/correlation/SpearmansCorrelation.java     |  1 -
 .../stat/correlation/StorelessCovariance.java      |  2 -
 .../AbstractStorelessUnivariateStatistic.java      |  1 -
 .../descriptive/AbstractUnivariateStatistic.java   |  1 -
 .../math4/legacy/stat/descriptive/DoubleArray.java |  1 -
 .../descriptive/MultivariateSummaryStatistics.java |  1 -
 .../stat/descriptive/ResizableDoubleArray.java     |  1 -
 .../StatisticalMultivariateSummary.java            |  1 -
 .../stat/descriptive/StatisticalSummary.java       |  1 -
 .../descriptive/StorelessUnivariateStatistic.java  |  1 -
 .../descriptive/SynchronizedSummaryStatistics.java |  1 -
 .../stat/descriptive/WeightedEvaluation.java       |  1 -
 .../stat/descriptive/moment/GeometricMean.java     |  1 -
 .../legacy/stat/descriptive/moment/Kurtosis.java   |  1 -
 .../stat/descriptive/moment/SecondMoment.java      |  1 -
 .../stat/descriptive/moment/StandardDeviation.java |  1 -
 .../stat/descriptive/moment/ThirdMoment.java       |  1 -
 .../descriptive/moment/VectorialCovariance.java    |  2 -
 .../stat/descriptive/moment/VectorialMean.java     |  1 -
 .../math4/legacy/stat/descriptive/rank/Median.java |  1 -
 .../rank/MedianOf3PivotingStrategy.java            |  1 -
 .../stat/descriptive/rank/PSquarePercentile.java   |  1 -
 .../legacy/stat/descriptive/rank/Percentile.java   |  1 -
 .../legacy/stat/descriptive/summary/Product.java   |  1 -
 .../math4/legacy/stat/descriptive/summary/Sum.java |  1 -
 .../stat/descriptive/summary/SumOfSquares.java     |  1 -
 .../math4/legacy/stat/inference/ChiSquareTest.java |  9 ----
 .../legacy/stat/inference/InferenceTestUtils.java  |  1 -
 .../math4/legacy/stat/inference/OneWayAnova.java   |  7 ----
 .../commons/math4/legacy/stat/inference/TTest.java | 27 ------------
 .../legacy/stat/interval/AgrestiCoullInterval.java |  1 -
 .../stat/interval/BinomialConfidenceInterval.java  |  1 -
 .../math4/legacy/stat/interval/IntervalUtils.java  |  1 -
 .../stat/interval/NormalApproximationInterval.java |  1 -
 .../math4/legacy/stat/ranking/NaturalRanking.java  |  1 -
 .../AbstractMultipleLinearRegression.java          |  2 -
 .../regression/GLSMultipleLinearRegression.java    |  2 -
 .../stat/regression/MillerUpdatingRegression.java  |  1 -
 .../stat/regression/MultipleLinearRegression.java  |  1 -
 .../regression/OLSMultipleLinearRegression.java    |  1 -
 .../legacy/stat/regression/SimpleRegression.java   |  1 -
 .../math4/legacy/util/CombinatoricsUtils.java      |  1 -
 .../commons/math4/legacy/util/ComplexFormat.java   |  1 -
 .../math4/legacy/analysis/FunctionUtilsTest.java   |  5 ---
 .../math4/legacy/analysis/MonitoredFunction.java   |  1 -
 .../math4/legacy/analysis/QuinticFunction.java     |  1 -
 .../math4/legacy/analysis/SumSincFunction.java     |  1 -
 .../math4/legacy/analysis/XMinus5Function.java     |  1 -
 .../analysis/differentiation/DSCompilerTest.java   |  3 --
 .../differentiation/DerivativeStructureTest.java   | 22 ----------
 .../FiniteDifferencesDifferentiatorTest.java       |  8 ----
 .../differentiation/GradientFunctionTest.java      |  2 -
 .../differentiation/JacobianFunctionTest.java      |  2 -
 .../differentiation/SparseGradientTest.java        | 20 ---------
 .../analysis/function/BivariateFunctionTest.java   |  1 -
 .../math4/legacy/analysis/function/SqrtTest.java   |  1 -
 .../UnivariateDifferentiableFunctionTest.java      |  1 -
 .../analysis/function/UnivariateFunctionTest.java  |  1 -
 .../IterativeLegendreGaussIntegratorTest.java      |  2 -
 .../integration/MidPointIntegratorTest.java        |  3 --
 .../integration/TrapezoidIntegratorTest.java       |  1 -
 .../FieldHermiteInterpolatorTest.java              |  4 --
 .../interpolation/HermiteInterpolatorTest.java     |  3 --
 .../PolynomialFunctionNewtonFormTest.java          |  1 -
 .../analysis/polynomials/PolynomialsUtilsTest.java |  8 ----
 .../solvers/BaseSecantSolverAbstractTest.java      |  1 -
 .../solvers/BracketingNthOrderBrentSolverTest.java |  2 -
 .../legacy/analysis/solvers/BrentSolverTest.java   |  1 -
 .../FieldBracketingNthOrderBrentSolverTest.java    |  2 -
 .../field/ExtendedFieldElementAbstractTest.java    |  1 -
 .../leastsquares/EvaluationRmsCheckerTest.java     |  1 -
 .../GaussNewtonOptimizerWithCholeskyTest.java      |  1 -
 .../GaussNewtonOptimizerWithLUTest.java            |  1 -
 .../GaussNewtonOptimizerWithQRTest.java            |  1 -
 .../LevenbergMarquardtOptimizerTest.java           |  1 -
 .../legacy/genetics/BinaryChromosomeTest.java      |  1 -
 .../math4/legacy/genetics/BinaryMutationTest.java  |  1 -
 .../math4/legacy/genetics/ChromosomeTest.java      |  1 -
 .../legacy/genetics/DummyBinaryChromosome.java     |  1 -
 .../math4/legacy/genetics/DummyRandomKey.java      |  1 -
 .../genetics/ElitisticListPopulationTest.java      |  1 -
 .../legacy/genetics/FixedGenerationCountTest.java  |  1 -
 .../genetics/GeneticAlgorithmTestBinary.java       |  2 -
 .../math4/legacy/genetics/ListPopulationTest.java  |  1 -
 .../math4/legacy/genetics/NPointCrossoverTest.java |  1 -
 .../legacy/genetics/OnePointCrossoverTest.java     |  1 -
 .../legacy/genetics/RandomKeyMutationTest.java     |  1 -
 .../math4/legacy/genetics/RandomKeyTest.java       |  1 -
 .../legacy/genetics/TournamentSelectionTest.java   |  1 -
 .../math4/legacy/linear/ArrayFieldVectorTest.java  |  7 ----
 .../math4/legacy/linear/ArrayRealVectorTest.java   |  1 -
 .../legacy/linear/BiDiagonalTransformerTest.java   |  4 --
 .../math4/legacy/linear/BigRealFieldTest.java      |  1 -
 .../commons/math4/legacy/linear/BigRealTest.java   |  1 -
 .../math4/legacy/linear/BlockFieldMatrixTest.java  |  9 ----
 .../math4/legacy/linear/BlockRealMatrixTest.java   |  4 --
 .../legacy/linear/CholeskyDecompositionTest.java   |  1 -
 .../math4/legacy/linear/CholeskySolverTest.java    |  2 -
 .../math4/legacy/linear/DiagonalMatrixTest.java    |  2 -
 .../legacy/linear/EigenDecompositionTest.java      |  6 ---
 .../legacy/linear/FieldLUDecompositionTest.java    |  4 --
 .../math4/legacy/linear/FieldMatrixImplTest.java   |  2 -
 .../math4/legacy/linear/LUDecompositionTest.java   |  4 --
 .../legacy/linear/OpenIntToDoubleHashMapTest.java  |  2 -
 .../math4/legacy/linear/OpenIntToFieldTest.java    |  1 -
 .../math4/legacy/linear/QRDecompositionTest.java   |  7 ----
 .../commons/math4/legacy/linear/QRSolverTest.java  |  3 --
 .../math4/legacy/linear/RRQRDecompositionTest.java |  5 ---
 .../math4/legacy/linear/RRQRSolverTest.java        |  6 ---
 .../legacy/linear/RealVectorAbstractTest.java      |  3 --
 .../RectangularCholeskyDecompositionTest.java      |  4 --
 .../linear/SingularValueDecompositionTest.java     |  6 ---
 .../legacy/linear/SingularValueSolverTest.java     |  2 -
 .../math4/legacy/linear/SparseFieldMatrixTest.java |  2 -
 .../math4/legacy/linear/SparseFieldVectorTest.java |  4 --
 .../math4/legacy/linear/SparseRealMatrixTest.java  |  2 -
 .../math4/legacy/linear/SparseRealVectorTest.java  |  2 -
 .../linear/UnmodifiableRealVectorAbstractTest.java |  1 -
 .../legacy/ml/clustering/DBSCANClustererTest.java  |  2 -
 .../ml/clustering/FuzzyKMeansClustererTest.java    |  1 -
 .../ml/clustering/KMeansPlusPlusClustererTest.java |  4 --
 .../MultiKMeansPlusPlusClustererTest.java          |  3 --
 .../legacy/ode/ContinuousOutputFieldModelTest.java |  4 --
 .../legacy/ode/ContinuousOutputModelTest.java      |  3 --
 .../math4/legacy/ode/FieldExpandableODETest.java   |  3 --
 .../math4/legacy/ode/FirstOrderConverterTest.java  |  3 --
 .../math4/legacy/ode/JacobianMatricesTest.java     |  5 ---
 .../math4/legacy/ode/TestFieldProblem1.java        |  2 -
 .../math4/legacy/ode/TestFieldProblem2.java        |  2 -
 .../math4/legacy/ode/TestFieldProblem3.java        |  3 --
 .../math4/legacy/ode/TestFieldProblem5.java        |  1 -
 .../math4/legacy/ode/TestFieldProblem6.java        |  3 --
 .../math4/legacy/ode/TestFieldProblemAbstract.java |  1 -
 .../math4/legacy/ode/TestFieldProblemHandler.java  |  1 -
 .../commons/math4/legacy/ode/TestProblem1.java     |  2 -
 .../commons/math4/legacy/ode/TestProblem2.java     |  2 -
 .../commons/math4/legacy/ode/TestProblem3.java     |  2 -
 .../commons/math4/legacy/ode/TestProblem4.java     |  3 --
 .../commons/math4/legacy/ode/TestProblem5.java     |  1 -
 .../commons/math4/legacy/ode/TestProblem6.java     |  2 -
 .../math4/legacy/ode/TestProblemHandler.java       |  2 -
 .../math4/legacy/ode/events/CloseEventsTest.java   |  3 --
 .../math4/legacy/ode/events/EventFilterTest.java   |  9 ----
 .../math4/legacy/ode/events/EventStateTest.java    |  5 ---
 ...tractEmbeddedRungeKuttaFieldIntegratorTest.java | 13 ------
 .../AbstractRungeKuttaFieldIntegratorTest.java     | 14 -------
 .../AdamsBashforthFieldIntegratorTest.java         |  1 -
 .../ode/nonstiff/AdamsBashforthIntegratorTest.java |  9 ----
 .../nonstiff/AdamsFieldIntegratorAbstractTest.java |  9 ----
 .../nonstiff/AdamsMoultonFieldIntegratorTest.java  |  1 -
 .../ode/nonstiff/AdamsMoultonIntegratorTest.java   |  8 ----
 .../nonstiff/AdamsNordsieckTransformerTest.java    |  4 --
 ...lassicalRungKuttaFieldStepInterpolatorTest.java |  1 -
 .../ClassicalRungeKuttaFieldIntegratorTest.java    |  2 -
 .../ClassicalRungeKuttaIntegratorTest.java         |  7 ----
 .../ClassicalRungeKuttaStepInterpolatorTest.java   |  2 -
 .../DormandPrince54FieldIntegratorTest.java        |  1 -
 .../DormandPrince54FieldStepInterpolatorTest.java  |  1 -
 .../nonstiff/DormandPrince54IntegratorTest.java    |  8 ----
 .../DormandPrince54StepInterpolatorTest.java       |  3 --
 .../DormandPrince853FieldIntegratorTest.java       |  1 -
 .../DormandPrince853FieldStepInterpolatorTest.java |  1 -
 .../nonstiff/DormandPrince853IntegratorTest.java   | 12 ------
 .../DormandPrince853StepInterpolatorTest.java      |  3 --
 ...eddedRungeKuttaFieldIntegratorAbstractTest.java | 13 ------
 .../ode/nonstiff/EulerFieldIntegratorTest.java     |  2 -
 .../nonstiff/EulerFieldStepInterpolatorTest.java   |  1 -
 .../legacy/ode/nonstiff/EulerIntegratorTest.java   |  6 ---
 .../ode/nonstiff/EulerStepInterpolatorTest.java    |  6 ---
 .../ode/nonstiff/GillFieldIntegratorTest.java      |  2 -
 .../nonstiff/GillFieldStepInterpolatorTest.java    |  1 -
 .../legacy/ode/nonstiff/GillIntegratorTest.java    |  6 ---
 .../ode/nonstiff/GillStepInterpolatorTest.java     |  2 -
 .../nonstiff/GraggBulirschStoerIntegratorTest.java | 10 -----
 .../GraggBulirschStoerStepInterpolatorTest.java    |  3 --
 .../nonstiff/HighamHall54FieldIntegratorTest.java  |  1 -
 .../HighamHall54FieldStepInterpolatorTest.java     |  1 -
 .../ode/nonstiff/HighamHall54IntegratorTest.java   |  9 ----
 .../nonstiff/HighamHall54StepInterpolatorTest.java |  3 --
 .../ode/nonstiff/LutherFieldIntegratorTest.java    |  1 -
 .../nonstiff/LutherFieldStepInterpolatorTest.java  |  1 -
 .../legacy/ode/nonstiff/LutherIntegratorTest.java  |  5 ---
 .../ode/nonstiff/LutherStepInterpolatorTest.java   |  2 -
 .../ode/nonstiff/MidpointFieldIntegratorTest.java  |  2 -
 .../MidpointFieldStepInterpolatorTest.java         |  1 -
 .../ode/nonstiff/MidpointIntegratorTest.java       |  6 ---
 .../ode/nonstiff/MidpointStepInterpolatorTest.java |  2 -
 .../RungeKuttaFieldIntegratorAbstractTest.java     | 14 -------
 ...ungeKuttaFieldStepInterpolatorAbstractTest.java |  8 ----
 .../legacy/ode/nonstiff/StepFieldProblem.java      |  1 -
 .../math4/legacy/ode/nonstiff/StepProblem.java     |  1 -
 .../nonstiff/ThreeEighthesFieldIntegratorTest.java |  2 -
 .../ThreeEighthesFieldStepInterpolatorTest.java    |  1 -
 .../ode/nonstiff/ThreeEighthesIntegratorTest.java  |  7 ----
 .../ThreeEighthesStepInterpolatorTest.java         |  2 -
 .../ode/sampling/DummyFieldStepInterpolator.java   |  1 -
 .../legacy/ode/sampling/DummyStepInterpolator.java |  3 --
 .../ode/sampling/DummyStepInterpolatorTest.java    |  4 --
 .../sampling/NordsieckStepInterpolatorTest.java    |  2 -
 .../ode/sampling/StepInterpolatorTestUtils.java    |  6 ---
 .../ode/sampling/StepNormalizerOutputTestBase.java |  1 -
 .../legacy/ode/sampling/StepNormalizerTest.java    |  1 -
 .../math4/legacy/optim/SimpleValueCheckerTest.java |  1 -
 .../legacy/optim/linear/SimplexSolverTest.java     |  2 -
 .../MultivariateFunctionMappingAdapterTest.java    |  1 -
 .../MultivariateFunctionPenaltyAdapterTest.java    |  1 -
 .../NonLinearConjugateGradientOptimizerTest.java   |  6 ---
 .../SimpleUnivariateValueCheckerTest.java          |  1 -
 .../legacy/random/SobolSequenceGeneratorTest.java  |  1 -
 .../commons/math4/legacy/stat/FrequencyTest.java   |  1 -
 .../commons/math4/legacy/stat/StatUtilsTest.java   |  4 --
 .../legacy/stat/correlation/CovarianceTest.java    |  1 -
 .../stat/correlation/KendallsCorrelationTest.java  |  1 -
 .../correlation/SpearmansRankCorrelationTest.java  |  1 -
 .../stat/correlation/StorelessCovarianceTest.java  |  2 -
 .../AggregateSummaryStatisticsTest.java            |  3 --
 .../descriptive/DescriptiveStatisticsTest.java     |  4 --
 .../stat/descriptive/DoubleArrayAbstractTest.java  |  3 --
 .../MultivariateSummaryStatisticsTest.java         |  3 --
 .../stat/descriptive/ResizableDoubleArrayTest.java |  5 ---
 .../StorelessUnivariateStatisticAbstractTest.java  |  3 --
 .../stat/descriptive/SummaryStatisticsTest.java    |  2 -
 .../UnivariateStatisticAbstractTest.java           |  2 -
 .../stat/descriptive/moment/FourthMomentTest.java  |  1 -
 .../stat/descriptive/moment/GeometricMeanTest.java |  1 -
 .../stat/descriptive/moment/InteractionTest.java   |  2 -
 .../stat/descriptive/moment/KurtosisTest.java      |  1 -
 .../legacy/stat/descriptive/moment/MeanTest.java   |  1 -
 .../stat/descriptive/moment/SecondMomentTest.java  |  1 -
 .../descriptive/moment/StandardDeviationTest.java  |  1 -
 .../stat/descriptive/moment/ThirdMomentTest.java   |  1 -
 .../stat/descriptive/moment/VarianceTest.java      |  2 -
 .../moment/VectorialCovarianceTest.java            |  1 -
 .../stat/descriptive/moment/VectorialMeanTest.java |  1 -
 .../legacy/stat/descriptive/rank/MaxTest.java      |  1 -
 .../legacy/stat/descriptive/rank/MinTest.java      |  1 -
 .../descriptive/rank/PSquarePercentileTest.java    | 10 -----
 .../stat/descriptive/rank/PercentileTest.java      |  3 --
 .../stat/descriptive/summary/ProductTest.java      |  1 -
 .../stat/descriptive/summary/SumLogTest.java       |  1 -
 .../legacy/stat/descriptive/summary/SumSqTest.java |  1 -
 .../legacy/stat/descriptive/summary/SumTest.java   |  1 -
 .../legacy/stat/inference/BinomialTestTest.java    |  1 -
 .../legacy/stat/inference/ChiSquareTestTest.java   |  1 -
 .../stat/inference/InferenceTestUtilsTest.java     |  2 -
 .../stat/inference/KolmogorovSmirnovTestTest.java  |  3 --
 .../legacy/stat/inference/OneWayAnovaTest.java     |  3 --
 .../math4/legacy/stat/inference/TTestTest.java     |  1 -
 .../stat/interval/AgrestiCoullIntervalTest.java    |  1 -
 .../interval/NormalApproximationIntervalTest.java  |  1 -
 .../legacy/stat/ranking/NaturalRankingTest.java    |  1 -
 .../GLSMultipleLinearRegressionTest.java           |  1 -
 .../regression/MillerUpdatingRegressionTest.java   |  3 --
 .../MultipleLinearRegressionAbstractTest.java      |  1 -
 .../OLSMultipleLinearRegressionTest.java           |  2 -
 .../stat/regression/SimpleRegressionTest.java      |  3 --
 .../math4/legacy/util/CombinatoricsUtilsTest.java  |  1 -
 .../apache/commons/math4/legacy/util/TestBean.java |  1 -
 .../RealFunctionValidation.java                    |  1 -
 .../userguide/ClusterAlgorithmComparison.java      |  1 -
 .../commons/math4/userguide/ExampleUtils.java      |  1 -
 .../userguide/filter/ConstantVoltageExample.java   |  2 -
 .../userguide/genetics/HelloWorldExample.java      |  1 -
 .../userguide/genetics/ImageEvolutionExample.java  |  3 --
 .../userguide/genetics/PolygonChromosome.java      |  1 -
 511 files changed, 1488 deletions(-)

diff --git a/commons-math-core/src/main/java/org/apache/commons/math4/core/jdkmath/AccurateMath.java b/commons-math-core/src/main/java/org/apache/commons/math4/core/jdkmath/AccurateMath.java
index 632c3b352..96562866b 100644
--- a/commons-math-core/src/main/java/org/apache/commons/math4/core/jdkmath/AccurateMath.java
+++ b/commons-math-core/src/main/java/org/apache/commons/math4/core/jdkmath/AccurateMath.java
@@ -884,7 +884,6 @@ public final class AccurateMath {
             }
 
             intVal--;
-
         } else {
             if (intVal > 709) {
                 if (hiPrec != null) {
@@ -893,7 +892,6 @@ public final class AccurateMath {
                 }
                 return Double.POSITIVE_INFINITY;
             }
-
         }
 
         intPartA = ExpIntTable.EXP_INT_TABLE_A[EXP_INT_TABLE_MAX_INDEX + intVal];
@@ -1487,7 +1485,6 @@ public final class AccurateMath {
                         return +0.0;
                     }
                 }
-
             } else {
                 // y is a regular non-zero number
 
@@ -1569,12 +1566,9 @@ public final class AccurateMath {
                     final double result = exp(lna, z, null);
                     //result = result + result * z;
                     return result;
-
                 }
             }
-
         }
-
     }
 
     /**
@@ -1684,7 +1678,6 @@ public final class AccurateMath {
 
             // better accuracy estimate of reciprocal
             return Double.isNaN(error) ? splitInv : new Split(splitInv.high, splitInv.low - error / full);
-
         }
 
         /** Computes this^e.
@@ -1709,7 +1702,6 @@ public final class AccurateMath {
 
                 // accurate squaring d^(2(p+1)) = d^(2p) * d^(2p) using Veltkamp TwoProduct algorithm
                 d2p = d2p.multiply(d2p);
-
             }
 
             if (Double.isNaN(result.full)) {
@@ -1729,9 +1721,7 @@ public final class AccurateMath {
             } else {
                 return result;
             }
-
         }
-
     }
 
     /**
@@ -3138,7 +3128,6 @@ public final class AccurateMath {
                     mantissa++;
                 }
                 return Double.longBitsToDouble(sign | mantissa);
-
             } else {
                 // no need to compute the mantissa, the number scales down to 0
                 return (sign == 0L) ? 0.0 : -0.0;
@@ -3160,14 +3149,12 @@ public final class AccurateMath {
                 } else {
                     return (sign == 0L) ? Double.POSITIVE_INFINITY : Double.NEGATIVE_INFINITY;
                 }
-
             } else if (scaledExponent < 2047) {
                 return Double.longBitsToDouble(sign | (((long) scaledExponent) << 52) | mantissa);
             } else {
                 return (sign == 0L) ? Double.POSITIVE_INFINITY : Double.NEGATIVE_INFINITY;
             }
         }
-
     }
 
     /**
@@ -3222,7 +3209,6 @@ public final class AccurateMath {
                     mantissa++;
                 }
                 return Float.intBitsToFloat(sign | mantissa);
-
             } else {
                 // no need to compute the mantissa, the number scales down to 0
                 return (sign == 0) ? 0.0f : -0.0f;
@@ -3244,14 +3230,12 @@ public final class AccurateMath {
                 } else {
                     return (sign == 0) ? Float.POSITIVE_INFINITY : Float.NEGATIVE_INFINITY;
                 }
-
             } else if (scaledExponent < 255) {
                 return Float.intBitsToFloat(sign | (scaledExponent << 23) | mantissa);
             } else {
                 return (sign == 0) ? Float.POSITIVE_INFINITY : Float.NEGATIVE_INFINITY;
             }
         }
-
     }
 
     /**
diff --git a/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/Field.java b/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/Field.java
index 433021282..67692cdee 100644
--- a/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/Field.java
+++ b/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/Field.java
@@ -54,5 +54,4 @@ public interface Field<T> {
      *         class of this object.
      */
     Class<? extends FieldElement<T>> getRuntimeClass();
-
 }
diff --git a/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/dfp/Dfp.java b/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/dfp/Dfp.java
index 02f7df81e..c94ccb594 100644
--- a/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/dfp/Dfp.java
+++ b/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/dfp/Dfp.java
@@ -1490,7 +1490,6 @@ public class Dfp implements RealFieldElement<Dfp> {
         }
 
         return 0;
-
     }
 
     /** Multiply this by x.
@@ -1597,7 +1596,6 @@ public class Dfp implements RealFieldElement<Dfp> {
         }
 
         return result;
-
     }
 
     /** Multiply this by a single digit x.
@@ -1953,7 +1951,6 @@ public class Dfp implements RealFieldElement<Dfp> {
         }
 
         return result;
-
     }
 
     /** {@inheritDoc} */
@@ -2057,7 +2054,6 @@ public class Dfp implements RealFieldElement<Dfp> {
         }
 
         return x;
-
     }
 
     /** Get a string representation of the instance.
@@ -2079,7 +2075,6 @@ public class Dfp implements RealFieldElement<Dfp> {
         }
 
         return dfp2string();
-
     }
 
     /** Convert an instance to a string using scientific notation.
@@ -2298,7 +2293,6 @@ public class Dfp implements RealFieldElement<Dfp> {
         }
 
         return trap(type, what, oper, def, result);
-
     }
 
     /** Trap handler.  Subclasses may override this to provide trap
@@ -2758,16 +2752,13 @@ public class Dfp implements RealFieldElement<Dfp> {
 
             // compute atan2(y, x) = 2 atan(y / (r + x))
             return getTwo().multiply(divide(r.add(x)).atan());
-
         } else {
 
             // compute atan2(y, x) = +/- pi - 2 atan(y / (r - x))
             final Dfp tmp = getTwo().multiply(divide(r.subtract(x)).atan());
             final Dfp pmPi = newInstance((tmp.sign <= 0) ? -Math.PI : Math.PI);
             return pmPi.subtract(tmp);
-
         }
-
     }
 
     /** {@inheritDoc}
@@ -2905,5 +2896,4 @@ public class Dfp implements RealFieldElement<Dfp> {
                                  final double a3, final Dfp b3, final double a4, final Dfp b4) {
         return b1.multiply(a1).add(b2.multiply(a2)).add(b3.multiply(a3)).add(b4.multiply(a4));
     }
-
 }
diff --git a/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/dfp/DfpDec.java b/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/dfp/DfpDec.java
index e437b514d..68b1908f9 100644
--- a/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/dfp/DfpDec.java
+++ b/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/dfp/DfpDec.java
@@ -135,7 +135,6 @@ public class DfpDec extends Dfp {
         }
 
         return new DfpDec(d);
-
     }
 
     /** {@inheritDoc} */
@@ -364,5 +363,4 @@ public class DfpDec extends Dfp {
 
         return result;
     }
-
 }
diff --git a/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/dfp/DfpField.java b/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/dfp/DfpField.java
index 5adbbe6f6..9d82d44ef 100644
--- a/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/dfp/DfpField.java
+++ b/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/dfp/DfpField.java
@@ -53,7 +53,6 @@ public class DfpField implements Field<Dfp> {
 
         /** Rounds towards negative infinity. */
         ROUND_FLOOR;
-
     }
 
     /** IEEE 854-1987 flag for invalid operation. */
@@ -221,7 +220,6 @@ public class DfpField implements Field<Dfp> {
                 ln5            = new Dfp(this, ln5String);
                 ln5Split       = split(ln5String);
                 ln10           = new Dfp(this, ln10String);
-
             }
         } else {
             // dummy settings for unused constants
@@ -240,7 +238,6 @@ public class DfpField implements Field<Dfp> {
             ln5Split       = null;
             ln10           = null;
         }
-
     }
 
     /** Get the number of radix digits of the {@link Dfp} instances built by this factory.
@@ -597,7 +594,6 @@ public class DfpField implements Field<Dfp> {
             ln2String  = computeLn(highPrecisionTwo, highPrecisionOne, highPrecisionTwo).toString();
             ln5String  = computeLn(new Dfp(highPrecisionField, 5),  highPrecisionOne, highPrecisionTwo).toString();
             ln10String = computeLn(new Dfp(highPrecisionField, 10), highPrecisionOne, highPrecisionTwo).toString();
-
         }
     }
 
@@ -641,7 +637,6 @@ public class DfpField implements Field<Dfp> {
         }
 
         return one.divide(ak);
-
     }
 
     /** Compute exp(a).
@@ -669,7 +664,6 @@ public class DfpField implements Field<Dfp> {
         }
 
         return y;
-
     }
 
 
@@ -755,7 +749,5 @@ public class DfpField implements Field<Dfp> {
         }
 
         return y.multiply(two);
-
     }
-
 }
diff --git a/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/dfp/DfpMath.java b/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/dfp/DfpMath.java
index 4503fb02f..f224964ce 100644
--- a/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/dfp/DfpMath.java
+++ b/commons-math-legacy-core/src/main/java/org/apache/commons/math4/legacy/core/dfp/DfpMath.java
@@ -189,7 +189,6 @@ public final class DfpMath {
 
             a -= trial;
             result = splitMult(result, r);
-
         } while (a >= 1);
 
         result[0] = result[0].add(result[1]);
@@ -240,7 +239,6 @@ public final class DfpMath {
 
             a -= trial;
             result = result.multiply(r);
-
         } while (a >= 1);
 
         if (invert) {
@@ -457,7 +455,6 @@ public final class DfpMath {
         y = y.multiply(a[0].getTwo());
 
         return split(y);
-
     }
 
     /** Computes x to the y power.<p>
@@ -657,7 +654,6 @@ public final class DfpMath {
         }
 
         return x.newInstance(r);
-
     }
 
     /** Computes sin(a)  Used when {@code {@code 0 < a < pi/4}}.
@@ -687,7 +683,6 @@ public final class DfpMath {
         }
 
         return y;
-
     }
 
     /** Computes cos(a)  Used when {@code 0 < a < pi/4}.
@@ -721,7 +716,6 @@ public final class DfpMath {
         }
 
         return y;
-
     }
 
     /** computes the sine of the argument.
@@ -767,7 +761,6 @@ public final class DfpMath {
         }
 
         return a.newInstance(y);
-
     }
 
     /** computes the cosine of the argument.
@@ -817,7 +810,6 @@ public final class DfpMath {
         }
 
         return a.newInstance(y);
-
     }
 
     /** computes the tangent of the argument.
@@ -850,7 +842,6 @@ public final class DfpMath {
         }
 
         return y;
-
     }
 
     /** Computes the arc tangent of the argument.
@@ -924,7 +915,6 @@ public final class DfpMath {
         }
 
         return a.newInstance(y);
-
     }
 
     /** computes the arc-sine of the argument.
@@ -953,5 +943,4 @@ public final class DfpMath {
 
         return a.newInstance(result);
     }
-
 }
diff --git a/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/ExtendedFieldElementAbstractTest.java b/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/ExtendedFieldElementAbstractTest.java
index 4f1f358ac..c9713e310 100644
--- a/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/ExtendedFieldElementAbstractTest.java
+++ b/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/ExtendedFieldElementAbstractTest.java
@@ -552,5 +552,4 @@ public abstract class ExtendedFieldElementAbstractTest<T extends RealFieldElemen
         }
         return f;
     }
-
 }
diff --git a/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/MathArraysTest.java b/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/MathArraysTest.java
index 16500e402..54677765b 100644
--- a/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/MathArraysTest.java
+++ b/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/MathArraysTest.java
@@ -459,7 +459,6 @@ public class MathArraysTest {
                                              new double[] {Double.NEGATIVE_INFINITY}));
         Assert.assertFalse(MathArrays.equals(new double[] {1d},
                                              new double[] {JdkMath.nextAfter(JdkMath.nextAfter(1d, 2d), 2d)}));
-
     }
 
     @Test
diff --git a/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/dfp/Decimal10.java b/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/dfp/Decimal10.java
index 05bc1dceb..86ba25f9d 100644
--- a/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/dfp/Decimal10.java
+++ b/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/dfp/Decimal10.java
@@ -95,5 +95,4 @@ public class Decimal10 extends DfpDec {
     protected int getDecimalDigits() {
         return 10;
     }
-
 }
diff --git a/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/dfp/DfpDecTest.java b/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/dfp/DfpDecTest.java
index d242b3ecc..6e471f038 100644
--- a/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/dfp/DfpDecTest.java
+++ b/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/dfp/DfpDecTest.java
@@ -562,5 +562,4 @@ public class DfpDecTest {
              pinf,
              DfpField.FLAG_OVERFLOW | DfpField.FLAG_INEXACT, "Next After #14");
     }
-
 }
diff --git a/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/dfp/DfpMathTest.java b/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/dfp/DfpMathTest.java
index 16486be9b..005df7d34 100644
--- a/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/dfp/DfpMathTest.java
+++ b/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/dfp/DfpMathTest.java
@@ -584,5 +584,4 @@ public class DfpMathTest {
              DfpField.FLAG_INEXACT, "sin #27");
     }
 
-
 }
diff --git a/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/dfp/DfpTest.java b/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/dfp/DfpTest.java
index 3670b5743..194451208 100644
--- a/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/dfp/DfpTest.java
+++ b/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/dfp/DfpTest.java
@@ -1641,7 +1641,6 @@ public class DfpTest extends ExtendedFieldElementAbstractTest<Dfp> {
         Assert.assertTrue(ninf.negate().positiveOrNull());
         Assert.assertFalse(ninf.negate().strictlyNegative());
         Assert.assertTrue(ninf.negate().strictlyPositive());
-
     }
 
     @Test
diff --git a/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/jdkmath/AccurateMathTest.java b/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/jdkmath/AccurateMathTest.java
index 1c7b8c342..75aa126d7 100644
--- a/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/jdkmath/AccurateMathTest.java
+++ b/commons-math-legacy-core/src/test/java/org/apache/commons/math4/legacy/core/jdkmath/AccurateMathTest.java
@@ -164,7 +164,6 @@ public class AccurateMathTest {
             maxErr = AccurateMath.max(maxErr, AccurateMath.abs(ref - tst) / AccurateMath.ulp(ref));
         }
         assertEquals(0, maxErr, 4);
-
     }
 
     @Test
@@ -1221,7 +1220,6 @@ public class AccurateMathTest {
 
         // 0xbf2e43753d36a223 0xbf2e43753d36a222 -> bf2e43753d36a222
         assertEquals(-2.3089223996676603E-4, AccurateMath.nextAfter(-2.3089223996676606E-4, -2.3089223996676603E-4), 0.0);
-
     }
 
     @Test
@@ -1950,7 +1948,6 @@ public class AccurateMathTest {
         }
 
         return fd.longValue();
-
     }
 
     private long poorManFloorMod(long a, long b) {
@@ -1972,5 +1969,4 @@ public class AccurateMathTest {
         assertEquals(x, AccurateMath.round(x), 0.0);
         //assertTrue(x == Math.round(x)); // fails with Java 7, fixed in Java 8
     }
-
 }
diff --git a/commons-math-legacy-exception/src/main/java/org/apache/commons/math4/legacy/exception/MathArithmeticException.java b/commons-math-legacy-exception/src/main/java/org/apache/commons/math4/legacy/exception/MathArithmeticException.java
index 64f9d7036..16adb3ee5 100644
--- a/commons-math-legacy-exception/src/main/java/org/apache/commons/math4/legacy/exception/MathArithmeticException.java
+++ b/commons-math-legacy-exception/src/main/java/org/apache/commons/math4/legacy/exception/MathArithmeticException.java
@@ -48,5 +48,4 @@ public class MathArithmeticException extends MathRuntimeException {
     public MathArithmeticException(Localizable pattern, Object... args) {
         super(pattern, args);
     }
-
 }
diff --git a/commons-math-legacy-exception/src/main/java/org/apache/commons/math4/legacy/exception/MathIllegalArgumentException.java b/commons-math-legacy-exception/src/main/java/org/apache/commons/math4/legacy/exception/MathIllegalArgumentException.java
index 8834ef503..80873cefa 100644
--- a/commons-math-legacy-exception/src/main/java/org/apache/commons/math4/legacy/exception/MathIllegalArgumentException.java
+++ b/commons-math-legacy-exception/src/main/java/org/apache/commons/math4/legacy/exception/MathIllegalArgumentException.java
@@ -37,5 +37,4 @@ public class MathIllegalArgumentException extends MathRuntimeException {
     public MathIllegalArgumentException(Localizable pattern, Object... args) {
         super(pattern, args);
     }
-
 }
diff --git a/commons-math-legacy-exception/src/main/java/org/apache/commons/math4/legacy/exception/MathIllegalStateException.java b/commons-math-legacy-exception/src/main/java/org/apache/commons/math4/legacy/exception/MathIllegalStateException.java
index 1fd8dd86d..b66d2e9b1 100644
--- a/commons-math-legacy-exception/src/main/java/org/apache/commons/math4/legacy/exception/MathIllegalStateException.java
+++ b/commons-math-legacy-exception/src/main/java/org/apache/commons/math4/legacy/exception/MathIllegalStateException.java
@@ -59,5 +59,4 @@ public class MathIllegalStateException extends MathRuntimeException {
     public MathIllegalStateException() {
         this(LocalizedFormats.ILLEGAL_STATE);
     }
-
 }
diff --git a/commons-math-legacy-exception/src/main/java/org/apache/commons/math4/legacy/exception/MathUnsupportedOperationException.java b/commons-math-legacy-exception/src/main/java/org/apache/commons/math4/legacy/exception/MathUnsupportedOperationException.java
index 465243360..c2de5af16 100644
--- a/commons-math-legacy-exception/src/main/java/org/apache/commons/math4/legacy/exception/MathUnsupportedOperationException.java
+++ b/commons-math-legacy-exception/src/main/java/org/apache/commons/math4/legacy/exception/MathUnsupportedOperationException.java
@@ -45,5 +45,4 @@ public class MathUnsupportedOperationException extends MathRuntimeException {
     public MathUnsupportedOperationException(Localizable pattern, Object... args) {
         super(pattern, args);
     }
-
 }
diff --git a/commons-math-legacy-exception/src/main/java/org/apache/commons/math4/legacy/exception/NotANumberException.java b/commons-math-legacy-exception/src/main/java/org/apache/commons/math4/legacy/exception/NotANumberException.java
index 6c63d266d..307e9f1e0 100644
--- a/commons-math-legacy-exception/src/main/java/org/apache/commons/math4/legacy/exception/NotANumberException.java
+++ b/commons-math-legacy-exception/src/main/java/org/apache/commons/math4/legacy/exception/NotANumberException.java
@@ -33,5 +33,4 @@ public class NotANumberException extends MathIllegalNumberException {
     public NotANumberException() {
         super(LocalizedFormats.NAN_NOT_ALLOWED, Double.valueOf(Double.NaN));
     }
-
 }
diff --git a/commons-math-legacy-exception/src/main/java/org/apache/commons/math4/legacy/exception/util/DummyLocalizable.java b/commons-math-legacy-exception/src/main/java/org/apache/commons/math4/legacy/exception/util/DummyLocalizable.java
index ef49389c4..d32e131ab 100644
--- a/commons-math-legacy-exception/src/main/java/org/apache/commons/math4/legacy/exception/util/DummyLocalizable.java
+++ b/commons-math-legacy-exception/src/main/java/org/apache/commons/math4/legacy/exception/util/DummyLocalizable.java
@@ -55,5 +55,4 @@ public class DummyLocalizable implements Localizable {
     public String toString() {
         return source;
     }
-
 }
diff --git a/commons-math-legacy-exception/src/main/java/org/apache/commons/math4/legacy/exception/util/ExceptionContextProvider.java b/commons-math-legacy-exception/src/main/java/org/apache/commons/math4/legacy/exception/util/ExceptionContextProvider.java
index 2e7468be5..dfd937689 100644
--- a/commons-math-legacy-exception/src/main/java/org/apache/commons/math4/legacy/exception/util/ExceptionContextProvider.java
+++ b/commons-math-legacy-exception/src/main/java/org/apache/commons/math4/legacy/exception/util/ExceptionContextProvider.java
@@ -29,5 +29,4 @@ public interface ExceptionContextProvider {
      * @return a reference to the exception context.
      */
     ExceptionContext getContext();
-
 }
diff --git a/commons-math-legacy-exception/src/test/java/org/apache/commons/math4/legacy/exception/util/LocalizedFormatsTest.java b/commons-math-legacy-exception/src/test/java/org/apache/commons/math4/legacy/exception/util/LocalizedFormatsTest.java
index e50dd7d8a..072dcf0e7 100644
--- a/commons-math-legacy-exception/src/test/java/org/apache/commons/math4/legacy/exception/util/LocalizedFormatsTest.java
+++ b/commons-math-legacy-exception/src/test/java/org/apache/commons/math4/legacy/exception/util/LocalizedFormatsTest.java
@@ -49,7 +49,6 @@ public class LocalizedFormatsTest {
             }
             Assert.assertEquals(language, bundle.getLocale().getLanguage());
         }
-
     }
 
     @Test
@@ -68,7 +67,6 @@ public class LocalizedFormatsTest {
             }
             Assert.assertEquals(language, bundle.getLocale().getLanguage());
         }
-
     }
 
     @Test
@@ -100,5 +98,4 @@ public class LocalizedFormatsTest {
             }
         }
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/FunctionUtils.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/FunctionUtils.java
index e41e3d985..425b89637 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/FunctionUtils.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/FunctionUtils.java
@@ -91,7 +91,6 @@ public final class FunctionUtils {
                 }
                 return r;
             }
-
         };
     }
 
@@ -147,7 +146,6 @@ public final class FunctionUtils {
                 }
                 return r;
             }
-
         };
     }
 
@@ -200,7 +198,6 @@ public final class FunctionUtils {
                 }
                 return r;
             }
-
         };
     }
 
@@ -350,9 +347,7 @@ public final class FunctionUtils {
                 }
                 return x.compose(packed);
             }
-
         };
-
     }
 
     /** Convert regular functions to {@link MultivariateDifferentiableFunction}.
@@ -457,7 +452,6 @@ public final class FunctionUtils {
                 final DerivativeStructure dsX = new DerivativeStructure(1, order, 0, x);
                 return f.value(dsX).getPartialDerivative(order);
             }
-
         };
     }
 
@@ -494,10 +488,7 @@ public final class FunctionUtils {
                 }
 
                 return f.value(dsPoint).getPartialDerivative(orders);
-
             }
-
         };
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/MultivariateMatrixFunction.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/MultivariateMatrixFunction.java
index 1d1ba598b..ced2de196 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/MultivariateMatrixFunction.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/MultivariateMatrixFunction.java
@@ -31,5 +31,4 @@ public interface MultivariateMatrixFunction {
      */
     double[][] value(double[] point)
         throws IllegalArgumentException;
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/MultivariateVectorFunction.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/MultivariateVectorFunction.java
index 2e2d41c84..5e762878a 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/MultivariateVectorFunction.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/MultivariateVectorFunction.java
@@ -31,5 +31,4 @@ public interface MultivariateVectorFunction {
      */
     double[] value(double[] point)
         throws IllegalArgumentException;
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/UnivariateMatrixFunction.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/UnivariateMatrixFunction.java
index ab5282ebc..602a7d039 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/UnivariateMatrixFunction.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/UnivariateMatrixFunction.java
@@ -29,5 +29,4 @@ public interface UnivariateMatrixFunction {
      * @return the value
      */
     double[][] value(double x);
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/UnivariateVectorFunction.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/UnivariateVectorFunction.java
index 1688b1c31..41aeec771 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/UnivariateVectorFunction.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/UnivariateVectorFunction.java
@@ -29,5 +29,4 @@ public interface UnivariateVectorFunction {
      * @return the value
      */
     double[] value(double x);
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/DSCompiler.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/DSCompiler.java
index 6d85b986d..0094503ec 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/DSCompiler.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/DSCompiler.java
@@ -178,7 +178,6 @@ public final class DSCompiler {
                 compileCompositionIndirection(parameters, order,
                                               valueCompiler, derivativeCompiler,
                                               sizes, derivativesIndirection);
-
     }
 
     /** Get the compiler for number of free parameters and order.
@@ -226,7 +225,6 @@ public final class DSCompiler {
         compilers.compareAndSet(cache, newCache);
 
         return newCache[parameters][order];
-
     }
 
     /** Compile the sizes array.
@@ -250,7 +248,6 @@ public final class DSCompiler {
         }
 
         return sizes;
-
     }
 
     /** Compile the derivatives indirection array.
@@ -290,11 +287,9 @@ public final class DSCompiler {
 
             // increment the derivation order for the last parameter
             derivativesIndirection[vSize + i][parameters - 1]++;
-
         }
 
         return derivativesIndirection;
-
     }
 
     /** Compile the lower derivatives indirection array.
@@ -326,7 +321,6 @@ public final class DSCompiler {
         }
 
         return lowerIndirection;
-
     }
 
     /** Compile the multiplication indirection array.
@@ -385,11 +379,9 @@ public final class DSCompiler {
             }
 
             multIndirection[vSize + i] = combined.toArray(new int[combined.size()][]);
-
         }
 
         return multIndirection;
-
     }
 
     /** Compile the function composition indirection array.
@@ -473,7 +465,6 @@ public final class DSCompiler {
                     Arrays.sort(derivedTermG, 2, derivedTermG.length);
                     row.add(derivedTermG);
                 }
-
             }
 
             // combine terms with similar derivation orders
@@ -499,11 +490,9 @@ public final class DSCompiler {
             }
 
             compIndirection[vSize + i] = combined.toArray(new int[combined.size()][]);
-
         }
 
         return compIndirection;
-
     }
 
     /** Get the index of a partial derivative in the array.
@@ -547,7 +536,6 @@ public final class DSCompiler {
         }
 
         return getPartialDerivativeIndex(parameters, order, sizes, orders);
-
     }
 
     /** Get the index of a partial derivative in an array.
@@ -586,11 +574,9 @@ public final class DSCompiler {
                 // so we add the size of the value part to the base index
                 index += sizes[i][m--];
             }
-
         }
 
         return index;
-
     }
 
     /** Convert an index from one (parameters, order) structure to another.
@@ -832,7 +818,6 @@ public final class DSCompiler {
         for (int i = 1; i < getSize(); ++i) {
             result[resultOffset + i] = lhs[lhsOffset + i] - k * rhs[rhsOffset + i];
         }
-
     }
 
     /** Compute power of a double to a derivative structure.
@@ -874,7 +859,6 @@ public final class DSCompiler {
 
         // apply function composition
         compose(operand, operandOffset, function, result, resultOffset);
-
     }
 
     /** Compute power of a derivative structure.
@@ -919,7 +903,6 @@ public final class DSCompiler {
 
         // apply function composition
         compose(operand, operandOffset, function, result, resultOffset);
-
     }
 
     /** Compute integer power of a derivative structure.
@@ -972,7 +955,6 @@ public final class DSCompiler {
 
         // apply function composition
         compose(operand, operandOffset, function, result, resultOffset);
-
     }
 
     /** Compute power of a derivative structure.
@@ -1030,7 +1012,6 @@ public final class DSCompiler {
 
         // apply function composition
         compose(operand, operandOffset, function, result, resultOffset);
-
     }
 
     /** Compute exponential of a derivative structure.
@@ -1050,7 +1031,6 @@ public final class DSCompiler {
 
         // apply function composition
         compose(operand, operandOffset, function, result, resultOffset);
-
     }
 
     /** Compute exp(x) - 1 of a derivative structure.
@@ -1071,7 +1051,6 @@ public final class DSCompiler {
 
         // apply function composition
         compose(operand, operandOffset, function, result, resultOffset);
-
     }
 
     /** Compute natural logarithm of a derivative structure.
@@ -1099,7 +1078,6 @@ public final class DSCompiler {
 
         // apply function composition
         compose(operand, operandOffset, function, result, resultOffset);
-
     }
 
     /** Computes shifted logarithm of a derivative structure.
@@ -1126,7 +1104,6 @@ public final class DSCompiler {
 
         // apply function composition
         compose(operand, operandOffset, function, result, resultOffset);
-
     }
 
     /** Computes base 10 logarithm of a derivative structure.
@@ -1153,7 +1130,6 @@ public final class DSCompiler {
 
         // apply function composition
         compose(operand, operandOffset, function, result, resultOffset);
-
     }
 
     /** Compute cosine of a derivative structure.
@@ -1179,7 +1155,6 @@ public final class DSCompiler {
 
         // apply function composition
         compose(operand, operandOffset, function, result, resultOffset);
-
     }
 
     /** Compute sine of a derivative structure.
@@ -1205,7 +1180,6 @@ public final class DSCompiler {
 
         // apply function composition
         compose(operand, operandOffset, function, result, resultOffset);
-
     }
 
     /** Compute tangent of a derivative structure.
@@ -1254,13 +1228,11 @@ public final class DSCompiler {
                 }
 
                 function[n] = v;
-
             }
         }
 
         // apply function composition
         compose(operand, operandOffset, function, result, resultOffset);
-
     }
 
     /** Compute arc cosine of a derivative structure.
@@ -1311,13 +1283,11 @@ public final class DSCompiler {
 
                 coeff *= f;
                 function[n] = coeff * v;
-
             }
         }
 
         // apply function composition
         compose(operand, operandOffset, function, result, resultOffset);
-
     }
 
     /** Compute arc sine of a derivative structure.
@@ -1368,13 +1338,11 @@ public final class DSCompiler {
 
                 coeff *= f;
                 function[n] = coeff * v;
-
             }
         }
 
         // apply function composition
         compose(operand, operandOffset, function, result, resultOffset);
-
     }
 
     /** Compute arc tangent of a derivative structure.
@@ -1425,13 +1393,11 @@ public final class DSCompiler {
 
                 coeff *= f;
                 function[n] = coeff * v;
-
             }
         }
 
         // apply function composition
         compose(operand, operandOffset, function, result, resultOffset);
-
     }
 
     /** Compute two arguments arc tangent of a derivative structure.
@@ -1465,7 +1431,6 @@ public final class DSCompiler {
             for (int i = 0; i < tmp2.length; ++i) {
                 result[resultOffset + i] = 2 * tmp2[i]; // 2 * atan(y / (r + x))
             }
-
         } else {
 
             // compute atan2(y, x) = +/- pi - 2 atan(y / (r - x))
@@ -1477,12 +1442,10 @@ public final class DSCompiler {
             for (int i = 1; i < tmp2.length; ++i) {
                 result[resultOffset + i] = -2 * tmp2[i]; // +/-pi - 2 * atan(y / (r - x))
             }
-
         }
 
         // fix value to take special cases (+0/+0, +0/-0, -0/+0, -0/-0, +/-infinity) correctly
         result[resultOffset] = JdkMath.atan2(y[yOffset], x[xOffset]);
-
     }
 
     /** Compute hyperbolic cosine of a derivative structure.
@@ -1508,7 +1471,6 @@ public final class DSCompiler {
 
         // apply function composition
         compose(operand, operandOffset, function, result, resultOffset);
-
     }
 
     /** Compute hyperbolic sine of a derivative structure.
@@ -1534,7 +1496,6 @@ public final class DSCompiler {
 
         // apply function composition
         compose(operand, operandOffset, function, result, resultOffset);
-
     }
 
     /** Compute hyperbolic tangent of a derivative structure.
@@ -1583,13 +1544,11 @@ public final class DSCompiler {
                 }
 
                 function[n] = v;
-
             }
         }
 
         // apply function composition
         compose(operand, operandOffset, function, result, resultOffset);
-
     }
 
     /** Compute inverse hyperbolic cosine of a derivative structure.
@@ -1640,13 +1599,11 @@ public final class DSCompiler {
 
                 coeff *= f;
                 function[n] = coeff * v;
-
             }
         }
 
         // apply function composition
         compose(operand, operandOffset, function, result, resultOffset);
-
     }
 
     /** Compute inverse hyperbolic sine of a derivative structure.
@@ -1697,13 +1654,11 @@ public final class DSCompiler {
 
                 coeff *= f;
                 function[n] = coeff * v;
-
             }
         }
 
         // apply function composition
         compose(operand, operandOffset, function, result, resultOffset);
-
     }
 
     /** Compute inverse hyperbolic tangent of a derivative structure.
@@ -1754,13 +1709,11 @@ public final class DSCompiler {
 
                 coeff *= f;
                 function[n] = coeff * v;
-
             }
         }
 
         // apply function composition
         compose(operand, operandOffset, function, result, resultOffset);
-
     }
 
     /** Compute composition of a derivative structure by a function.
@@ -1831,5 +1784,4 @@ public final class DSCompiler {
             throw new DimensionMismatchException(order, compiler.order);
         }
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/DerivativeStructure.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/DerivativeStructure.java
index 7812ca6c8..0b2fd9120 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/DerivativeStructure.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/DerivativeStructure.java
@@ -117,7 +117,6 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
             // the derivative of the variable with respect to itself is 1.
             data[DSCompiler.getCompiler(index, order).getSize()] = 1.0;
         }
-
     }
 
     /** Linear combination constructor.
@@ -551,9 +550,7 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
 
                 // remove scaling
                 return scaledH.scalb(middleExp);
-
             }
-
         }
     }
 
@@ -651,7 +648,6 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
             public Class<? extends FieldElement<DerivativeStructure>> getRuntimeClass() {
                 return DerivativeStructure.class;
             }
-
         };
     }
 
@@ -953,7 +949,6 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
         final double[] all = simpleValue.getAllDerivatives();
         all[0] = accurateValue;
         return new DerivativeStructure(simpleValue.getFreeParameters(), simpleValue.getOrder(), all);
-
     }
 
     /** {@inheritDoc}
@@ -980,7 +975,6 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
         final double[] all = simpleValue.getAllDerivatives();
         all[0] = accurateValue;
         return new DerivativeStructure(simpleValue.getFreeParameters(), simpleValue.getOrder(), all);
-
     }
 
     /** {@inheritDoc}
@@ -1025,7 +1019,6 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
         final double[] all = simpleValue.getAllDerivatives();
         all[0] = accurateValue;
         return new DerivativeStructure(getFreeParameters(), getOrder(), all);
-
     }
 
     /** {@inheritDoc}
@@ -1050,7 +1043,6 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
         final double[] all = simpleValue.getAllDerivatives();
         all[0] = accurateValue;
         return new DerivativeStructure(getFreeParameters(), getOrder(), all);
-
     }
 
     /** {@inheritDoc}
@@ -1154,7 +1146,6 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
         }
 
         return false;
-
     }
 
     /**
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/FiniteDifferencesDifferentiator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/FiniteDifferencesDifferentiator.java
index 0c422a71b..f04e8e924 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/FiniteDifferencesDifferentiator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/FiniteDifferencesDifferentiator.java
@@ -154,7 +154,6 @@ public class FiniteDifferencesDifferentiator
         final double safety = JdkMath.ulp(halfSampleSpan);
         this.tMin = tLower + halfSampleSpan + safety;
         this.tMax = tUpper - halfSampleSpan - safety;
-
     }
 
     /**
@@ -203,7 +202,6 @@ public class FiniteDifferencesDifferentiator
 
             // update the top diagonal of the divided differences array
             top[i] = bottom[0];
-
         }
 
         // evaluate interpolation polynomial (represented by top diagonal) at t
@@ -227,7 +225,6 @@ public class FiniteDifferencesDifferentiator
         }
 
         return interpolation;
-
     }
 
     /** {@inheritDoc}
@@ -267,9 +264,7 @@ public class FiniteDifferencesDifferentiator
 
                 // evaluate derivatives
                 return evaluate(t, t0, y);
-
             }
-
         };
     }
 
@@ -321,9 +316,7 @@ public class FiniteDifferencesDifferentiator
                 }
 
                 return value;
-
             }
-
         };
     }
 
@@ -379,10 +372,7 @@ public class FiniteDifferencesDifferentiator
                 }
 
                 return value;
-
             }
-
         };
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/GradientFunction.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/GradientFunction.java
index c9c9d33b3..66d55709e 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/GradientFunction.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/GradientFunction.java
@@ -60,7 +60,5 @@ public class GradientFunction implements MultivariateVectorFunction {
         }
 
         return y;
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/JacobianFunction.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/JacobianFunction.java
index 479595072..336956794 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/JacobianFunction.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/JacobianFunction.java
@@ -64,7 +64,5 @@ public class JacobianFunction implements MultivariateMatrixFunction {
         }
 
         return y;
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/MultivariateDifferentiableVectorFunction.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/MultivariateDifferentiableVectorFunction.java
index 31426eb42..fa0f8a1f0 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/MultivariateDifferentiableVectorFunction.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/MultivariateDifferentiableVectorFunction.java
@@ -39,5 +39,4 @@ public interface MultivariateDifferentiableVectorFunction
      */
     DerivativeStructure[] value(DerivativeStructure[] point)
         throws MathIllegalArgumentException;
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/SparseGradient.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/SparseGradient.java
index 579eeb64c..bb4686785 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/SparseGradient.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/SparseGradient.java
@@ -316,7 +316,6 @@ public final class SparseGradient implements RealFieldElement<SparseGradient> {
             public Class<? extends FieldElement<SparseGradient>> getRuntimeClass() {
                 return SparseGradient.class;
             }
-
         };
     }
 
@@ -335,7 +334,6 @@ public final class SparseGradient implements RealFieldElement<SparseGradient> {
         final double k   = JdkMath.rint((value - rem) / a.value);
 
         return subtract(a.multiply(k));
-
     }
 
     /** {@inheritDoc} */
@@ -443,9 +441,7 @@ public final class SparseGradient implements RealFieldElement<SparseGradient> {
 
                 // remove scaling
                 return scaledH.scalb(middleExp);
-
             }
-
         }
     }
 
@@ -625,20 +621,17 @@ public final class SparseGradient implements RealFieldElement<SparseGradient> {
 
             // compute atan2(y, x) = 2 atan(y / (r + x))
             a = divide(r.add(x)).atan().multiply(2);
-
         } else {
 
             // compute atan2(y, x) = +/- pi - 2 atan(y / (r - x))
             final SparseGradient tmp = divide(r.subtract(x)).atan().multiply(-2);
             a = tmp.add(tmp.value <= 0 ? -JdkMath.PI : JdkMath.PI);
-
         }
 
         // fix value to take special cases (+0/+0, +0/-0, -0/+0, -0/-0, +/-infinity) correctly
         a.value = JdkMath.atan2(value, x.value);
 
         return a;
-
     }
 
     /** Two arguments arc tangent operation.
@@ -833,7 +826,6 @@ public final class SparseGradient implements RealFieldElement<SparseGradient> {
             .addProduct(a3, b3.value).getAsDouble();
 
         return out;
-
     }
 
     /** {@inheritDoc} */
@@ -912,7 +904,6 @@ public final class SparseGradient implements RealFieldElement<SparseGradient> {
         }
 
         return false;
-
     }
 
     /**
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/UnivariateDifferentiableMatrixFunction.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/UnivariateDifferentiableMatrixFunction.java
index 49d510640..e694ede8c 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/UnivariateDifferentiableMatrixFunction.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/UnivariateDifferentiableMatrixFunction.java
@@ -36,5 +36,4 @@ public interface UnivariateDifferentiableMatrixFunction
      * derivative order for example)
      */
     DerivativeStructure[][] value(DerivativeStructure x) throws MathIllegalArgumentException;
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/UnivariateDifferentiableVectorFunction.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/UnivariateDifferentiableVectorFunction.java
index 0304675b6..f663e5d99 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/UnivariateDifferentiableVectorFunction.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/UnivariateDifferentiableVectorFunction.java
@@ -36,5 +36,4 @@ public interface UnivariateDifferentiableVectorFunction
      * derivative order for example)
      */
     DerivativeStructure[] value(DerivativeStructure x) throws MathIllegalArgumentException;
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/UnivariateFunctionDifferentiator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/UnivariateFunctionDifferentiator.java
index c9ef9c134..450a2c951 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/UnivariateFunctionDifferentiator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/UnivariateFunctionDifferentiator.java
@@ -29,5 +29,4 @@ public interface UnivariateFunctionDifferentiator {
      * @return differential function
      */
     UnivariateDifferentiableFunction differentiate(UnivariateFunction function);
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/UnivariateMatrixFunctionDifferentiator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/UnivariateMatrixFunctionDifferentiator.java
index fe21d51b6..c0a2fbfc1 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/UnivariateMatrixFunctionDifferentiator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/UnivariateMatrixFunctionDifferentiator.java
@@ -29,5 +29,4 @@ public interface UnivariateMatrixFunctionDifferentiator {
      * @return differential function
      */
     UnivariateDifferentiableMatrixFunction differentiate(UnivariateMatrixFunction function);
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/UnivariateVectorFunctionDifferentiator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/UnivariateVectorFunctionDifferentiator.java
index 5fb7ff7ad..46fb4c870 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/UnivariateVectorFunctionDifferentiator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/UnivariateVectorFunctionDifferentiator.java
@@ -29,5 +29,4 @@ public interface UnivariateVectorFunctionDifferentiator {
      * @return differential function
      */
     UnivariateDifferentiableVectorFunction differentiate(UnivariateVectorFunction function);
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Acos.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Acos.java
index b6309387a..43dcd9201 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Acos.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Acos.java
@@ -40,5 +40,4 @@ public class Acos implements UnivariateDifferentiableFunction {
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.acos();
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Acosh.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Acosh.java
index 8ace23c20..02a689a92 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Acosh.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Acosh.java
@@ -40,5 +40,4 @@ public class Acosh implements UnivariateDifferentiableFunction {
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.acosh();
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Asin.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Asin.java
index 8a8a56590..8a51abd6e 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Asin.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Asin.java
@@ -40,5 +40,4 @@ public class Asin implements UnivariateDifferentiableFunction {
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.asin();
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Asinh.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Asinh.java
index 0da7c05a1..bd6b1456c 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Asinh.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Asinh.java
@@ -40,5 +40,4 @@ public class Asinh implements UnivariateDifferentiableFunction {
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.asinh();
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Atan.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Atan.java
index 99d508564..da53d4c4f 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Atan.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Atan.java
@@ -40,5 +40,4 @@ public class Atan implements UnivariateDifferentiableFunction {
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.atan();
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Atanh.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Atanh.java
index 588599fc4..0e4b0a3e9 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Atanh.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Atanh.java
@@ -40,5 +40,4 @@ public class Atanh implements UnivariateDifferentiableFunction {
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.atanh();
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Cbrt.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Cbrt.java
index 26f7225bf..1b0b87a5f 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Cbrt.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Cbrt.java
@@ -40,5 +40,4 @@ public class Cbrt implements UnivariateDifferentiableFunction {
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.cbrt();
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Constant.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Constant.java
index 6a1158a3d..efe0346fe 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Constant.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Constant.java
@@ -49,5 +49,4 @@ public class Constant implements UnivariateDifferentiableFunction {
     public DerivativeStructure value(final DerivativeStructure t) {
         return new DerivativeStructure(t.getFreeParameters(), t.getOrder(), c);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Cos.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Cos.java
index 7751f5cd3..6b1115a3f 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Cos.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Cos.java
@@ -40,5 +40,4 @@ public class Cos implements UnivariateDifferentiableFunction {
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.cos();
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Cosh.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Cosh.java
index f172f3750..8a45ad919 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Cosh.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Cosh.java
@@ -40,5 +40,4 @@ public class Cosh implements UnivariateDifferentiableFunction {
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.cosh();
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Exp.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Exp.java
index 49192a8b6..71a2847ba 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Exp.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Exp.java
@@ -40,5 +40,4 @@ public class Exp implements UnivariateDifferentiableFunction {
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.exp();
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Expm1.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Expm1.java
index 767e4b233..d8ee9e71c 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Expm1.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Expm1.java
@@ -40,5 +40,4 @@ public class Expm1 implements UnivariateDifferentiableFunction {
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.expm1();
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Gaussian.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Gaussian.java
index 0ac316afa..648bf493b 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Gaussian.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Gaussian.java
@@ -241,12 +241,9 @@ public class Gaussian implements UnivariateDifferentiableFunction {
 
                 coeff *= is;
                 f[n] = coeff * v;
-
             }
         }
 
         return t.compose(f);
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/HarmonicOscillator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/HarmonicOscillator.java
index e3df48d57..11d7a970d 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/HarmonicOscillator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/HarmonicOscillator.java
@@ -170,7 +170,5 @@ public class HarmonicOscillator implements UnivariateDifferentiableFunction {
         }
 
         return t.compose(f);
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Identity.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Identity.java
index 70df25d6c..8912c3f5f 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Identity.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Identity.java
@@ -39,5 +39,4 @@ public class Identity implements UnivariateDifferentiableFunction {
     public DerivativeStructure value(final DerivativeStructure t) {
         return t;
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Inverse.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Inverse.java
index d908cd412..b724eac3b 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Inverse.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Inverse.java
@@ -39,5 +39,4 @@ public class Inverse implements UnivariateDifferentiableFunction {
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.reciprocal();
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Log.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Log.java
index 99bf7eded..a8c20ced0 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Log.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Log.java
@@ -40,5 +40,4 @@ public class Log implements UnivariateDifferentiableFunction {
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.log();
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Log10.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Log10.java
index 57ba7882a..88c01d9b8 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Log10.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Log10.java
@@ -41,5 +41,4 @@ public class Log10 implements UnivariateDifferentiableFunction {
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.log10();
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Log1p.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Log1p.java
index 474a4c7c4..464620877 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Log1p.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Log1p.java
@@ -40,5 +40,4 @@ public class Log1p implements UnivariateDifferentiableFunction {
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.log1p();
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Logistic.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Logistic.java
index 3c38b71e2..a0438581c 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Logistic.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Logistic.java
@@ -217,5 +217,4 @@ public class Logistic implements UnivariateDifferentiableFunction {
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.negate().add(m).multiply(b).exp().multiply(q).add(1).pow(oneOverN).reciprocal().multiply(k - a).add(a);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Logit.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Logit.java
index 9b9ce73a9..2f76a5eb5 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Logit.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Logit.java
@@ -185,7 +185,6 @@ public class Logit implements UnivariateDifferentiableFunction {
             for (int i = 2; i < f.length; ++i) {
                 f[i] = f[i - 2];
             }
-
         } else {
 
             // function derivatives
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Minus.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Minus.java
index 4715b2163..c092b1bc4 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Minus.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Minus.java
@@ -39,5 +39,4 @@ public class Minus implements UnivariateDifferentiableFunction {
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.negate();
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Power.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Power.java
index 2342d15d2..9c88fa26d 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Power.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Power.java
@@ -50,5 +50,4 @@ public class Power implements UnivariateDifferentiableFunction {
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.pow(p);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Sigmoid.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Sigmoid.java
index 46eb5858e..e007dc4e2 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Sigmoid.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Sigmoid.java
@@ -167,7 +167,6 @@ public class Sigmoid implements UnivariateDifferentiableFunction {
             // special handling near lower boundary, to avoid NaN
             f[0] = lo;
             Arrays.fill(f, 1, f.length, 0.0);
-
         } else {
 
             // the nth order derivative of sigmoid has the form:
@@ -196,16 +195,12 @@ public class Sigmoid implements UnivariateDifferentiableFunction {
 
                 coeff *= inv;
                 f[n]   = coeff * v;
-
             }
 
             // fix function value
             f[0] += lo;
-
         }
 
         return t.compose(f);
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Sin.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Sin.java
index c5b82c981..8df8a44b6 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Sin.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Sin.java
@@ -40,5 +40,4 @@ public class Sin implements UnivariateDifferentiableFunction {
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.sin();
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Sinc.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Sinc.java
index 1de98df2a..4179436aa 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Sinc.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Sinc.java
@@ -118,7 +118,6 @@ public class Sinc implements UnivariateDifferentiableFunction {
                            (1.0 / (i + 2) - scaledX2 * (1.0 / (6 * i + 24) - scaledX2 / (120 * i + 720)));
                 }
             }
-
         } else {
 
             final double inv = 1 / scaledX;
@@ -169,16 +168,13 @@ public class Sinc implements UnivariateDifferentiableFunction {
                     // cosine part
                     sc[k - 1] = (k - 1 - n) * sc[k - 1] + sc[k -2];
                     c         = c * scaledX2 + sc[k - 1];
-
                 }
                 sc[0] *= -n;
                 s      = s * scaledX2 + sc[0];
 
                 coeff *= inv;
                 f[n]   = coeff * (s * sin + c * scaledX * cos);
-
             }
-
         }
 
         if (normalized) {
@@ -190,7 +186,5 @@ public class Sinc implements UnivariateDifferentiableFunction {
         }
 
         return t.compose(f);
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Sinh.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Sinh.java
index 3c6f85147..7959fcbed 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Sinh.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Sinh.java
@@ -40,5 +40,4 @@ public class Sinh implements UnivariateDifferentiableFunction {
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.sinh();
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Sqrt.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Sqrt.java
index 35ec90ed2..b7f1a367b 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Sqrt.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Sqrt.java
@@ -40,5 +40,4 @@ public class Sqrt implements UnivariateDifferentiableFunction {
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.sqrt();
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Tan.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Tan.java
index 626bd142a..732168c65 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Tan.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Tan.java
@@ -40,5 +40,4 @@ public class Tan implements UnivariateDifferentiableFunction {
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.tan();
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Tanh.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Tanh.java
index d539d4450..c06182d85 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Tanh.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/function/Tanh.java
@@ -40,5 +40,4 @@ public class Tanh implements UnivariateDifferentiableFunction {
     public DerivativeStructure value(final DerivativeStructure t) {
         return t.tanh();
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/integration/MidPointIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/integration/MidPointIntegrator.java
index b69836850..8065dd038 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/integration/MidPointIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/integration/MidPointIntegrator.java
@@ -161,7 +161,5 @@ public class MidPointIntegrator extends BaseAbstractUnivariateIntegrator {
             }
             oldt = t;
         }
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/integration/RombergIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/integration/RombergIntegrator.java
index 3513fce47..a18cb1883 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/integration/RombergIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/integration/RombergIntegrator.java
@@ -128,7 +128,5 @@ public class RombergIntegrator extends BaseAbstractUnivariateIntegrator {
             }
             olds = s;
         }
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/integration/UnivariateIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/integration/UnivariateIntegrator.java
index 338111d75..eaa7808e5 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/integration/UnivariateIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/integration/UnivariateIntegrator.java
@@ -84,5 +84,4 @@ public interface UnivariateIntegrator {
      * @return number of iterations
      */
     int getIterations();
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/AkimaSplineInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/AkimaSplineInterpolator.java
index 740b5a01a..3be4dab3d 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/AkimaSplineInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/AkimaSplineInterpolator.java
@@ -243,6 +243,5 @@ public class AkimaSplineInterpolator
         }
 
         return new PolynomialSplineFunction(xvals, polynomials);
-
     }
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/BicubicInterpolatingFunction.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/BicubicInterpolatingFunction.java
index 11a02a235..9eecad0d4 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/BicubicInterpolatingFunction.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/BicubicInterpolatingFunction.java
@@ -362,7 +362,6 @@ public class BicubicInterpolatingFunction
 
         return a;
     }
-
 }
 
 /**
@@ -580,5 +579,4 @@ class BicubicFunction implements BivariateFunction {
     BivariateFunction partialDerivativeXY() {
         return partialDerivativeXY;
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/FieldHermiteInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/FieldHermiteInterpolator.java
index 587bedd21..6eecfe925 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/FieldHermiteInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/FieldHermiteInterpolator.java
@@ -125,9 +125,7 @@ public class FieldHermiteInterpolator<T extends FieldElement<T>> {
 
             // update the abscissae array
             abscissae.add(x);
-
         }
-
     }
 
     /** Interpolate value at a specified abscissa.
@@ -156,7 +154,6 @@ public class FieldHermiteInterpolator<T extends FieldElement<T>> {
         }
 
         return value;
-
     }
 
     /** Interpolate value and first derivatives at a specified abscissa.
@@ -203,7 +200,5 @@ public class FieldHermiteInterpolator<T extends FieldElement<T>> {
         }
 
         return derivatives;
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/HermiteInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/HermiteInterpolator.java
index 8e24b6d8a..49a7d4c3c 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/HermiteInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/HermiteInterpolator.java
@@ -119,9 +119,7 @@ public class HermiteInterpolator implements UnivariateDifferentiableVectorFuncti
 
             // update the abscissae array
             abscissae.add(x);
-
         }
-
     }
 
     /** Compute the interpolation polynomials.
@@ -152,7 +150,6 @@ public class HermiteInterpolator implements UnivariateDifferentiableVectorFuncti
         }
 
         return polynomials;
-
     }
 
     /** Interpolate value at a specified abscissa.
@@ -184,7 +181,6 @@ public class HermiteInterpolator implements UnivariateDifferentiableVectorFuncti
         }
 
         return value;
-
     }
 
     /** Interpolate value at a specified abscissa.
@@ -218,7 +214,6 @@ public class HermiteInterpolator implements UnivariateDifferentiableVectorFuncti
         }
 
         return value;
-
     }
 
     /** Check interpolation can be performed.
@@ -238,5 +233,4 @@ public class HermiteInterpolator implements UnivariateDifferentiableVectorFuncti
     private PolynomialFunction polynomial(double ... c) {
         return new PolynomialFunction(c);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/polynomials/PolynomialFunctionNewtonForm.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/polynomials/PolynomialFunctionNewtonForm.java
index d2534c227..7f00cafbd 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/polynomials/PolynomialFunctionNewtonForm.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/polynomials/PolynomialFunctionNewtonForm.java
@@ -111,7 +111,6 @@ public class PolynomialFunctionNewtonForm implements UnivariateDifferentiableFun
         }
 
         return value;
-
     }
 
     /**
@@ -242,5 +241,4 @@ public class PolynomialFunctionNewtonForm implements UnivariateDifferentiableFun
                                                  a.length, c.length);
         }
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/polynomials/PolynomialsUtils.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/polynomials/PolynomialsUtils.java
index 08ce03e9d..65f8134bc 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/polynomials/PolynomialsUtils.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/polynomials/PolynomialsUtils.java
@@ -83,7 +83,6 @@ public final class PolynomialsUtils {
 
         // initialize map for Jacobi polynomials
         JACOBI_COEFFICIENTS = new HashMap<>();
-
     }
 
     /**
@@ -241,7 +240,6 @@ public final class PolynomialsUtils {
             // P1(x) = (v - w) / 2 + (2 + v + w) * X / 2
             list.add(BigFraction.of(v - w, 2));
             list.add(BigFraction.of(2 + v + w, 2));
-
         }
 
         return buildPolynomial(degree, JACOBI_COEFFICIENTS.get(key),
@@ -263,7 +261,6 @@ public final class PolynomialsUtils {
                 };
             }
         });
-
     }
 
     /** Inner class for Jacobi polynomials keys. */
@@ -305,7 +302,6 @@ public final class PolynomialsUtils {
 
             final JacobiKey otherK = (JacobiKey) key;
             return (v == otherK.v) && (w == otherK.w);
-
         }
     }
 
@@ -393,7 +389,6 @@ public final class PolynomialsUtils {
 
         // build the polynomial
         return new PolynomialFunction(a);
-
     }
 
     /** Compute polynomial coefficients up to a given degree.
@@ -437,9 +432,7 @@ public final class PolynomialsUtils {
 
             // degree k+1 coefficient
             coefficients.add(ck.multiply(ai[1]));
-
         }
-
     }
 
     /** Interface for recurrence coefficients generation. */
@@ -452,5 +445,4 @@ public final class PolynomialsUtils {
          */
         BigFraction[] generate(int k);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/AllowedSolution.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/AllowedSolution.java
index 84df56b34..8e94fbc2d 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/AllowedSolution.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/AllowedSolution.java
@@ -71,5 +71,4 @@ public enum AllowedSolution {
      * a root at x = x0, then the root-finding result s must satisfy f(s) &gt;= 0.
      */
     ABOVE_SIDE;
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/BaseSecantSolver.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/BaseSecantSolver.java
index ff1f7533c..6691265a2 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/BaseSecantSolver.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/BaseSecantSolver.java
@@ -275,6 +275,5 @@ public abstract class BaseSecantSolver
 
         /** The {@link PegasusSolver <em>Pegasus</em>} method. */
         PEGASUS;
-
     }
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/BracketedRealFieldUnivariateSolver.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/BracketedRealFieldUnivariateSolver.java
index 623dee7e0..69ad50ea3 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/BracketedRealFieldUnivariateSolver.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/BracketedRealFieldUnivariateSolver.java
@@ -138,5 +138,4 @@ public interface BracketedRealFieldUnivariateSolver<T extends RealFieldElement<T
      */
     T solve(int maxEval, RealFieldUnivariateFunction<T> f, T min, T max, T startValue,
             AllowedSolution allowedSolution);
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/BracketedUnivariateSolver.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/BracketedUnivariateSolver.java
index 5ca386cf9..2b479c266 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/BracketedUnivariateSolver.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/BracketedUnivariateSolver.java
@@ -88,5 +88,4 @@ public interface BracketedUnivariateSolver<FUNC extends UnivariateFunction>
      */
     double solve(int maxEval, FUNC f, double min, double max, double startValue,
                  AllowedSolution allowedSolution);
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/BracketingNthOrderBrentSolver.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/BracketingNthOrderBrentSolver.java
index f314a6df2..9ab59164f 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/BracketingNthOrderBrentSolver.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/BracketingNthOrderBrentSolver.java
@@ -173,7 +173,6 @@ public class BracketingNthOrderBrentSolver
             // reduce interval if it brackets the root
             nbPoints        = 2;
             signChangeIndex = 1;
-
         } else {
 
             // evaluate second endpoint
@@ -190,7 +189,6 @@ public class BracketingNthOrderBrentSolver
             } else {
                 throw new NoBracketingException(x[0], x[2], y[0], y[2]);
             }
-
         }
 
         // prepare a work array for inverse polynomial interpolation
@@ -275,9 +273,7 @@ public class BracketingNthOrderBrentSolver
 
                     // we need to do one more attempt
                     nextX = Double.NaN;
-
                 }
-
             } while (Double.isNaN(nextX) && (end - start > 1));
 
             if (Double.isNaN(nextX)) {
@@ -303,7 +299,6 @@ public class BracketingNthOrderBrentSolver
                 System.arraycopy(x, start, x, 0, nbPoints);
                 System.arraycopy(y, start, y, 0, nbPoints);
                 signChangeIndex -= start;
-
             } else  if (nbPoints == x.length) {
 
                 // we have to drop one point in order to insert the new one
@@ -316,7 +311,6 @@ public class BracketingNthOrderBrentSolver
                     System.arraycopy(y, 1, y, 0, nbPoints);
                     --signChangeIndex;
                 }
-
             }
 
             // insert the last computed point
@@ -345,11 +339,8 @@ public class BracketingNthOrderBrentSolver
 
                 // update the sign change index
                 signChangeIndex++;
-
             }
-
         }
-
     }
 
     /** Guess an x value by n<sup>th</sup> order inverse polynomial interpolation.
@@ -384,7 +375,6 @@ public class BracketingNthOrderBrentSolver
         }
 
         return x0;
-
     }
 
     /** {@inheritDoc} */
@@ -409,5 +399,4 @@ public class BracketingNthOrderBrentSolver
         this.allowed = allowedSolution;
         return super.solve(maxEval, f, min, max, startValue);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/FieldBracketingNthOrderBrentSolver.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/FieldBracketingNthOrderBrentSolver.java
index de9176aa4..31d973c14 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/FieldBracketingNthOrderBrentSolver.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/FieldBracketingNthOrderBrentSolver.java
@@ -234,7 +234,6 @@ public class FieldBracketingNthOrderBrentSolver<T extends RealFieldElement<T>>
             // reduce interval if it brackets the root
             nbPoints        = 2;
             signChangeIndex = 1;
-
         } else {
 
             // evaluate second endpoint
@@ -253,7 +252,6 @@ public class FieldBracketingNthOrderBrentSolver<T extends RealFieldElement<T>>
                 throw new NoBracketingException(x[0].getReal(), x[2].getReal(),
                                                 y[0].getReal(), y[2].getReal());
             }
-
         }
 
         // prepare a work array for inverse polynomial interpolation
@@ -336,9 +334,7 @@ public class FieldBracketingNthOrderBrentSolver<T extends RealFieldElement<T>>
 
                     // we need to do one more attempt
                     nextX = nan;
-
                 }
-
             } while (Double.isNaN(nextX.getReal()) && (end - start > 1));
 
             if (Double.isNaN(nextX.getReal())) {
@@ -365,7 +361,6 @@ public class FieldBracketingNthOrderBrentSolver<T extends RealFieldElement<T>>
                 System.arraycopy(x, start, x, 0, nbPoints);
                 System.arraycopy(y, start, y, 0, nbPoints);
                 signChangeIndex -= start;
-
             } else  if (nbPoints == x.length) {
 
                 // we have to drop one point in order to insert the new one
@@ -378,7 +373,6 @@ public class FieldBracketingNthOrderBrentSolver<T extends RealFieldElement<T>>
                     System.arraycopy(y, 1, y, 0, nbPoints);
                     --signChangeIndex;
                 }
-
             }
 
             // insert the last computed point
@@ -407,11 +401,8 @@ public class FieldBracketingNthOrderBrentSolver<T extends RealFieldElement<T>>
 
                 // update the sign change index
                 signChangeIndex++;
-
             }
-
         }
-
     }
 
     /** Guess an x value by n<sup>th</sup> order inverse polynomial interpolation.
@@ -446,7 +437,5 @@ public class FieldBracketingNthOrderBrentSolver<T extends RealFieldElement<T>>
         }
 
         return x0;
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/SecantSolver.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/SecantSolver.java
index 14d9cb2d5..8d977de7d 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/SecantSolver.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/SecantSolver.java
@@ -131,5 +131,4 @@ public class SecantSolver extends AbstractUnivariateSolver {
             }
         }
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/UnivariateSolverUtils.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/UnivariateSolverUtils.java
index d8cfdb91e..f6c9234f5 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/UnivariateSolverUtils.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/UnivariateSolverUtils.java
@@ -161,14 +161,12 @@ public final class UnivariateSolverUtils {
                 fHi  = f.value(xHi);
                 remainingEval--;
             }
-
         }
 
         throw new NoBracketingException(LocalizedFormats.FAILED_BRACKETING,
                                         xLo, xHi, fLo, fHi,
                                         maxEval - remainingEval, maxEval, baseRoot,
                                         min, max);
-
     }
 
     /**
@@ -348,12 +346,10 @@ public final class UnivariateSolverUtils {
                     return new double[] { previousB, b };
                 }
             }
-
         }
 
         // no bracketing found
         throw new NoBracketingException(a, b, fa, fb);
-
     }
 
     /**
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/distribution/EnumeratedRealDistribution.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/distribution/EnumeratedRealDistribution.java
index d85c5eceb..4dad1247c 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/distribution/EnumeratedRealDistribution.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/distribution/EnumeratedRealDistribution.java
@@ -119,7 +119,6 @@ public class EnumeratedRealDistribution
             samples.add(new Pair<>(singletons[i], probabilities[i]));
         }
         return samples;
-
     }
 
     /**
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/distribution/fitting/MultivariateNormalMixtureExpectationMaximization.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/distribution/fitting/MultivariateNormalMixtureExpectationMaximization.java
index afca6ea7d..ad20ad5b7 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/distribution/fitting/MultivariateNormalMixtureExpectationMaximization.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/distribution/fitting/MultivariateNormalMixtureExpectationMaximization.java
@@ -435,7 +435,6 @@ public class MultivariateNormalMixtureExpectationMaximization {
             }
 
             return false;
-
         }
 
         /** {@inheritDoc} */
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/leastsquares/DenseWeightedEvaluation.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/leastsquares/DenseWeightedEvaluation.java
index e5c00a1c6..7b91a8800 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/leastsquares/DenseWeightedEvaluation.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/leastsquares/DenseWeightedEvaluation.java
@@ -67,5 +67,4 @@ class DenseWeightedEvaluation extends AbstractEvaluation {
     public RealVector getPoint() {
         return unweighted.getPoint();
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/leastsquares/EvaluationRmsChecker.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/leastsquares/EvaluationRmsChecker.java
index 124c7a8b1..5992fe235 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/leastsquares/EvaluationRmsChecker.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/leastsquares/EvaluationRmsChecker.java
@@ -72,5 +72,4 @@ public class EvaluationRmsChecker implements ConvergenceChecker<Evaluation> {
         return Precision.equals(prevRms, currRms, this.absTol) ||
                 Precision.equalsWithRelativeTolerance(prevRms, currRms, this.relTol);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/leastsquares/GaussNewtonOptimizer.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/leastsquares/GaussNewtonOptimizer.java
index 6e97a2c71..ea68f98be 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/leastsquares/GaussNewtonOptimizer.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/leastsquares/GaussNewtonOptimizer.java
@@ -296,5 +296,4 @@ public class GaussNewtonOptimizer implements LeastSquaresOptimizer {
         }
         return new Pair<>(normal, jTr);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/leastsquares/LeastSquaresOptimizer.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/leastsquares/LeastSquaresOptimizer.java
index a32190507..f063b1dd2 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/leastsquares/LeastSquaresOptimizer.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/leastsquares/LeastSquaresOptimizer.java
@@ -56,7 +56,5 @@ public interface LeastSquaresOptimizer {
          * @return the number of iterations
          */
         int getIterations();
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/leastsquares/MultivariateJacobianFunction.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/leastsquares/MultivariateJacobianFunction.java
index 9926893f6..b9d90f538 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/leastsquares/MultivariateJacobianFunction.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/leastsquares/MultivariateJacobianFunction.java
@@ -35,5 +35,4 @@ public interface MultivariateJacobianFunction {
      * @return the values and their Jacobian of this vector valued function.
      */
     Pair<RealVector, RealMatrix> value(RealVector point);
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/BinaryMutation.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/BinaryMutation.java
index ce2347190..d85ab442a 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/BinaryMutation.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/BinaryMutation.java
@@ -52,5 +52,4 @@ public class BinaryMutation implements MutationPolicy {
 
         return origChrom.newFixedLengthChromosome(newRepr);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/Chromosome.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/Chromosome.java
index e84677a01..e3230839e 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/Chromosome.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/Chromosome.java
@@ -101,5 +101,4 @@ public abstract class Chromosome implements Comparable<Chromosome>,Fitness {
             fitness = sameChromosome.getFitness();
         }
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/ElitisticListPopulation.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/ElitisticListPopulation.java
index 836160783..4bbf5749f 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/ElitisticListPopulation.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/ElitisticListPopulation.java
@@ -114,5 +114,4 @@ public class ElitisticListPopulation extends ListPopulation {
     public double getElitismRate() {
         return this.elitismRate;
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/Fitness.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/Fitness.java
index 7cb85fb00..31b5a89cb 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/Fitness.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/Fitness.java
@@ -28,5 +28,4 @@ public interface Fitness {
      * @return fitness
      */
     double fitness();
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/FixedGenerationCount.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/FixedGenerationCount.java
index bc8f59588..0f590ee8c 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/FixedGenerationCount.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/FixedGenerationCount.java
@@ -70,5 +70,4 @@ public class FixedGenerationCount implements StoppingCondition {
     public int getNumGenerations() {
         return numGenerations;
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/GeneticAlgorithm.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/GeneticAlgorithm.java
index 0d120aa6f..827c05b3d 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/GeneticAlgorithm.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/GeneticAlgorithm.java
@@ -228,5 +228,4 @@ public class GeneticAlgorithm {
     public int getGenerationsEvolved() {
         return generationsEvolved;
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/InvalidRepresentationException.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/InvalidRepresentationException.java
index 6d2669c51..60a28e35d 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/InvalidRepresentationException.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/InvalidRepresentationException.java
@@ -38,5 +38,4 @@ public class InvalidRepresentationException extends MathIllegalArgumentException
     public InvalidRepresentationException(Localizable pattern, Object ... args) {
        super(pattern, args);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/OnePointCrossover.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/OnePointCrossover.java
index 88c438aa7..a10707724 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/OnePointCrossover.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/OnePointCrossover.java
@@ -125,5 +125,4 @@ public class OnePointCrossover<T> implements CrossoverPolicy {
         return new ChromosomePair(first.newFixedLengthChromosome(child1Rep),
                                   second.newFixedLengthChromosome(child2Rep));
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/PermutationChromosome.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/PermutationChromosome.java
index 6891c414a..5e065c4de 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/PermutationChromosome.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/PermutationChromosome.java
@@ -36,5 +36,4 @@ public interface PermutationChromosome<T> {
      * @return permutation of <code>sequence</code> represented by this permutation
      */
     List<T> decode(List<T> sequence);
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/RandomKeyMutation.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/RandomKeyMutation.java
index 0de2850a8..be5d9f023 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/RandomKeyMutation.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/RandomKeyMutation.java
@@ -51,5 +51,4 @@ public class RandomKeyMutation implements MutationPolicy {
 
         return originalRk.newFixedLengthChromosome(newRepr);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/TournamentSelection.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/TournamentSelection.java
index 7374376be..847c1bb34 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/TournamentSelection.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/genetics/TournamentSelection.java
@@ -113,5 +113,4 @@ public class TournamentSelection implements SelectionPolicy {
     public void setArity(final int arity) {
         this.arity = arity;
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/AbstractFieldMatrix.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/AbstractFieldMatrix.java
index 777174222..635d97060 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/AbstractFieldMatrix.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/AbstractFieldMatrix.java
@@ -330,7 +330,6 @@ public abstract class AbstractFieldMatrix<T extends FieldElement<T>>
         }
 
         return subMatrix;
-
     }
 
     /** {@inheritDoc} */
@@ -352,11 +351,9 @@ public abstract class AbstractFieldMatrix<T extends FieldElement<T>>
             public T visit(final int row, final int column, final T value) {
                 return getEntry(selectedRows[row], selectedColumns[column]);
             }
-
         });
 
         return subMatrix;
-
     }
 
     /** {@inheritDoc} */
@@ -400,9 +397,7 @@ public abstract class AbstractFieldMatrix<T extends FieldElement<T>>
             public void visit(final int row, final int column, final T value) {
                 destination[row - startRow][column - startColumn] = value;
             }
-
         }, startRow, endRow, startColumn, endColumn);
-
     }
 
     /** {@inheritDoc} */
@@ -427,7 +422,6 @@ public abstract class AbstractFieldMatrix<T extends FieldElement<T>>
                 destinationI[j] = getEntry(selectedRows[i], selectedColumns[j]);
             }
         }
-
     }
 
     /** {@inheritDoc} */
@@ -478,7 +472,6 @@ public abstract class AbstractFieldMatrix<T extends FieldElement<T>>
         }
 
         return out;
-
     }
 
     /** {@inheritDoc} */
@@ -496,7 +489,6 @@ public abstract class AbstractFieldMatrix<T extends FieldElement<T>>
         for (int i = 0; i < nCols; ++i) {
             setEntry(row, i, matrix.getEntry(0, i));
         }
-
     }
 
     /** {@inheritDoc} */
@@ -512,7 +504,6 @@ public abstract class AbstractFieldMatrix<T extends FieldElement<T>>
         }
 
         return out;
-
     }
 
     /** {@inheritDoc} */
@@ -530,7 +521,6 @@ public abstract class AbstractFieldMatrix<T extends FieldElement<T>>
         for (int i = 0; i < nRows; ++i) {
             setEntry(i, column, matrix.getEntry(i, 0));
         }
-
     }
 
     /** {@inheritDoc} */
@@ -553,7 +543,6 @@ public abstract class AbstractFieldMatrix<T extends FieldElement<T>>
         for (int i = 0; i < nCols; ++i) {
             setEntry(row, i, vector.getEntry(i));
         }
-
     }
 
     /** {@inheritDoc} */
@@ -577,7 +566,6 @@ public abstract class AbstractFieldMatrix<T extends FieldElement<T>>
         for (int i = 0; i < nRows; ++i) {
             setEntry(i, column, vector.getEntry(i));
         }
-
     }
 
     /** {@inheritDoc} */
@@ -591,7 +579,6 @@ public abstract class AbstractFieldMatrix<T extends FieldElement<T>>
         }
 
         return out;
-
     }
 
     /** {@inheritDoc} */
@@ -606,7 +593,6 @@ public abstract class AbstractFieldMatrix<T extends FieldElement<T>>
         for (int i = 0; i < nCols; ++i) {
             setEntry(row, i, array[i]);
         }
-
     }
 
     /** {@inheritDoc} */
@@ -620,7 +606,6 @@ public abstract class AbstractFieldMatrix<T extends FieldElement<T>>
         }
 
         return out;
-
     }
 
     /** {@inheritDoc} */
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/AbstractRealMatrix.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/AbstractRealMatrix.java
index 6373041e0..5feb7e507 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/AbstractRealMatrix.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/AbstractRealMatrix.java
@@ -349,7 +349,6 @@ public abstract class AbstractRealMatrix
             public double visit(final int row, final int column, final double value) {
                 return getEntry(selectedRows[row], selectedColumns[column]);
             }
-
         });
 
         return subMatrix;
@@ -399,7 +398,6 @@ public abstract class AbstractRealMatrix
             public void visit(final int row, final int column, final double value) {
                 destination[row - startRow][column - startColumn] = value;
             }
-
         }, startRow, endRow, startColumn, endColumn);
     }
 
@@ -651,7 +649,6 @@ public abstract class AbstractRealMatrix
             public void visit(final int row, final int column, final double value) {
                 out.setEntry(column, row, value);
             }
-
         });
 
         return out;
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/Array2DRowFieldMatrix.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/Array2DRowFieldMatrix.java
index f2ce22c36..df6f56832 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/Array2DRowFieldMatrix.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/Array2DRowFieldMatrix.java
@@ -270,7 +270,6 @@ public class Array2DRowFieldMatrix<T extends FieldElement<T>>
         }
 
         return new Array2DRowFieldMatrix<>(getField(), outData, false);
-
     }
 
     /**
@@ -303,7 +302,6 @@ public class Array2DRowFieldMatrix<T extends FieldElement<T>>
         }
 
         return new Array2DRowFieldMatrix<>(getField(), outData, false);
-
     }
 
     /** {@inheritDoc} */
@@ -354,7 +352,6 @@ public class Array2DRowFieldMatrix<T extends FieldElement<T>>
         } else {
             super.setSubMatrix(subMatrix, row, column);
         }
-
     }
 
     /** {@inheritDoc} */
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/Array2DRowRealMatrix.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/Array2DRowRealMatrix.java
index 830297bbf..b7f42fe69 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/Array2DRowRealMatrix.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/Array2DRowRealMatrix.java
@@ -293,7 +293,6 @@ public class Array2DRowRealMatrix extends AbstractRealMatrix implements Serializ
         } else {
             super.setSubMatrix(subMatrix, row, column);
         }
-
     }
 
     /** {@inheritDoc} */
@@ -383,7 +382,6 @@ public class Array2DRowRealMatrix extends AbstractRealMatrix implements Serializ
         }
 
         return out;
-
     }
 
     /** {@inheritDoc} */
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/ArrayFieldVector.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/ArrayFieldVector.java
index 46789ddab..4ff9a6f12 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/ArrayFieldVector.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/ArrayFieldVector.java
@@ -1118,5 +1118,4 @@ public class ArrayFieldVector<T extends FieldElement<T>> implements FieldVector<
                                                 end, start, false);
         }
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/BiDiagonalTransformer.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/BiDiagonalTransformer.java
index c99190ecb..57541544c 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/BiDiagonalTransformer.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/BiDiagonalTransformer.java
@@ -76,7 +76,6 @@ class BiDiagonalTransformer {
         } else {
             transformToLowerBiDiagonal();
         }
-
     }
 
     /**
@@ -126,7 +125,6 @@ class BiDiagonalTransformer {
 
         // return the cached matrix
         return cachedU;
-
     }
 
     /**
@@ -157,7 +155,6 @@ class BiDiagonalTransformer {
 
         // return the cached matrix
         return cachedB;
-
     }
 
     /**
@@ -207,7 +204,6 @@ class BiDiagonalTransformer {
 
         // return the cached matrix
         return cachedV;
-
     }
 
     /**
@@ -308,7 +304,6 @@ class BiDiagonalTransformer {
                     }
                 }
             }
-
         }
     }
 
@@ -373,8 +368,6 @@ class BiDiagonalTransformer {
                     }
                 }
             }
-
         }
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/BigRealField.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/BigRealField.java
index 1fcc8689b..5db77293f 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/BigRealField.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/BigRealField.java
@@ -82,5 +82,4 @@ public final class BigRealField implements Field<BigReal>, Serializable  {
         // return the singleton instance
         return LazyHolder.INSTANCE;
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/BlockFieldMatrix.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/BlockFieldMatrix.java
index 109d2a8ad..b98fb2aec 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/BlockFieldMatrix.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/BlockFieldMatrix.java
@@ -346,7 +346,6 @@ public class BlockFieldMatrix<T extends FieldElement<T>> extends AbstractFieldMa
 
                 // go to next block
                 ++blockIndex;
-
             }
         }
 
@@ -417,7 +416,6 @@ public class BlockFieldMatrix<T extends FieldElement<T>> extends AbstractFieldMa
 
                 // go to next block
                 ++blockIndex;
-
             }
         }
 
@@ -539,7 +537,6 @@ public class BlockFieldMatrix<T extends FieldElement<T>> extends AbstractFieldMa
 
                 // go to next block
                 ++blockIndex;
-
             }
         }
 
@@ -821,7 +818,6 @@ public class BlockFieldMatrix<T extends FieldElement<T>> extends AbstractFieldMa
                                      block, (i - firstRow) * jWidth + (jStart - firstColumn),
                                      jLength);
                 }
-
             }
         }
     }
@@ -1242,7 +1238,6 @@ public class BlockFieldMatrix<T extends FieldElement<T>> extends AbstractFieldMa
 
                 // go to next block
                 ++blockIndex;
-
             }
         }
 
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/BlockRealMatrix.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/BlockRealMatrix.java
index 5182d76d4..cc5ce88f1 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/BlockRealMatrix.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/BlockRealMatrix.java
@@ -829,7 +829,6 @@ public class BlockRealMatrix extends AbstractRealMatrix implements Serializable
                                      block, (i - firstRow) * jWidth + (jStart - firstColumn),
                                      jLength);
                 }
-
             }
         }
     }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/EigenDecomposition.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/EigenDecomposition.java
index 5e8b08699..c3295e4c5 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/EigenDecomposition.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/EigenDecomposition.java
@@ -473,7 +473,6 @@ public class EigenDecomposition {
             }
 
             return new Array2DRowRealMatrix(bp, false);
-
         }
 
         /**
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/FieldLUDecomposition.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/FieldLUDecomposition.java
index 17b09454d..5a64854b9 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/FieldLUDecomposition.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/FieldLUDecomposition.java
@@ -160,7 +160,6 @@ public class FieldLUDecomposition<T extends FieldElement<T>> {
                 luRow[col] = luRow[col].divide(luDiag);
             }
         }
-
     }
 
     /**
@@ -430,7 +429,6 @@ public class FieldLUDecomposition<T extends FieldElement<T>> {
             }
 
             return new Array2DRowFieldMatrix<>(field, bp, false);
-
         }
 
         /** {@inheritDoc} */
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/FieldVector.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/FieldVector.java
index a2da59bb2..af6c11f1e 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/FieldVector.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/FieldVector.java
@@ -286,5 +286,4 @@ public interface FieldVector<T extends FieldElement<T>>  {
      * @return array containing a copy of vector elements
      */
     T[] toArray();
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/MatrixUtils.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/MatrixUtils.java
index 2c7dca5bd..a7436c475 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/MatrixUtils.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/MatrixUtils.java
@@ -692,7 +692,6 @@ public final class MatrixUtils {
                 instance.getClass().getDeclaredField(fieldName);
             f.setAccessible(true);
             f.set(instance, vector);
-
         } catch (NoSuchFieldException nsfe) {
             IOException ioe = new IOException();
             ioe.initCause(nsfe);
@@ -702,7 +701,6 @@ public final class MatrixUtils {
             ioe.initCause(iae);
             throw ioe;
         }
-
     }
 
     /** Serialize a {@link RealMatrix}.
@@ -800,7 +798,6 @@ public final class MatrixUtils {
                 instance.getClass().getDeclaredField(fieldName);
             f.setAccessible(true);
             f.set(instance, matrix);
-
         } catch (NoSuchFieldException nsfe) {
             IOException ioe = new IOException();
             ioe.initCause(nsfe);
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/OpenIntToDoubleHashMap.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/OpenIntToDoubleHashMap.java
index ea98eeba5..5ab2ae395 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/OpenIntToDoubleHashMap.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/OpenIntToDoubleHashMap.java
@@ -195,7 +195,6 @@ class OpenIntToDoubleHashMap implements Serializable { // Not in public API.
         }
 
         return missingEntries;
-
     }
 
     /**
@@ -225,7 +224,6 @@ class OpenIntToDoubleHashMap implements Serializable { // Not in public API.
         }
 
         return false;
-
     }
 
     /**
@@ -309,9 +307,7 @@ class OpenIntToDoubleHashMap implements Serializable { // Not in public API.
             }
 
             perturb >>= PERTURB_SHIFT;
-
         }
-
     }
 
     /**
@@ -369,7 +365,6 @@ class OpenIntToDoubleHashMap implements Serializable { // Not in public API.
         }
 
         return missingEntries;
-
     }
 
     /**
@@ -424,7 +419,6 @@ class OpenIntToDoubleHashMap implements Serializable { // Not in public API.
             ++count;
         }
         return previous;
-
     }
 
     /**
@@ -456,7 +450,6 @@ class OpenIntToDoubleHashMap implements Serializable { // Not in public API.
         keys   = newKeys;
         values = newValues;
         states = newStates;
-
     }
 
     /**
@@ -505,7 +498,6 @@ class OpenIntToDoubleHashMap implements Serializable { // Not in public API.
             } catch (NoSuchElementException nsee) { // NOPMD
                 // ignored
             }
-
         }
 
         /**
@@ -576,9 +568,7 @@ class OpenIntToDoubleHashMap implements Serializable { // Not in public API.
                     throw new NoSuchElementException();
                 }
             }
-
         }
-
     }
 
     /**
@@ -594,5 +584,4 @@ class OpenIntToDoubleHashMap implements Serializable { // Not in public API.
         count = 0;
     }
 
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/OpenIntToFieldHashMap.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/OpenIntToFieldHashMap.java
index 2dc00ddca..35404c95e 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/OpenIntToFieldHashMap.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/OpenIntToFieldHashMap.java
@@ -207,7 +207,6 @@ class OpenIntToFieldHashMap<T extends FieldElement<T>> implements Serializable {
         }
 
         return missingEntries;
-
     }
 
     /**
@@ -237,7 +236,6 @@ class OpenIntToFieldHashMap<T extends FieldElement<T>> implements Serializable {
         }
 
         return false;
-
     }
 
     /**
@@ -321,9 +319,7 @@ class OpenIntToFieldHashMap<T extends FieldElement<T>> implements Serializable {
             }
 
             perturb >>= PERTURB_SHIFT;
-
         }
-
     }
 
     /**
@@ -381,7 +377,6 @@ class OpenIntToFieldHashMap<T extends FieldElement<T>> implements Serializable {
         }
 
         return missingEntries;
-
     }
 
     /**
@@ -436,7 +431,6 @@ class OpenIntToFieldHashMap<T extends FieldElement<T>> implements Serializable {
             ++count;
         }
         return previous;
-
     }
 
     /**
@@ -468,7 +462,6 @@ class OpenIntToFieldHashMap<T extends FieldElement<T>> implements Serializable {
         keys   = newKeys;
         values = newValues;
         states = newStates;
-
     }
 
     /**
@@ -517,7 +510,6 @@ class OpenIntToFieldHashMap<T extends FieldElement<T>> implements Serializable {
             } catch (NoSuchElementException nsee) { // NOPMD
                 // ignored
             }
-
         }
 
         /**
@@ -588,9 +580,7 @@ class OpenIntToFieldHashMap<T extends FieldElement<T>> implements Serializable {
                     throw new NoSuchElementException();
                 }
             }
-
         }
-
     }
 
     /**
@@ -614,5 +604,4 @@ class OpenIntToFieldHashMap<T extends FieldElement<T>> implements Serializable {
     private T[] buildArray(final int length) {
         return (T[]) Array.newInstance(field.getRuntimeClass(), length);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/OpenMapRealMatrix.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/OpenMapRealMatrix.java
index 7ac52bfbe..b30151c9f 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/OpenMapRealMatrix.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/OpenMapRealMatrix.java
@@ -127,7 +127,6 @@ public class OpenMapRealMatrix extends AbstractRealMatrix
         }
 
         return out;
-
     }
 
     /** {@inheritDoc} */
@@ -303,5 +302,4 @@ public class OpenMapRealMatrix extends AbstractRealMatrix
         return row * columns + column;
     }
 
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/OpenMapRealVector.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/OpenMapRealVector.java
index 17da319d5..449a61db1 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/OpenMapRealVector.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/OpenMapRealVector.java
@@ -769,7 +769,6 @@ public class OpenMapRealVector extends SparseRealVector
         public int getIndex() {
             return iter.key();
         }
-
     }
 
     /**
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/QRDecomposition.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/QRDecomposition.java
index 20975023f..bfa49f3f6 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/QRDecomposition.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/QRDecomposition.java
@@ -104,7 +104,6 @@ public class QRDecomposition {
         cachedH  = null;
 
         decompose(qrt);
-
     }
 
     /** Decompose matrix.
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/RealMatrixFormat.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/RealMatrixFormat.java
index a7d56ca18..25f24b400 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/RealMatrixFormat.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/RealMatrixFormat.java
@@ -358,7 +358,6 @@ public class RealMatrixFormat {
                     }
                 }
             }
-
         }
 
         if (!rowComponents.isEmpty()) {
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/RealVectorFormat.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/RealVectorFormat.java
index 8a58d27a2..cc52873ff 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/RealVectorFormat.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/RealVectorFormat.java
@@ -269,7 +269,6 @@ public class RealVectorFormat {
                     return null;
                 }
             }
-
         }
 
         // parse suffix
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/RectangularCholeskyDecomposition.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/RectangularCholeskyDecomposition.java
index 9e57cd63b..b66f214c3 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/RectangularCholeskyDecomposition.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/RectangularCholeskyDecomposition.java
@@ -134,7 +134,6 @@ public class RectangularCholeskyDecomposition {
                 // all remaining diagonal elements are close to zero, we consider we have
                 // found the rank of the symmetric positive semidefinite matrix
                 loop = false;
-
             } else {
 
                 // transform the matrix
@@ -168,7 +167,6 @@ public class RectangularCholeskyDecomposition {
                 root.setEntry(index[i], j, b[i][j]);
             }
         }
-
     }
 
     /** Get the root of the covariance matrix.
@@ -191,5 +189,4 @@ public class RectangularCholeskyDecomposition {
     public int getRank() {
         return rank;
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/SingularValueDecomposition.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/SingularValueDecomposition.java
index 610ce8364..76bc1044c 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/SingularValueDecomposition.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/SingularValueDecomposition.java
@@ -294,7 +294,6 @@ public class SingularValueDecomposition {
                     e[k] = 0;
                     break;
                 }
-
             }
 
             if (k == p - 2) {
@@ -489,7 +488,6 @@ public class SingularValueDecomposition {
     public RealMatrix getU() {
         // return the cached matrix
         return cachedU;
-
     }
 
     /**
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/SparseFieldMatrix.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/SparseFieldMatrix.java
index c14397cc2..bd73abe7c 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/SparseFieldMatrix.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/SparseFieldMatrix.java
@@ -158,7 +158,6 @@ public class SparseFieldMatrix<T extends FieldElement<T>> extends AbstractFieldM
         } else {
             entries.put(key, value);
         }
-
     }
 
     /** {@inheritDoc} */
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/SparseFieldVector.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/SparseFieldVector.java
index 14ebc0aa3..e6dd04b7f 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/SparseFieldVector.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/SparseFieldVector.java
@@ -167,7 +167,6 @@ public class SparseFieldVector<T extends FieldElement<T>> implements FieldVector
             }
         }
         return res;
-
     }
 
     /**
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/SparseRealMatrix.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/SparseRealMatrix.java
index 4fcd0a8dd..6380c394c 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/SparseRealMatrix.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/SparseRealMatrix.java
@@ -30,5 +30,4 @@ package org.apache.commons.math4.legacy.linear;
  * @since 2.0
  */
 public interface SparseRealMatrix extends RealMatrix {
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/CentroidCluster.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/CentroidCluster.java
index 5cbae3bf4..3322d8855 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/CentroidCluster.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/CentroidCluster.java
@@ -45,5 +45,4 @@ public class CentroidCluster<T extends Clusterable> extends Cluster<T> {
     Clusterable getCenter() {
         return center;
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/DoublePoint.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/DoublePoint.java
index 067104111..177a27560 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/DoublePoint.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/DoublePoint.java
@@ -78,5 +78,4 @@ public class DoublePoint implements Clusterable {
     public String toString() {
         return Arrays.toString(point);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/FuzzyKMeansClusterer.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/FuzzyKMeansClusterer.java
index c5dcba5fd..973a07ce8 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/FuzzyKMeansClusterer.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/FuzzyKMeansClusterer.java
@@ -417,5 +417,4 @@ public class FuzzyKMeansClusterer<T extends Clusterable> extends Clusterer<T> {
             System.arraycopy(membershipMatrix[i], 0, matrix[i], 0, clusters.size());
         }
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/KMeansPlusPlusClusterer.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/KMeansPlusPlusClusterer.java
index 57ab66388..c7b2caafe 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/KMeansPlusPlusClusterer.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/KMeansPlusPlusClusterer.java
@@ -55,7 +55,6 @@ public class KMeansPlusPlusClusterer<T extends Clusterable> extends Clusterer<T>
 
         /** Generate an error. */
         ERROR
-
     }
 
     /** The number of clusters. */
@@ -406,7 +405,6 @@ public class KMeansPlusPlusClusterer<T extends Clusterable> extends Clusterer<T>
                         }
                     }
                 }
-
             } else {
                 // None found --
                 // Break from the while loop to prevent
@@ -444,7 +442,6 @@ public class KMeansPlusPlusClusterer<T extends Clusterable> extends Clusterer<T>
                     maxVariance = variance;
                     selected = cluster;
                 }
-
             }
         }
 
@@ -456,7 +453,6 @@ public class KMeansPlusPlusClusterer<T extends Clusterable> extends Clusterer<T>
         // extract a random point from the cluster
         final List<T> selectedPoints = selected.getPoints();
         return selectedPoints.remove(random.nextInt(selectedPoints.size()));
-
     }
 
     /**
@@ -479,7 +475,6 @@ public class KMeansPlusPlusClusterer<T extends Clusterable> extends Clusterer<T>
                 maxNumber = number;
                 selected = cluster;
             }
-
         }
 
         // did we find at least one non-empty cluster ?
@@ -490,7 +485,6 @@ public class KMeansPlusPlusClusterer<T extends Clusterable> extends Clusterer<T>
         // extract a random point from the cluster
         final List<T> selectedPoints = selected.getPoints();
         return selectedPoints.remove(random.nextInt(selectedPoints.size()));
-
     }
 
     /**
@@ -517,7 +511,6 @@ public class KMeansPlusPlusClusterer<T extends Clusterable> extends Clusterer<T>
                     selectedPoint   = i;
                 }
             }
-
         }
 
         // did we find at least one non-empty cluster ?
@@ -526,7 +519,6 @@ public class KMeansPlusPlusClusterer<T extends Clusterable> extends Clusterer<T>
         }
 
         return selectedCluster.getPoints().remove(selectedPoint);
-
     }
 
     /**
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/AbstractFieldIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/AbstractFieldIntegrator.java
index 5658f6ffd..784d78542 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/AbstractFieldIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/AbstractFieldIntegrator.java
@@ -238,7 +238,6 @@ public abstract class AbstractFieldIntegrator<T extends RealFieldElement<T>> imp
         setStateInitialized(false);
 
         return state0;
-
     }
 
     /** Get the differential equations to integrate.
@@ -314,7 +313,6 @@ public abstract class AbstractFieldIntegrator<T extends RealFieldElement<T>> imp
                 public int compare(FieldEventState<T> es0, FieldEventState<T> es1) {
                     return orderingSign * Double.compare(es0.getEventTime().getReal(), es1.getEventTime().getReal());
                 }
-
             });
 
             for (final FieldEventState<T> state : eventsStates) {
@@ -377,7 +375,6 @@ public abstract class AbstractFieldIntegrator<T extends RealFieldElement<T>> imp
                     // the event occurs during the current step
                     occurringEvents.add(currentEvent);
                 }
-
             }
 
             // last part of the step, after the last event
@@ -393,7 +390,6 @@ public abstract class AbstractFieldIntegrator<T extends RealFieldElement<T>> imp
             }
 
             return currentState;
-
     }
 
     /** Check the integration span.
@@ -413,7 +409,6 @@ public abstract class AbstractFieldIntegrator<T extends RealFieldElement<T>> imp
             throw new NumberIsTooSmallException(LocalizedFormats.TOO_SMALL_INTEGRATION_INTERVAL,
                                                 dt, threshold, false);
         }
-
     }
 
     /** Check if a reset occurred while last step was accepted.
@@ -463,5 +458,4 @@ public abstract class AbstractFieldIntegrator<T extends RealFieldElement<T>> imp
     protected boolean isLastStep() {
         return isLastStep;
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/AbstractIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/AbstractIntegrator.java
index 9a3945eec..6e69e381e 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/AbstractIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/AbstractIntegrator.java
@@ -207,7 +207,6 @@ public abstract class AbstractIntegrator implements FirstOrderIntegrator {
         }
 
         setStateInitialized(false);
-
     }
 
     /** Set the equations.
@@ -258,7 +257,6 @@ public abstract class AbstractIntegrator implements FirstOrderIntegrator {
         // extract results back from the stateful equations
         System.arraycopy(expandableODE.getPrimaryState(), 0, y, 0, y.length);
         return expandableODE.getTime();
-
     }
 
     /** Integrate a set of differential equations up to the given time.
@@ -348,7 +346,6 @@ public abstract class AbstractIntegrator implements FirstOrderIntegrator {
                 public int compare(EventState es0, EventState es1) {
                     return orderingSign * Double.compare(es0.getEventTime(), es1.getEventTime());
                 }
-
             });
 
             for (final EventState state : eventsStates) {
@@ -420,7 +417,6 @@ public abstract class AbstractIntegrator implements FirstOrderIntegrator {
                     // the event occurs during the current step
                     occurringEvents.add(currentEvent);
                 }
-
             }
 
             // last part of the step, after the last event
@@ -445,7 +441,6 @@ public abstract class AbstractIntegrator implements FirstOrderIntegrator {
             }
 
             return currentT;
-
     }
 
     /** Check the integration span.
@@ -465,7 +460,5 @@ public abstract class AbstractIntegrator implements FirstOrderIntegrator {
             throw new NumberIsTooSmallException(LocalizedFormats.TOO_SMALL_INTEGRATION_INTERVAL,
                                                 dt, threshold, false);
         }
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/AbstractParameterizable.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/AbstractParameterizable.java
index f786eede6..f0defa3b9 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/AbstractParameterizable.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/AbstractParameterizable.java
@@ -72,5 +72,4 @@ public abstract class AbstractParameterizable implements Parameterizable {
             throw new UnknownParameterException(name);
         }
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ContinuousOutputFieldModel.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ContinuousOutputFieldModel.java
index 85e8ff647..f4630c91e 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ContinuousOutputFieldModel.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ContinuousOutputFieldModel.java
@@ -151,14 +151,12 @@ public class ContinuousOutputFieldModel<T extends RealFieldElement<T>>
                 throw new MathIllegalArgumentException(LocalizedFormats.HOLE_BETWEEN_MODELS_TIME_RANGES,
                                                        gap.abs().getReal());
             }
-
         }
 
         steps.addAll(model.steps);
 
         index = steps.size() - 1;
         finalTime = (steps.get(index)).getCurrentState().getTime();
-
     }
 
     /** Check dimensions equality.
@@ -206,7 +204,6 @@ public class ContinuousOutputFieldModel<T extends RealFieldElement<T>>
             finalTime = interpolator.getCurrentState().getTime();
             index     = steps.size() - 1;
         }
-
     }
 
     /**
@@ -303,7 +300,6 @@ public class ContinuousOutputFieldModel<T extends RealFieldElement<T>>
             } else if (index > high) {
                 index = high;
             }
-
         }
 
         // now the table slice is very small, we perform an iterative search
@@ -313,7 +309,6 @@ public class ContinuousOutputFieldModel<T extends RealFieldElement<T>>
         }
 
         return steps.get(index).getInterpolatedState(time);
-
     }
 
     /** Compare a step interval and a double.
@@ -341,5 +336,4 @@ public class ContinuousOutputFieldModel<T extends RealFieldElement<T>>
             return 0;
         }
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ContinuousOutputModel.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ContinuousOutputModel.java
index c062e3f4e..d5363fc0b 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ContinuousOutputModel.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ContinuousOutputModel.java
@@ -156,7 +156,6 @@ public class ContinuousOutputModel
         throw new MathIllegalArgumentException(LocalizedFormats.HOLE_BETWEEN_MODELS_TIME_RANGES,
                                                JdkMath.abs(gap));
       }
-
     }
 
     for (StepInterpolator interpolator : model.steps) {
@@ -165,7 +164,6 @@ public class ContinuousOutputModel
 
     index = steps.size() - 1;
     finalTime = (steps.get(index)).getCurrentTime();
-
   }
 
   /** {@inheritDoc} */
@@ -201,7 +199,6 @@ public void handleStep(final StepInterpolator interpolator, final boolean isLast
       finalTime = interpolator.getCurrentTime();
       index     = steps.size() - 1;
     }
-
   }
 
   /**
@@ -324,7 +321,6 @@ public void handleStep(final StepInterpolator interpolator, final boolean isLast
         } else if (index > high) {
           index = high;
         }
-
       }
 
       // now the table slice is very small, we perform an iterative search
@@ -334,7 +330,6 @@ public void handleStep(final StepInterpolator interpolator, final boolean isLast
       }
 
       steps.get(index).setInterpolatedTime(time);
-
   }
 
   /**
@@ -441,5 +436,4 @@ public void handleStep(final StepInterpolator interpolator, final boolean isLast
       return 0;
     }
   }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/EquationsMapper.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/EquationsMapper.java
index e3405dbfc..c5ea6a757 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/EquationsMapper.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/EquationsMapper.java
@@ -93,5 +93,4 @@ public class EquationsMapper implements Serializable {
         }
         System.arraycopy(equationData, 0, complete, firstIndex, dimension);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ExpandableStatefulODE.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ExpandableStatefulODE.java
index a8e2c2487..4a3c8b487 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ExpandableStatefulODE.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ExpandableStatefulODE.java
@@ -126,7 +126,6 @@ public class ExpandableStatefulODE {
         }
 
         primaryMapper.insertEquationData(primaryStateDot, yDot);
-
     }
 
     /** Add a set of secondary equations to be integrated along with the primary set.
@@ -148,7 +147,6 @@ public class ExpandableStatefulODE {
         components.add(new SecondaryComponent(secondary, firstIndex));
 
         return components.size() - 1;
-
     }
 
     /** Get an equations mapper for the primary equations set.
@@ -199,7 +197,6 @@ public class ExpandableStatefulODE {
 
         // set the data
         System.arraycopy(primaryState, 0, this.primaryState, 0, primaryState.length);
-
     }
 
     /** Get primary part of the current state.
@@ -236,7 +233,6 @@ public class ExpandableStatefulODE {
 
         // set the data
         System.arraycopy(secondaryState, 0, localArray, 0, secondaryState.length);
-
     }
 
     /** Get secondary part of the current state.
@@ -275,7 +271,6 @@ public class ExpandableStatefulODE {
         for (final SecondaryComponent component : components) {
             component.mapper.extractEquationData(completeState, component.state);
         }
-
     }
 
     /** Get the complete current state.
@@ -295,7 +290,6 @@ public class ExpandableStatefulODE {
         }
 
         return completeState;
-
     }
 
     /** Components of the compound stateful ODE. */
@@ -324,7 +318,5 @@ public class ExpandableStatefulODE {
             state         = new double[n];
             stateDot      = new double[n];
         }
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FieldEquationsMapper.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FieldEquationsMapper.java
index 32d33077e..849d057b5 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FieldEquationsMapper.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FieldEquationsMapper.java
@@ -199,5 +199,4 @@ public class FieldEquationsMapper<T extends RealFieldElement<T>> implements Seri
                                                    index, 0, start.length - 2);
         }
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FieldExpandableODE.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FieldExpandableODE.java
index 784c6f97e..ba136be7c 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FieldExpandableODE.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FieldExpandableODE.java
@@ -89,7 +89,6 @@ public class FieldExpandableODE<T extends RealFieldElement<T>> {
         mapper = new FieldEquationsMapper<>(mapper, secondary.getDimension());
 
         return components.size();
-
     }
 
     /** Initialize equations at the start of an ODE integration.
@@ -111,7 +110,6 @@ public class FieldExpandableODE<T extends RealFieldElement<T>> {
             final T[] secondary0 = mapper.extractEquationData(index, y0);
             components.get(index - 1).init(t0, primary0, secondary0, finalTime);
         }
-
     }
 
     /** Get the current time derivative of the complete state vector.
@@ -141,7 +139,5 @@ public class FieldExpandableODE<T extends RealFieldElement<T>> {
         }
 
         return yDot;
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FieldODEState.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FieldODEState.java
index e4988902e..bc848b0ae 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FieldODEState.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FieldODEState.java
@@ -85,7 +85,6 @@ public class FieldODEState<T extends RealFieldElement<T>> {
         }
 
         return copied;
-
     }
 
     /** Get time.
@@ -135,5 +134,4 @@ public class FieldODEState<T extends RealFieldElement<T>> {
     public T[] getSecondaryState(final int index) {
         return index == 0 ? state.clone() : secondaryState[index - 1].clone();
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FieldODEStateAndDerivative.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FieldODEStateAndDerivative.java
index a67c72199..6810a9bae 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FieldODEStateAndDerivative.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FieldODEStateAndDerivative.java
@@ -78,5 +78,4 @@ public class FieldODEStateAndDerivative<T extends RealFieldElement<T>> extends F
     public T[] getSecondaryDerivative(final int index) {
         return index == 0 ? derivative.clone() : secondaryDerivative[index - 1].clone();
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FieldSecondaryEquations.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FieldSecondaryEquations.java
index 69a3e5bea..171690198 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FieldSecondaryEquations.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FieldSecondaryEquations.java
@@ -71,5 +71,4 @@ public interface FieldSecondaryEquations<T extends RealFieldElement<T>> {
      */
     T[] computeDerivatives(T t, T[] primary, T[] primaryDot, T[] secondary)
         throws MaxCountExceededException, DimensionMismatchException;
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FirstOrderConverter.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FirstOrderConverter.java
index 16adcd7b8..7103d7762 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FirstOrderConverter.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FirstOrderConverter.java
@@ -110,7 +110,5 @@ public void computeDerivatives(final double t, final double[] y, final double[]
     // build the result state derivative
     System.arraycopy(zDot,  0, yDot, 0,         dimension);
     System.arraycopy(zDDot, 0, yDot, dimension, dimension);
-
   }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FirstOrderDifferentialEquations.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FirstOrderDifferentialEquations.java
index 33e99b720..59f2365a0 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FirstOrderDifferentialEquations.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FirstOrderDifferentialEquations.java
@@ -64,5 +64,4 @@ public interface FirstOrderDifferentialEquations {
      */
     void computeDerivatives(double t, double[] y, double[] yDot)
         throws MaxCountExceededException, DimensionMismatchException;
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FirstOrderFieldDifferentialEquations.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FirstOrderFieldDifferentialEquations.java
index 2fc0082e7..dc7c8c4c8 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FirstOrderFieldDifferentialEquations.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FirstOrderFieldDifferentialEquations.java
@@ -69,5 +69,4 @@ public interface FirstOrderFieldDifferentialEquations<T extends RealFieldElement
      * @return time derivative of the state vector
      */
     T[] computeDerivatives(T t, T[] y);
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FirstOrderFieldIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FirstOrderFieldIntegrator.java
index d963b4a6b..4373bcb5b 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FirstOrderFieldIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FirstOrderFieldIntegrator.java
@@ -184,5 +184,4 @@ public interface FirstOrderFieldIntegrator<T extends RealFieldElement<T>> {
     FieldODEStateAndDerivative<T> integrate(FieldExpandableODE<T> equations,
                                             FieldODEState<T> initialState, T finalTime)
         throws NumberIsTooSmallException, MaxCountExceededException, NoBracketingException;
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FirstOrderIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FirstOrderIntegrator.java
index b20e766e8..310404c41 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FirstOrderIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/FirstOrderIntegrator.java
@@ -62,5 +62,4 @@ public interface FirstOrderIntegrator extends ODEIntegrator {
                     double t0, double[] y0, double t, double[] y)
       throws DimensionMismatchException, NumberIsTooSmallException,
              MaxCountExceededException, NoBracketingException;
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/JacobianMatrices.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/JacobianMatrices.java
index 481237c57..eafab4d8b 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/JacobianMatrices.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/JacobianMatrices.java
@@ -148,7 +148,6 @@ public class JacobianMatrices {
         for (int i = 0; i < stateDim; ++i) {
             matricesData[i * (stateDim + 1)] = 1.0;
         }
-
     }
 
     /** Register the variational equations for the Jacobians matrices to the expandable set.
@@ -173,7 +172,6 @@ public class JacobianMatrices {
         efode = expandable;
         index = efode.addSecondaryEquations(new JacobiansSecondaryEquations());
         efode.setSecondaryState(index, matricesData);
-
     }
 
     /** Add a parameter Jacobian provider.
@@ -220,7 +218,6 @@ public class JacobianMatrices {
         }
 
         throw new UnknownParameterException(parameter);
-
     }
 
     /** Set the initial value of the Jacobian matrix with respect to state.
@@ -248,7 +245,6 @@ public class JacobianMatrices {
         if (efode != null) {
             efode.setSecondaryState(index, matricesData);
         }
-
     }
 
     /** Set the initial value of a column of the Jacobian matrix with respect to one parameter.
@@ -281,7 +277,6 @@ public class JacobianMatrices {
         }
 
         throw new UnknownParameterException(pName);
-
     }
 
     /** Get the current value of the Jacobian matrix with respect to state.
@@ -297,7 +292,6 @@ public class JacobianMatrices {
             System.arraycopy(p, j, dYdY0[i], 0, stateDim);
             j += stateDim;
         }
-
     }
 
     /** Get the current value of the Jacobian matrix with respect to one parameter.
@@ -317,7 +311,6 @@ public class JacobianMatrices {
             }
             i += stateDim;
         }
-
     }
 
     /** Check array dimensions.
@@ -411,7 +404,6 @@ public class JacobianMatrices {
                     startIndex += stateDim;
                 }
             }
-
         }
     }
 
@@ -473,7 +465,6 @@ public class JacobianMatrices {
                 y[j] = savedYj;
             }
         }
-
     }
 
     /**
@@ -489,8 +480,6 @@ public class JacobianMatrices {
         public MismatchedEquations() {
             super(LocalizedFormats.UNMATCHED_ODE_IN_EXPANDED_SET);
         }
-
     }
-
 }
 
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/MainStateJacobianProvider.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/MainStateJacobianProvider.java
index 310af9662..97a8b0df4 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/MainStateJacobianProvider.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/MainStateJacobianProvider.java
@@ -37,5 +37,4 @@ public interface MainStateJacobianProvider extends FirstOrderDifferentialEquatio
      */
     void computeMainStateJacobian(double t, double[] y, double[] yDot, double[][] dFdY)
         throws MaxCountExceededException, DimensionMismatchException;
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/MultistepFieldIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/MultistepFieldIntegrator.java
index 2e6c1146b..81837ef61 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/MultistepFieldIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/MultistepFieldIntegrator.java
@@ -140,7 +140,6 @@ public abstract class MultistepFieldIntegrator<T extends RealFieldElement<T>>
         setSafety(0.9);
         setMinReduction(0.2);
         setMaxGrowth(JdkMath.pow(2.0, -exp));
-
     }
 
     /**
@@ -180,7 +179,6 @@ public abstract class MultistepFieldIntegrator<T extends RealFieldElement<T>>
         setSafety(0.9);
         setMinReduction(0.2);
         setMaxGrowth(JdkMath.pow(2.0, -exp));
-
     }
 
     /**
@@ -240,18 +238,15 @@ public abstract class MultistepFieldIntegrator<T extends RealFieldElement<T>>
 
             // we should not reach this step
             throw new MathIllegalStateException(LocalizedFormats.MULTISTEP_STARTER_STOPPED_EARLY);
-
         } catch (InitializationCompletedMarkerException icme) { // NOPMD
             // this is the expected nominal interruption of the start integrator
 
             // count the evaluations used by the starter
             getEvaluationsCounter().increment(starter.getEvaluations());
-
         }
 
         // remove the specific step handler
         starter.clearStepHandlers();
-
     }
 
     /** Initialize the high order scaled derivatives at step start.
@@ -338,7 +333,6 @@ public abstract class MultistepFieldIntegrator<T extends RealFieldElement<T>>
         }
 
         setStepSize(newStepSize);
-
     }
 
 
@@ -425,9 +419,7 @@ public abstract class MultistepFieldIntegrator<T extends RealFieldElement<T>>
                 // stop the integrator now that all needed steps have been handled
                 setStepStart(savedStart);
                 throw new InitializationCompletedMarkerException();
-
             }
-
         }
 
         /** {@inheritDoc} */
@@ -435,7 +427,6 @@ public abstract class MultistepFieldIntegrator<T extends RealFieldElement<T>>
         public void init(final FieldODEStateAndDerivative<T> initialState, T finalTime) {
             // nothing to do
         }
-
     }
 
     /** Marker exception used ONLY to stop the starter integrator after first step. */
@@ -449,7 +440,5 @@ public abstract class MultistepFieldIntegrator<T extends RealFieldElement<T>>
         InitializationCompletedMarkerException() {
             super((Throwable) null);
         }
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/MultistepIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/MultistepIntegrator.java
index 42cf07ede..6f3d356f0 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/MultistepIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/MultistepIntegrator.java
@@ -134,7 +134,6 @@ public abstract class MultistepIntegrator extends AdaptiveStepsizeIntegrator {
         setSafety(0.9);
         setMinReduction(0.2);
         setMaxGrowth(JdkMath.pow(2.0, -exp));
-
     }
 
     /**
@@ -173,7 +172,6 @@ public abstract class MultistepIntegrator extends AdaptiveStepsizeIntegrator {
         setSafety(0.9);
         setMinReduction(0.2);
         setMaxGrowth(JdkMath.pow(2.0, -exp));
-
     }
 
     /**
@@ -245,24 +243,20 @@ public abstract class MultistepIntegrator extends AdaptiveStepsizeIntegrator {
                     public void computeDerivatives(double t, double[] y, double[] yDot) {
                         getExpandable().computeDerivatives(t, y, yDot);
                     }
-
                 }, t0, y0, t, new double[y0.length]);
             }
 
             // we should not reach this step
             throw new MathIllegalStateException(LocalizedFormats.MULTISTEP_STARTER_STOPPED_EARLY);
-
         } catch (InitializationCompletedMarkerException icme) { // NOPMD
             // this is the expected nominal interruption of the start integrator
 
             // count the evaluations used by the starter
             getCounter().increment(starter.getEvaluations());
-
         }
 
         // remove the specific step handler
         starter.clearStepHandlers();
-
     }
 
     /** Initialize the high order scaled derivatives at step start.
@@ -435,9 +429,7 @@ public abstract class MultistepIntegrator extends AdaptiveStepsizeIntegrator {
 
                 // stop the integrator now that all needed steps have been handled
                 throw new InitializationCompletedMarkerException();
-
             }
-
         }
 
         /** {@inheritDoc} */
@@ -445,7 +437,6 @@ public abstract class MultistepIntegrator extends AdaptiveStepsizeIntegrator {
         public void init(double t0, double[] y0, double time) {
             // nothing to do
         }
-
     }
 
     /** Marker exception used ONLY to stop the starter integrator after first step. */
@@ -459,7 +450,5 @@ public abstract class MultistepIntegrator extends AdaptiveStepsizeIntegrator {
         InitializationCompletedMarkerException() {
             super((Throwable) null);
         }
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ODEIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ODEIntegrator.java
index fde4a3aa8..fe9b5d075 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ODEIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ODEIntegrator.java
@@ -154,5 +154,4 @@ public interface ODEIntegrator  {
      * @return number of evaluations of the differential equations function
      */
     int getEvaluations();
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ParameterConfiguration.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ParameterConfiguration.java
index 514bada00..688dac9a3 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ParameterConfiguration.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ParameterConfiguration.java
@@ -63,5 +63,4 @@ class ParameterConfiguration implements Serializable {
     public void setHP(final double hParam) {
         this.hP = hParam;
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ParameterJacobianProvider.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ParameterJacobianProvider.java
index dfb7fc3b1..4d658ef26 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ParameterJacobianProvider.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ParameterJacobianProvider.java
@@ -44,5 +44,4 @@ public interface ParameterJacobianProvider extends Parameterizable {
     void computeParameterJacobian(double t, double[] y, double[] yDot,
                                   String paramName, double[] dFdP)
         throws DimensionMismatchException, MaxCountExceededException, UnknownParameterException;
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ParameterJacobianWrapper.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ParameterJacobianWrapper.java
index 519ba68b3..7195a7dc4 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ParameterJacobianWrapper.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ParameterJacobianWrapper.java
@@ -96,7 +96,5 @@ class ParameterJacobianWrapper implements ParameterJacobianProvider {
         } else {
             Arrays.fill(dFdP, 0, n, 0.0);
         }
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/Parameterizable.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/Parameterizable.java
index c098e1580..772e234c6 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/Parameterizable.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/Parameterizable.java
@@ -38,5 +38,4 @@ public interface Parameterizable {
      * @see #getParametersNames()
      */
     boolean isSupported(String name);
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ParameterizedODE.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ParameterizedODE.java
index c958f95ca..1322862fd 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ParameterizedODE.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ParameterizedODE.java
@@ -38,5 +38,4 @@ public interface ParameterizedODE extends Parameterizable {
      * @exception UnknownParameterException if parameter is not supported
      */
     void setParameter(String name, double value) throws UnknownParameterException;
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ParameterizedWrapper.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ParameterizedWrapper.java
index 9268e7589..4a5d1443d 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ParameterizedWrapper.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ParameterizedWrapper.java
@@ -84,5 +84,4 @@ class ParameterizedWrapper implements ParameterizedODE {
     @Override
     public void setParameter(String name, double value) {
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/SecondOrderDifferentialEquations.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/SecondOrderDifferentialEquations.java
index dd086aa80..e0f2dccd2 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/SecondOrderDifferentialEquations.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/SecondOrderDifferentialEquations.java
@@ -60,5 +60,4 @@ public interface SecondOrderDifferentialEquations {
      * of the state vector
      */
     void computeSecondDerivatives(double t, double[] y, double[] yDot, double[] yDDot);
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/SecondOrderIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/SecondOrderIntegrator.java
index 80f64d9e8..d06033d0a 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/SecondOrderIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/SecondOrderIntegrator.java
@@ -56,5 +56,4 @@ public interface SecondOrderIntegrator extends ODEIntegrator {
                  double t0, double[] y0, double[] yDot0,
                  double t, double[] y, double[] yDot)
       throws MathIllegalStateException, MathIllegalArgumentException;
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/SecondaryEquations.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/SecondaryEquations.java
index 9508b0705..d4f9f2375 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/SecondaryEquations.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/SecondaryEquations.java
@@ -57,5 +57,4 @@ public interface SecondaryEquations {
     void computeDerivatives(double t, double[] primary, double[] primaryDot,
                             double[] secondary, double[] secondaryDot)
         throws MaxCountExceededException, DimensionMismatchException;
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/UnknownParameterException.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/UnknownParameterException.java
index 0c6d19b55..7bb34ed3b 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/UnknownParameterException.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/UnknownParameterException.java
@@ -48,5 +48,4 @@ public class UnknownParameterException extends MathIllegalArgumentException {
     public String getName() {
         return name;
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/Action.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/Action.java
index a2309709e..300d8a6c6 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/Action.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/Action.java
@@ -52,5 +52,4 @@ public enum Action {
      * on after the event ending the current step.</p>
      */
     CONTINUE;
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/EventFilter.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/EventFilter.java
index 4c7025368..fd0f5b584 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/EventFilter.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/EventFilter.java
@@ -98,7 +98,6 @@ public class EventFilter implements EventHandler {
         extremeT = forward ? Double.NEGATIVE_INFINITY : Double.POSITIVE_INFINITY;
         Arrays.fill(transformers, Transformer.UNINITIALIZED);
         Arrays.fill(updates, extremeT);
-
     }
 
     /**  {@inheritDoc} */
@@ -133,7 +132,6 @@ public class EventFilter implements EventHandler {
 
                 // apply the transform
                 return next.transformed(rawG);
-
             } else {
                 // we are in the middle of the history
 
@@ -146,7 +144,6 @@ public class EventFilter implements EventHandler {
                 }
 
                 return transformers[0].transformed(rawG);
-
             }
         } else {
             if (t < extremeT) {
@@ -172,7 +169,6 @@ public class EventFilter implements EventHandler {
 
                 // apply the transform
                 return next.transformed(rawG);
-
             } else {
                 // we are in the middle of the history
 
@@ -185,10 +181,8 @@ public class EventFilter implements EventHandler {
                 }
 
                 return transformers[updates.length - 1].transformed(rawG);
-
             }
        }
-
     }
 
     /**  {@inheritDoc} */
@@ -204,5 +198,4 @@ public class EventFilter implements EventHandler {
         // delegate to raw handler
         rawHandler.resetState(t, y);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/EventHandler.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/EventHandler.java
index 0a948f4ea..d1bf57028 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/EventHandler.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/EventHandler.java
@@ -84,7 +84,6 @@ public interface EventHandler  {
          * on after the event ending the current step.</p>
          */
         CONTINUE;
-
     }
 
     /** Initialize event handler at the start of an ODE integration.
@@ -215,5 +214,4 @@ public interface EventHandler  {
    * the new state should be put in the same array
    */
   void resetState(double t, double[] y);
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/EventState.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/EventState.java
index aa4f1a607..4ee8e1ffb 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/EventState.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/EventState.java
@@ -120,7 +120,6 @@ public class EventState {
         previousEventTime = Double.NaN;
         increasing        = true;
         nextAction        = EventHandler.Action.CONTINUE;
-
     }
 
     /** Get the underlying event handler.
@@ -190,7 +189,6 @@ public class EventState {
             g0 = handler.g(tStart, getCompleteState(interpolator));
         }
         g0Positive = g0 >= 0;
-
     }
 
     /** Get the complete state (primary and secondary).
@@ -210,7 +208,6 @@ public class EventState {
         }
 
         return complete;
-
     }
 
     /** Evaluate the impact of the proposed step on the event handler.
@@ -320,24 +317,20 @@ public class EventState {
                         ta = tb;
                         ga = gb;
                     }
-
                 } else {
                     // no sign change: there is no event for now
                     ta = tb;
                     ga = gb;
                 }
-
             }
 
             // no event during the whole step
             pendingEvent     = false;
             pendingEventTime = Double.NaN;
             return false;
-
         } catch (LocalMaxCountExceededException lmcee) {
             throw lmcee.getException();
         }
-
     }
 
     /** Get the occurrence time of the event triggered in the current step.
@@ -401,7 +394,6 @@ public class EventState {
 
         return (nextAction == EventHandler.Action.RESET_STATE) ||
                (nextAction == EventHandler.Action.RESET_DERIVATIVES);
-
     }
 
     /** Local wrapper to propagate exceptions. */
@@ -426,7 +418,5 @@ public class EventState {
         public MaxCountExceededException getException() {
             return wrapped;
         }
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/FieldEventHandler.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/FieldEventHandler.java
index 3442d4c7b..82f1f2a12 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/FieldEventHandler.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/FieldEventHandler.java
@@ -176,5 +176,4 @@ public interface FieldEventHandler<T extends RealFieldElement<T>>  {
      * be added automatically by the integrator afterwards)
      */
     FieldODEState<T> resetState(FieldODEStateAndDerivative<T> state);
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/FieldEventState.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/FieldEventState.java
index d7e523b8d..986879c4d 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/FieldEventState.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/FieldEventState.java
@@ -115,7 +115,6 @@ public class FieldEventState<T extends RealFieldElement<T>> {
         previousEventTime = null;
         increasing        = true;
         nextAction        = Action.CONTINUE;
-
     }
 
     /** Get the underlying event handler.
@@ -177,7 +176,6 @@ public class FieldEventState<T extends RealFieldElement<T>> {
             g0 = handler.g(interpolator.getInterpolatedState(tStart));
         }
         g0Positive = g0.getReal() >= 0;
-
     }
 
     /** Evaluate the impact of the proposed step on the event handler.
@@ -263,20 +261,17 @@ public class FieldEventState<T extends RealFieldElement<T>> {
                     ta = tb;
                     ga = gb;
                 }
-
             } else {
                 // no sign change: there is no event for now
                 ta = tb;
                 ga = gb;
             }
-
         }
 
         // no event during the whole step
         pendingEvent     = false;
         pendingEventTime = null;
         return false;
-
     }
 
     /** Get the occurrence time of the event triggered in the current step.
@@ -339,7 +334,5 @@ public class FieldEventState<T extends RealFieldElement<T>> {
         pendingEventTime  = null;
 
         return newState;
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/FilterType.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/FilterType.java
index b7ce0ec92..439af4c8d 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/FilterType.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/FilterType.java
@@ -201,7 +201,6 @@ public enum FilterType {
                 }
             }
         }
-
     },
 
     /** Constant for triggering only increasing events.
@@ -379,7 +378,6 @@ public enum FilterType {
                 }
             }
         }
-
     };
 
     /** Get the increasing status of triggered events.
@@ -396,5 +394,4 @@ public enum FilterType {
      */
     protected abstract Transformer selectTransformer(Transformer previous,
                                                      double g, boolean forward);
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/Transformer.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/Transformer.java
index b4b2a5125..8bd404d96 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/Transformer.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/Transformer.java
@@ -103,5 +103,4 @@ enum Transformer {
      * @return transformed value of function g
      */
     protected abstract double transformed(double g);
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsBashforthFieldIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsBashforthFieldIntegrator.java
index 757bc460c..eba3d44dc 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsBashforthFieldIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsBashforthFieldIntegrator.java
@@ -229,11 +229,9 @@ public class AdamsBashforthFieldIntegrator<T extends RealFieldElement<T>> extend
 
             final T ratio  = predictedState[i].subtract(previousState[i]).add(variation).divide(tol);
             error = error.add(ratio.multiply(ratio));
-
         }
 
         return error.divide(mainSetDimension).sqrt();
-
     }
 
     /** {@inheritDoc} */
@@ -295,7 +293,6 @@ public class AdamsBashforthFieldIntegrator<T extends RealFieldElement<T>> extend
                                                                 getStepSize(),
                                                                 scaled,
                                                                 nordsieck);
-
                 }
             }
 
@@ -338,16 +335,12 @@ public class AdamsBashforthFieldIntegrator<T extends RealFieldElement<T>> extend
                 rescale(hNew);
                 stepEnd = AdamsFieldStepInterpolator.taylor(getStepStart(), getStepStart().getTime().add(getStepSize()),
                                                             getStepSize(), scaled, nordsieck);
-
             }
-
         } while (!isLastStep());
 
         final FieldODEStateAndDerivative<T> finalState = getStepStart();
         setStepStart(null);
         setStepSize(null);
         return finalState;
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsBashforthIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsBashforthIntegrator.java
index a3ef59193..cb1944640 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsBashforthIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsBashforthIntegrator.java
@@ -224,11 +224,9 @@ public class AdamsBashforthIntegrator extends AdamsIntegrator {
 
             final double ratio  = (predictedState[i] - previousState[i] + variation) / tol;
             error              += ratio * ratio;
-
         }
 
         return JdkMath.sqrt(error / mainSetDimension);
-
     }
 
     /** {@inheritDoc} */
@@ -303,7 +301,6 @@ public class AdamsBashforthIntegrator extends AdamsIntegrator {
                     final double factor = computeStepGrowShrinkFactor(error);
                     hNew = filterStep(hNew * factor, forward, false);
                     interpolator.rescale(hNew);
-
                 }
             }
 
@@ -345,9 +342,7 @@ public class AdamsBashforthIntegrator extends AdamsIntegrator {
                 }
 
                 interpolator.rescale(hNew);
-
             }
-
         } while (!isLastStep);
 
         // dispatch results
@@ -355,7 +350,5 @@ public class AdamsBashforthIntegrator extends AdamsIntegrator {
         equations.setCompleteState(y);
 
         resetInternalState();
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsFieldIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsFieldIntegrator.java
index 89f0db343..ffded7be1 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsFieldIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsFieldIntegrator.java
@@ -142,5 +142,4 @@ public abstract class AdamsFieldIntegrator<T extends RealFieldElement<T>> extend
                                                  final Array2DRowFieldMatrix<T> highOrder) {
         transformer.updateHighOrderDerivativesPhase2(start, end, highOrder);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsFieldStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsFieldStepInterpolator.java
index 13d25e9ed..3dd66268f 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsFieldStepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsFieldStepInterpolator.java
@@ -127,7 +127,6 @@ class AdamsFieldStepInterpolator<T extends RealFieldElement<T>> extends Abstract
                                                  newGlobalPreviousState, newGlobalCurrentState,
                                                  newSoftPreviousState, newSoftCurrentState,
                                                  newMapper);
-
     }
 
     /** {@inheritDoc} */
@@ -183,7 +182,5 @@ class AdamsFieldStepInterpolator<T extends RealFieldElement<T>> extends Abstract
         }
 
         return new FieldODEStateAndDerivative<>(time, estimatedState, estimatedDerivatives);
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsIntegrator.java
index 1b9488a7a..ba65c095d 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsIntegrator.java
@@ -132,5 +132,4 @@ public abstract class AdamsIntegrator extends MultistepIntegrator {
                                                  final Array2DRowRealMatrix highOrder) {
         transformer.updateHighOrderDerivativesPhase2(start, end, highOrder);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsMoultonFieldIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsMoultonFieldIntegrator.java
index 94ba8f7ef..491b88824 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsMoultonFieldIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsMoultonFieldIntegrator.java
@@ -321,16 +321,13 @@ public class AdamsMoultonFieldIntegrator<T extends RealFieldElement<T>> extends
                 rescale(hNew);
                 stepEnd = AdamsFieldStepInterpolator.taylor(getStepStart(), getStepStart().getTime().add(getStepSize()),
                                                             getStepSize(), scaled, nordsieck);
-
             }
-
         } while (!isLastStep());
 
         final FieldODEStateAndDerivative<T> finalState = getStepStart();
         setStepStart(null);
         setStepSize(null);
         return finalState;
-
     }
 
     /** Corrector for current state in Adams-Moulton method.
@@ -410,8 +407,6 @@ public class AdamsMoultonFieldIntegrator<T extends RealFieldElement<T>> extends
             }
 
             return error.divide(mainSetDimension).sqrt();
-
         }
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsMoultonIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsMoultonIntegrator.java
index f44d30acd..83e30a708 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsMoultonIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsMoultonIntegrator.java
@@ -310,7 +310,6 @@ public class AdamsMoultonIntegrator extends AdamsIntegrator {
                     // invalidate the derivatives, we need to restart from scratch
                     start(stepStart, y, t);
                     interpolator.reinitialize(stepStart, stepSize, scaled, nordsieck);
-
                 }
 
                 // stepsize control for next step
@@ -328,7 +327,6 @@ public class AdamsMoultonIntegrator extends AdamsIntegrator {
 
                 interpolator.rescale(hNew);
             }
-
         } while (!isLastStep);
 
         // dispatch results
@@ -336,7 +334,6 @@ public class AdamsMoultonIntegrator extends AdamsIntegrator {
         equations.setCompleteState(y);
 
         resetInternalState();
-
     }
 
     /** Corrector for current state in Adams-Moulton method.
@@ -416,8 +413,6 @@ public class AdamsMoultonIntegrator extends AdamsIntegrator {
             }
 
             return JdkMath.sqrt(error / mainSetDimension);
-
         }
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsNordsieckFieldTransformer.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsNordsieckFieldTransformer.java
index 0541cd9d9..49d686bb4 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsNordsieckFieldTransformer.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsNordsieckFieldTransformer.java
@@ -177,7 +177,6 @@ public final class AdamsNordsieckFieldTransformer<T extends RealFieldElement<T>>
         shiftedP[0] = MathArrays.buildArray(field, rows);
         Arrays.fill(shiftedP[0], field.getZero());
         update = new Array2DRowFieldMatrix<>(pSolver.solve(new Array2DRowFieldMatrix<>(shiftedP, false)).getData());
-
     }
 
     /** Get the Nordsieck transformer for a given field and number of steps.
@@ -203,7 +202,6 @@ public final class AdamsNordsieckFieldTransformer<T extends RealFieldElement<T>>
                 map.put(field, t);
             }
             return t;
-
         }
     }
 
@@ -237,7 +235,6 @@ public final class AdamsNordsieckFieldTransformer<T extends RealFieldElement<T>>
         }
 
         return new Array2DRowFieldMatrix<>(pData, false);
-
     }
 
     /** Initialize the high order scaled derivatives at step start.
@@ -295,7 +292,6 @@ public final class AdamsNordsieckFieldTransformer<T extends RealFieldElement<T>>
                     bDotI[j] = yDotI[j].subtract(yDot0[j]);
                 }
             }
-
         }
 
         // solve the linear system to get the best estimate of the Nordsieck vector [s2 ... sk],
@@ -312,7 +308,6 @@ public final class AdamsNordsieckFieldTransformer<T extends RealFieldElement<T>>
             }
         }
         return truncatedX;
-
     }
 
     /** Update the high order scaled derivatives for Adams integrators (phase 1).
@@ -355,5 +350,4 @@ public final class AdamsNordsieckFieldTransformer<T extends RealFieldElement<T>>
             }
         }
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsNordsieckTransformer.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsNordsieckTransformer.java
index d2ca84cd2..15b60f7aa 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsNordsieckTransformer.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsNordsieckTransformer.java
@@ -301,7 +301,6 @@ public final class AdamsNordsieckTransformer {
                     bDotI[j] = yDotI[j] - yDot0[j];
                 }
             }
-
         }
 
         // solve the linear system to get the best estimate of the Nordsieck vector [s2 ... sk],
@@ -317,7 +316,6 @@ public final class AdamsNordsieckTransformer {
             }
         }
         return truncatedX;
-
     }
 
     /** Update the high order scaled derivatives for Adams integrators (phase 1).
@@ -360,5 +358,4 @@ public final class AdamsNordsieckTransformer {
             }
         }
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdaptiveStepsizeFieldIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdaptiveStepsizeFieldIntegrator.java
index 0f8dfaeac..8fba5a0c8 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdaptiveStepsizeFieldIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdaptiveStepsizeFieldIntegrator.java
@@ -114,7 +114,6 @@ public abstract class AdaptiveStepsizeFieldIntegrator<T extends RealFieldElement
         super(field, name);
         setStepSizeControl(minStep, maxStep, scalAbsoluteTolerance, scalRelativeTolerance);
         resetInternalState();
-
     }
 
     /** Build an integrator with the given stepsize bounds.
@@ -138,7 +137,6 @@ public abstract class AdaptiveStepsizeFieldIntegrator<T extends RealFieldElement
         super(field, name);
         setStepSizeControl(minStep, maxStep, vecAbsoluteTolerance, vecRelativeTolerance);
         resetInternalState();
-
     }
 
     /** Set the adaptive step size control parameters.
@@ -167,7 +165,6 @@ public abstract class AdaptiveStepsizeFieldIntegrator<T extends RealFieldElement
         scalRelativeTolerance = relativeTolerance;
         vecAbsoluteTolerance  = null;
         vecRelativeTolerance  = null;
-
     }
 
     /** Set the adaptive step size control parameters.
@@ -196,7 +193,6 @@ public abstract class AdaptiveStepsizeFieldIntegrator<T extends RealFieldElement
         scalRelativeTolerance = 0;
         vecAbsoluteTolerance  = absoluteTolerance.clone();
         vecRelativeTolerance  = relativeTolerance.clone();
-
     }
 
     /** Set the initial step size.
@@ -235,7 +231,6 @@ public abstract class AdaptiveStepsizeFieldIntegrator<T extends RealFieldElement
         if (vecRelativeTolerance != null && vecRelativeTolerance.length != mainSetDimension) {
             throw new DimensionMismatchException(mainSetDimension, vecRelativeTolerance.length);
         }
-
     }
 
     /** Initialize the integration step.
@@ -307,7 +302,6 @@ public abstract class AdaptiveStepsizeFieldIntegrator<T extends RealFieldElement
         }
 
         return h;
-
     }
 
     /** Filter the integration step.
@@ -339,7 +333,6 @@ public abstract class AdaptiveStepsizeFieldIntegrator<T extends RealFieldElement
         }
 
         return filteredH;
-
     }
 
     /** Reset internal state to dummy values. */
@@ -361,5 +354,4 @@ public abstract class AdaptiveStepsizeFieldIntegrator<T extends RealFieldElement
     public T getMaxStep() {
         return maxStep;
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdaptiveStepsizeIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdaptiveStepsizeIntegrator.java
index 38457cb7c..f567be643 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdaptiveStepsizeIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdaptiveStepsizeIntegrator.java
@@ -109,7 +109,6 @@ public abstract class AdaptiveStepsizeIntegrator
     super(name);
     setStepSizeControl(minStep, maxStep, scalAbsoluteTolerance, scalRelativeTolerance);
     resetInternalState();
-
   }
 
   /** Build an integrator with the given stepsize bounds.
@@ -132,7 +131,6 @@ public abstract class AdaptiveStepsizeIntegrator
     super(name);
     setStepSizeControl(minStep, maxStep, vecAbsoluteTolerance, vecRelativeTolerance);
     resetInternalState();
-
   }
 
   /** Set the adaptive step size control parameters.
@@ -161,7 +159,6 @@ public abstract class AdaptiveStepsizeIntegrator
       scalRelativeTolerance = relativeTolerance;
       vecAbsoluteTolerance  = null;
       vecRelativeTolerance  = null;
-
   }
 
   /** Set the adaptive step size control parameters.
@@ -190,7 +187,6 @@ public abstract class AdaptiveStepsizeIntegrator
       scalRelativeTolerance = 0;
       vecAbsoluteTolerance  = absoluteTolerance.clone();
       vecRelativeTolerance  = relativeTolerance.clone();
-
   }
 
   /** Set the initial step size.
@@ -228,7 +224,6 @@ public abstract class AdaptiveStepsizeIntegrator
       if ((vecRelativeTolerance != null) && (vecRelativeTolerance.length != mainSetDimension)) {
           throw new DimensionMismatchException(mainSetDimension, vecRelativeTolerance.length);
       }
-
   }
 
   /** Initialize the integration step.
@@ -305,7 +300,6 @@ public abstract class AdaptiveStepsizeIntegrator
     }
 
     return h;
-
   }
 
   /** Filter the integration step.
@@ -337,7 +331,6 @@ public abstract class AdaptiveStepsizeIntegrator
       }
 
       return filteredH;
-
   }
 
   /** {@inheritDoc} */
@@ -371,5 +364,4 @@ public abstract class AdaptiveStepsizeIntegrator
   public double getMaxStep() {
     return maxStep;
   }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ClassicalRungeKuttaFieldIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ClassicalRungeKuttaFieldIntegrator.java
index 2897dad74..7290ed253 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ClassicalRungeKuttaFieldIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ClassicalRungeKuttaFieldIntegrator.java
@@ -109,5 +109,4 @@ public class ClassicalRungeKuttaFieldIntegrator<T extends RealFieldElement<T>>
                                                                globalPreviousState, globalCurrentState,
                                                                mapper);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ClassicalRungeKuttaFieldStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ClassicalRungeKuttaFieldStepInterpolator.java
index b37490853..9eac4c5ae 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ClassicalRungeKuttaFieldStepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ClassicalRungeKuttaFieldStepInterpolator.java
@@ -129,7 +129,5 @@ class ClassicalRungeKuttaFieldStepInterpolator<T extends RealFieldElement<T>>
         }
 
         return new FieldODEStateAndDerivative<>(time, interpolatedState, interpolatedDerivatives);
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ClassicalRungeKuttaIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ClassicalRungeKuttaIntegrator.java
index 35a036677..825a3bfb9 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ClassicalRungeKuttaIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ClassicalRungeKuttaIntegrator.java
@@ -70,5 +70,4 @@ public class ClassicalRungeKuttaIntegrator extends RungeKuttaIntegrator {
     super("classical Runge-Kutta", STATIC_C, STATIC_A, STATIC_B,
           new ClassicalRungeKuttaStepInterpolator(), step);
   }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ClassicalRungeKuttaStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ClassicalRungeKuttaStepInterpolator.java
index 1e8d39d72..104fb6cd0 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ClassicalRungeKuttaStepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ClassicalRungeKuttaStepInterpolator.java
@@ -129,7 +129,5 @@ class ClassicalRungeKuttaStepInterpolator
                         coeffDot1 * yDot1 + coeffDot23 * yDot23 + coeffDot4 * yDot4;
             }
         }
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince54FieldIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince54FieldIntegrator.java
index 08c079cf2..3567fa7e0 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince54FieldIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince54FieldIntegrator.java
@@ -224,11 +224,8 @@ public class DormandPrince54FieldIntegrator<T extends RealFieldElement<T>>
                              yScale.multiply(vecRelativeTolerance[j]).add(vecAbsoluteTolerance[j]);
             final T ratio  = h.multiply(errSum).divide(tol);
             error = error.add(ratio.multiply(ratio));
-
         }
 
         return error.divide(mainSetDimension).sqrt();
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince54FieldStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince54FieldStepInterpolator.java
index f64b7bd16..755b07b9a 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince54FieldStepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince54FieldStepInterpolator.java
@@ -243,7 +243,5 @@ class DormandPrince54FieldStepInterpolator<T extends RealFieldElement<T>>
                                                                   coeffDot4, coeffDot5, coeffDot6);
         }
         return new FieldODEStateAndDerivative<>(time, interpolatedState, interpolatedDerivatives);
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince54Integrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince54Integrator.java
index efe5a7e47..081eeefe1 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince54Integrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince54Integrator.java
@@ -151,11 +151,8 @@ public class DormandPrince54Integrator extends EmbeddedRungeKuttaIntegrator {
                                (vecAbsoluteTolerance[j] + vecRelativeTolerance[j] * yScale);
         final double ratio  = h * errSum / tol;
         error += ratio * ratio;
-
     }
 
     return JdkMath.sqrt(error / mainSetDimension);
-
   }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince54StepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince54StepInterpolator.java
index dd365e40e..698d7c211 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince54StepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince54StepInterpolator.java
@@ -125,7 +125,6 @@ class DormandPrince54StepInterpolator
       v3 = null;
       v4 = null;
       vectorsInitialized = false;
-
     } else {
 
       v1 = interpolator.v1.clone();
@@ -133,9 +132,7 @@ class DormandPrince54StepInterpolator
       v3 = interpolator.v3.clone();
       v4 = interpolator.v4.clone();
       vectorsInitialized = interpolator.vectorsInitialized;
-
     }
-
   }
 
   /** {@inheritDoc} */
@@ -197,7 +194,6 @@ class DormandPrince54StepInterpolator
       }
 
       vectorsInitialized = true;
-
     }
 
     // interpolate
@@ -219,7 +215,5 @@ class DormandPrince54StepInterpolator
             interpolatedDerivatives[i] = v1[i] + dot2 * v2[i] + dot3 * v3[i] + dot4 * v4[i];
         }
     }
-
   }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince853FieldIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince853FieldIntegrator.java
index a49221217..b8582733f 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince853FieldIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince853FieldIntegrator.java
@@ -213,7 +213,6 @@ public class DormandPrince853FieldIntegrator<T extends RealFieldElement<T>>
         c[14] = fraction(7.0, 9.0);
 
         return c;
-
     }
 
     /** {@inheritDoc} */
@@ -366,7 +365,6 @@ public class DormandPrince853FieldIntegrator<T extends RealFieldElement<T>>
         a[14][14] = fraction(    -290468882375.0, 31741908048.0);
 
         return a;
-
     }
 
     /** {@inheritDoc} */
@@ -450,7 +448,5 @@ public class DormandPrince853FieldIntegrator<T extends RealFieldElement<T>>
         }
 
         return h.abs().multiply(error1).divide(den.multiply(mainSetDimension).sqrt());
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince853FieldStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince853FieldStepInterpolator.java
index 231767ae2..02d3eef9d 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince853FieldStepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince853FieldStepInterpolator.java
@@ -184,7 +184,6 @@ class DormandPrince853FieldStepInterpolator<T extends RealFieldElement<T>>
         d[6][13] = fraction(field,             58000000.0, 602131.0);
         d[6][14] = fraction(field,             -1546875.0, 39484.0);
         d[6][15] = fraction(field,          -1262172375.0, 8429834.0);
-
     }
 
     /** {@inheritDoc} */
@@ -296,7 +295,5 @@ class DormandPrince853FieldStepInterpolator<T extends RealFieldElement<T>>
         }
 
         return new FieldODEStateAndDerivative<>(time, interpolatedState, interpolatedDerivatives);
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince853Integrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince853Integrator.java
index 6c6696436..a8d0d554b 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince853Integrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince853Integrator.java
@@ -129,7 +129,6 @@ public class DormandPrince853Integrator extends EmbeddedRungeKuttaIntegrator {
      66578432.0/35198415.0, -1674902723.0/288716400.0,
      54980371265625.0/176692375811392.0, -734375.0/4826304.0,
      171414593.0/851261400.0, 137909.0/3084480.0}
-
   };
 
   /** Propagation weights Butcher array. */
@@ -280,7 +279,5 @@ public class DormandPrince853Integrator extends EmbeddedRungeKuttaIntegrator {
     }
 
     return JdkMath.abs(h) * error1 / JdkMath.sqrt(mainSetDimension * den);
-
   }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince853StepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince853StepInterpolator.java
index f390625aa..2acdbb838 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince853StepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince853StepInterpolator.java
@@ -206,7 +206,6 @@ class DormandPrince853StepInterpolator
                 53995596795.0 / 518691437.0,                 210311225.0 / 7047894.0,
                    -1718875.0 / 39484.0,                      58000000.0 / 602131.0,
                    -1546875.0 / 39484.0,                   -1262172375.0 / 8429834.0}
-
     };
 
     /** Last evaluations. */
@@ -251,7 +250,6 @@ class DormandPrince853StepInterpolator
       yDotKLast = null;
       v         = null;
       vectorsInitialized = false;
-
     } else {
 
       final int dimension = interpolator.currentState.length;
@@ -270,9 +268,7 @@ class DormandPrince853StepInterpolator
       }
 
       vectorsInitialized = interpolator.vectorsInitialized;
-
     }
-
   }
 
   /** {@inheritDoc} */
@@ -303,7 +299,6 @@ class DormandPrince853StepInterpolator
     }
 
     vectorsInitialized = false;
-
   }
 
   /** {@inheritDoc} */
@@ -359,7 +354,6 @@ class DormandPrince853StepInterpolator
       }
 
       vectorsInitialized = true;
-
     }
 
     final double eta      = 1 - theta;
@@ -401,7 +395,6 @@ class DormandPrince853StepInterpolator
                     dot5 * v[5][i] + dot6 * v[6][i];
         }
     }
-
   }
 
   /** {@inheritDoc} */
@@ -445,7 +438,6 @@ class DormandPrince853StepInterpolator
           yTmp[j] = currentState[j] + h * s;
       }
       integrator.computeDerivatives(pT + C16 * h, yTmp, yDotKLast[2]);
-
   }
 
   /** {@inheritDoc} */
@@ -472,7 +464,6 @@ class DormandPrince853StepInterpolator
 
     // save the state of the base class
     super.writeExternal(out);
-
   }
 
   /** {@inheritDoc} */
@@ -495,7 +486,5 @@ class DormandPrince853StepInterpolator
 
     // read the base state
     super.readExternal(in);
-
   }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/EmbeddedRungeKuttaFieldIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/EmbeddedRungeKuttaFieldIntegrator.java
index 2195e0e3a..20d79c331 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/EmbeddedRungeKuttaFieldIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/EmbeddedRungeKuttaFieldIntegrator.java
@@ -125,7 +125,6 @@ public abstract class EmbeddedRungeKuttaFieldIntegrator<T extends RealFieldEleme
         setSafety(field.getZero().add(0.9));
         setMinReduction(field.getZero().add(0.2));
         setMaxGrowth(field.getZero().add(10.0));
-
     }
 
     /** Build a Runge-Kutta integrator with the given Butcher array.
@@ -158,7 +157,6 @@ public abstract class EmbeddedRungeKuttaFieldIntegrator<T extends RealFieldEleme
         setSafety(field.getZero().add(0.9));
         setMinReduction(field.getZero().add(0.2));
         setMaxGrowth(field.getZero().add(10.0));
-
     }
 
     /** Create a fraction.
@@ -283,7 +281,6 @@ public abstract class EmbeddedRungeKuttaFieldIntegrator<T extends RealFieldEleme
                     }
 
                     yDotK[k] = computeDerivatives(getStepStart().getTime().add(getStepSize().multiply(c[k-1])), yTmp);
-
                 }
 
                 // estimate the state at the end of the step
@@ -303,7 +300,6 @@ public abstract class EmbeddedRungeKuttaFieldIntegrator<T extends RealFieldEleme
                                                    RealFieldElement.max(minReduction, safety.multiply(error.pow(exp))));
                     hNew = filterStep(getStepSize().multiply(factor), forward, false);
                 }
-
             }
             final T   stepEnd = getStepStart().getTime().add(getStepSize());
             final T[] yDotTmp = (fsal >= 0) ? yDotK[fsal] : computeDerivatives(stepEnd, yTmp);
@@ -333,15 +329,12 @@ public abstract class EmbeddedRungeKuttaFieldIntegrator<T extends RealFieldEleme
                 if (filteredNextIsLast) {
                     hNew = finalTime.subtract(getStepStart().getTime());
                 }
-
             }
-
         } while (!isLastStep());
 
         final FieldODEStateAndDerivative<T> finalState = getStepStart();
         resetInternalState();
         return finalState;
-
     }
 
     /** Get the minimal reduction factor for stepsize control.
@@ -380,5 +373,4 @@ public abstract class EmbeddedRungeKuttaFieldIntegrator<T extends RealFieldEleme
      * @return error ratio, greater than 1 if step should be rejected
      */
     protected abstract T estimateError(T[][] yDotK, T[] y0, T[] y1, T h);
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/EmbeddedRungeKuttaIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/EmbeddedRungeKuttaIntegrator.java
index f2d593d22..3350fe0f9 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/EmbeddedRungeKuttaIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/EmbeddedRungeKuttaIntegrator.java
@@ -126,7 +126,6 @@ public abstract class EmbeddedRungeKuttaIntegrator
     setSafety(0.9);
     setMinReduction(0.2);
     setMaxGrowth(10.0);
-
   }
 
   /** Build a Runge-Kutta integrator with the given Butcher array.
@@ -164,7 +163,6 @@ public abstract class EmbeddedRungeKuttaIntegrator
     setSafety(0.9);
     setMinReduction(0.2);
     setMaxGrowth(10.0);
-
   }
 
   /** Get the order of the method.
@@ -270,7 +268,6 @@ public abstract class EmbeddedRungeKuttaIntegrator
           }
 
           computeDerivatives(stepStart + c[k-1] * stepSize, yTmp, yDotK[k]);
-
         }
 
         // estimate the state at the end of the step
@@ -291,7 +288,6 @@ public abstract class EmbeddedRungeKuttaIntegrator
                            JdkMath.max(minReduction, safety * JdkMath.pow(error, exp)));
           hNew = filterStep(stepSize * factor, forward, false);
         }
-
       }
 
       // local error is small enough: accept the step, trigger events and step handlers
@@ -324,9 +320,7 @@ public abstract class EmbeddedRungeKuttaIntegrator
           if (filteredNextIsLast) {
               hNew = t - stepStart;
           }
-
       }
-
     } while (!isLastStep);
 
     // dispatch results
@@ -334,7 +328,6 @@ public abstract class EmbeddedRungeKuttaIntegrator
     equations.setCompleteState(y);
 
     resetInternalState();
-
   }
 
   /** Get the minimal reduction factor for stepsize control.
@@ -375,5 +368,4 @@ public abstract class EmbeddedRungeKuttaIntegrator
   protected abstract double estimateError(double[][] yDotK,
                                           double[] y0, double[] y1,
                                           double h);
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/EulerFieldIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/EulerFieldIntegrator.java
index 18f5634db..1f3804094 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/EulerFieldIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/EulerFieldIntegrator.java
@@ -95,5 +95,4 @@ public class EulerFieldIntegrator<T extends RealFieldElement<T>> extends RungeKu
                                                  globalPreviousState, globalCurrentState,
                                                  mapper);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/EulerFieldStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/EulerFieldStepInterpolator.java
index 15535b0ba..4d1883f3f 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/EulerFieldStepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/EulerFieldStepInterpolator.java
@@ -101,7 +101,5 @@ class EulerFieldStepInterpolator<T extends RealFieldElement<T>>
         }
 
         return new FieldODEStateAndDerivative<>(time, interpolatedState, interpolatedDerivatives);
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/EulerIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/EulerIntegrator.java
index 4e8cfb290..fbae58b0e 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/EulerIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/EulerIntegrator.java
@@ -68,5 +68,4 @@ public class EulerIntegrator extends RungeKuttaIntegrator {
   public EulerIntegrator(final double step) {
     super("Euler", STATIC_C, STATIC_A, STATIC_B, new EulerStepInterpolator(), step);
   }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/EulerStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/EulerStepInterpolator.java
index 2cc453ca7..0bdcd4709 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/EulerStepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/EulerStepInterpolator.java
@@ -95,7 +95,5 @@ class EulerStepInterpolator
           }
           System.arraycopy(yDotK[0], 0, interpolatedDerivatives, 0, interpolatedDerivatives.length);
       }
-
   }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/FieldButcherArrayProvider.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/FieldButcherArrayProvider.java
index dd3c07588..38ca919d1 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/FieldButcherArrayProvider.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/FieldButcherArrayProvider.java
@@ -42,5 +42,4 @@ public interface FieldButcherArrayProvider<T extends RealFieldElement<T>> {
      * @return external weights for the high order method from Butcher array
      */
     T[] getB();
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GillFieldIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GillFieldIntegrator.java
index d46e08ec8..4bd4bef33 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GillFieldIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GillFieldIntegrator.java
@@ -105,7 +105,6 @@ public class GillFieldIntegrator<T extends RealFieldElement<T>>
         b[3] = b[0];
 
         return b;
-
     }
 
     /** {@inheritDoc} */
@@ -120,5 +119,4 @@ public class GillFieldIntegrator<T extends RealFieldElement<T>>
                                                 globalPreviousState, globalCurrentState,
                                                 mapper);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GillFieldStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GillFieldStepInterpolator.java
index 11b337ff7..656fe461b 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GillFieldStepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GillFieldStepInterpolator.java
@@ -141,7 +141,5 @@ class GillFieldStepInterpolator<T extends RealFieldElement<T>>
         }
 
         return new FieldODEStateAndDerivative<>(time, interpolatedState, interpolatedDerivatives);
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GillIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GillIntegrator.java
index e5a1832e9..bdef80592 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GillIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GillIntegrator.java
@@ -70,5 +70,4 @@ public class GillIntegrator extends RungeKuttaIntegrator {
   public GillIntegrator(final double step) {
     super("Gill", STATIC_C, STATIC_A, STATIC_B, new GillStepInterpolator(), step);
   }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GillStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GillStepInterpolator.java
index 71b77c2a1..80c2a6919 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GillStepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GillStepInterpolator.java
@@ -144,7 +144,5 @@ class GillStepInterpolator
                     coeffDot1 * yDot1 + coeffDot2 * yDot2 + coeffDot3 * yDot3 + coeffDot4 * yDot4;
         }
     }
-
   }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GraggBulirschStoerIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GraggBulirschStoerIntegrator.java
index ba6dd0ec5..254032af8 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GraggBulirschStoerIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GraggBulirschStoerIntegrator.java
@@ -229,7 +229,6 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
     } else {
       this.stabilityReduction = stepsizeReductionFactor;
     }
-
   }
 
   /** Set the step size control factors.
@@ -282,7 +281,6 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
     } else {
       this.stepControl4 = control4;
     }
-
   }
 
   /** Set the order control parameters.
@@ -329,7 +327,6 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
 
     // reinitialize the arrays
     initializeArrays();
-
   }
 
   /** {@inheritDoc} */
@@ -340,7 +337,6 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
 
     // reinitialize the arrays
     initializeArrays();
-
   }
 
   /** {@inheritDoc} */
@@ -355,7 +351,6 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
 
     // reinitialize the arrays
     initializeArrays();
-
   }
 
   /** Initialize the integrator internal arrays. */
@@ -392,7 +387,6 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
         coeff[k][l] = 1.0 / (ratio * ratio - 1.0);
       }
     }
-
   }
 
   /** Set the interpolation order control parameter.
@@ -415,7 +409,6 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
     } else {
       this.mudif = mudifControlParameter;
     }
-
   }
 
   /** Update scaling array.
@@ -505,7 +498,6 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
           return false;
         }
       }
-
     }
 
     // correction of the last substep (at t0 + step)
@@ -514,7 +506,6 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
     }
 
     return true;
-
   }
 
   /** Extrapolate a vector.
@@ -579,7 +570,6 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
       for (int l = 0; l < sequence[k]; ++l) {
         fk[k][l+1] = new double[y0.length];
       }
-
     }
 
     if (y != y0) {
@@ -640,7 +630,6 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
         }
 
         newStep = false;
-
       }
 
       stepSize = hNew;
@@ -669,7 +658,6 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
           hNew   = JdkMath.abs(filterStep(stepSize * stabilityReduction, forward, false));
           reject = true;
           loop   = false;
-
         } else {
 
           // the substep was computed successfully
@@ -780,9 +768,7 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
                   loop = false;
                 }
                 break;
-
               }
-
             }
           }
         }
@@ -833,7 +819,6 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
               }
             }
           }
-
         }
 
         if (mu >= 0) {
@@ -853,9 +838,7 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
               reject = true;
             }
           }
-
         }
-
       }
 
       if (! reject) {
@@ -915,11 +898,9 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
           }
 
           targetIter = optimalIter;
-
         }
 
         newStep = true;
-
       }
 
       hNew = JdkMath.min(hNew, hInt);
@@ -935,7 +916,6 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
       } else {
         previousRejected = false;
       }
-
     } while (!isLastStep);
 
     // dispatch results
@@ -943,7 +923,5 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
     equations.setCompleteState(y);
 
     resetInternalState();
-
   }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GraggBulirschStoerStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GraggBulirschStoerStepInterpolator.java
index 7c095ecfa..4950b0309 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GraggBulirschStoerStepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GraggBulirschStoerStepInterpolator.java
@@ -146,7 +146,6 @@ class GraggBulirschStoerStepInterpolator
     this.yMidDots = yMidDots;
 
     resetTables(yMidDots.length + 4);
-
   }
 
   /** Copy constructor.
@@ -180,7 +179,6 @@ class GraggBulirschStoerStepInterpolator
       }
       currentDegree = interpolator.currentDegree;
     }
-
   }
 
   /** Reallocate the internal tables.
@@ -225,9 +223,7 @@ class GraggBulirschStoerStepInterpolator
       }
 
       currentDegree = 0;
-
     }
-
   }
 
   /** {@inheritDoc} */
@@ -288,12 +284,10 @@ class GraggBulirschStoerStepInterpolator
               polynomials[j+4][i] =
                   16 * (yMidDots[j][i] + fac1 * polynomials[j+2][i] - fac2 * polynomials[j][i]);
             }
-
           }
         }
       }
     }
-
   }
 
   /** Estimate interpolation error.
@@ -348,7 +342,6 @@ class GraggBulirschStoerStepInterpolator
             interpolatedState[i]       += t4 * c;
             interpolatedDerivatives[i] += (t4 * cDot + t4Dot * c) / h;
         }
-
     }
 
     if (h == 0) {
@@ -356,7 +349,6 @@ class GraggBulirschStoerStepInterpolator
         // we fix this by using the derivatives at midpoint
         System.arraycopy(yMidDots[1], 0, interpolatedDerivatives, 0, dimension);
     }
-
   }
 
   /** {@inheritDoc} */
@@ -376,7 +368,6 @@ class GraggBulirschStoerStepInterpolator
         out.writeDouble(polynomials[k][l]);
       }
     }
-
   }
 
   /** {@inheritDoc} */
@@ -401,7 +392,5 @@ class GraggBulirschStoerStepInterpolator
 
     // we can now set the interpolated time and state
     setInterpolatedTime(t);
-
   }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/HighamHall54FieldIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/HighamHall54FieldIntegrator.java
index 7a8b5fe31..39f2cc38d 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/HighamHall54FieldIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/HighamHall54FieldIntegrator.java
@@ -197,11 +197,8 @@ public class HighamHall54FieldIntegrator<T extends RealFieldElement<T>>
                              yScale.multiply(vecRelativeTolerance[j]).add(vecAbsoluteTolerance[j]);
             final T ratio  = h.multiply(errSum).divide(tol);
             error = error.add(ratio.multiply(ratio));
-
         }
 
         return error.divide(mainSetDimension).sqrt();
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/HighamHall54FieldStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/HighamHall54FieldStepInterpolator.java
index 7ae3c5645..44af4949a 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/HighamHall54FieldStepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/HighamHall54FieldStepInterpolator.java
@@ -110,7 +110,5 @@ class HighamHall54FieldStepInterpolator<T extends RealFieldElement<T>>
         }
 
         return new FieldODEStateAndDerivative<>(time, interpolatedState, interpolatedDerivatives);
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/HighamHall54Integrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/HighamHall54Integrator.java
index eaf6fb864..a64df3bba 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/HighamHall54Integrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/HighamHall54Integrator.java
@@ -125,11 +125,8 @@ public class HighamHall54Integrator extends EmbeddedRungeKuttaIntegrator {
                          (vecAbsoluteTolerance[j] + vecRelativeTolerance[j] * yScale);
       final double ratio  = h * errSum / tol;
       error += ratio * ratio;
-
     }
 
     return JdkMath.sqrt(error / mainSetDimension);
-
   }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/HighamHall54StepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/HighamHall54StepInterpolator.java
index 61256ec1a..a5f50a965 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/HighamHall54StepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/HighamHall54StepInterpolator.java
@@ -116,7 +116,5 @@ class HighamHall54StepInterpolator
                     bDot0 * yDot0 + bDot2 * yDot2 + bDot3 * yDot3 + bDot4 * yDot4 + bDot5 * yDot5;
         }
     }
-
   }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/LutherFieldIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/LutherFieldIntegrator.java
index 4050d4a5b..1cbef0387 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/LutherFieldIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/LutherFieldIntegrator.java
@@ -130,7 +130,6 @@ public class LutherFieldIntegrator<T extends RealFieldElement<T>>
         b[6] = b[0];
 
         return b;
-
     }
 
     /** {@inheritDoc} */
@@ -145,5 +144,4 @@ public class LutherFieldIntegrator<T extends RealFieldElement<T>>
                                                   globalPreviousState, globalCurrentState,
                                                   mapper);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/LutherFieldStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/LutherFieldStepInterpolator.java
index 230f8e4fc..b69ed4964 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/LutherFieldStepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/LutherFieldStepInterpolator.java
@@ -218,7 +218,5 @@ class LutherFieldStepInterpolator<T extends RealFieldElement<T>>
         }
 
         return new FieldODEStateAndDerivative<>(time, interpolatedState, interpolatedDerivatives);
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/LutherIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/LutherIntegrator.java
index 7fb3cf06d..13f55b35d 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/LutherIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/LutherIntegrator.java
@@ -85,5 +85,4 @@ public class LutherIntegrator extends RungeKuttaIntegrator {
     public LutherIntegrator(final double step) {
         super("Luther", STATIC_C, STATIC_A, STATIC_B, new LutherStepInterpolator(), step);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/LutherStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/LutherStepInterpolator.java
index 03b9ddbf7..31e607d72 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/LutherStepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/LutherStepInterpolator.java
@@ -176,7 +176,5 @@ class LutherStepInterpolator extends RungeKuttaStepInterpolator {
                         coeffDot4 * yDot4 + coeffDot5 * yDot5 + coeffDot6 * yDot6 + coeffDot7 * yDot7;
             }
         }
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/MidpointFieldIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/MidpointFieldIntegrator.java
index 5e2fff9f7..d5a23011c 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/MidpointFieldIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/MidpointFieldIntegrator.java
@@ -94,5 +94,4 @@ public class MidpointFieldIntegrator<T extends RealFieldElement<T>> extends Rung
                                                     globalPreviousState, globalCurrentState,
                                                     mapper);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/MidpointFieldStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/MidpointFieldStepInterpolator.java
index e135ba4e6..297b885ef 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/MidpointFieldStepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/MidpointFieldStepInterpolator.java
@@ -111,7 +111,5 @@ class MidpointFieldStepInterpolator<T extends RealFieldElement<T>>
         }
 
         return new FieldODEStateAndDerivative<>(time, interpolatedState, interpolatedDerivatives);
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/MidpointIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/MidpointIntegrator.java
index a45fa5f32..80855acfc 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/MidpointIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/MidpointIntegrator.java
@@ -64,5 +64,4 @@ public class MidpointIntegrator extends RungeKuttaIntegrator {
   public MidpointIntegrator(final double step) {
     super("midpoint", STATIC_C, STATIC_A, STATIC_B, new MidpointStepInterpolator(), step);
   }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/MidpointStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/MidpointStepInterpolator.java
index a5b41e86d..f5a618236 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/MidpointStepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/MidpointStepInterpolator.java
@@ -109,7 +109,5 @@ class MidpointStepInterpolator
             interpolatedDerivatives[i] = coeffDot1 * yDot1 + coeffDot2 * yDot2;
         }
     }
-
   }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/RungeKuttaFieldIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/RungeKuttaFieldIntegrator.java
index cb11ecac7..ea51e71b3 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/RungeKuttaFieldIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/RungeKuttaFieldIntegrator.java
@@ -163,7 +163,6 @@ public abstract class RungeKuttaFieldIntegrator<T extends RealFieldElement<T>>
                 }
 
                 yDotK[k] = computeDerivatives(getStepStart().getTime().add(getStepSize().multiply(c[k-1])), yTmp);
-
             }
 
             // estimate the state at the end of the step
@@ -194,14 +193,12 @@ public abstract class RungeKuttaFieldIntegrator<T extends RealFieldElement<T>>
                     setStepSize(finalTime.subtract(getStepStart().getTime()));
                 }
             }
-
         } while (!isLastStep());
 
         final FieldODEStateAndDerivative<T> finalState = getStepStart();
         setStepStart(null);
         setStepSize(null);
         return finalState;
-
     }
 
     /** Fast computation of a single step of ODE integration.
@@ -254,7 +251,6 @@ public abstract class RungeKuttaFieldIntegrator<T extends RealFieldElement<T>>
             }
 
             yDotK[k] = equations.computeDerivatives(t0.add(h.multiply(c[k-1])), yTmp);
-
         }
 
         // estimate the state at the end of the step
@@ -267,7 +263,5 @@ public abstract class RungeKuttaFieldIntegrator<T extends RealFieldElement<T>>
         }
 
         return y;
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/RungeKuttaFieldStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/RungeKuttaFieldStepInterpolator.java
index a2e796d9b..d73e3975e 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/RungeKuttaFieldStepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/RungeKuttaFieldStepInterpolator.java
@@ -143,5 +143,4 @@ abstract class RungeKuttaFieldStepInterpolator<T extends RealFieldElement<T>>
         }
         return a;
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/RungeKuttaIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/RungeKuttaIntegrator.java
index 7c3eb2819..4726d8140 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/RungeKuttaIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/RungeKuttaIntegrator.java
@@ -154,7 +154,6 @@ public abstract class RungeKuttaIntegrator extends AbstractIntegrator {
           }
 
           computeDerivatives(stepStart + c[k-1] * stepSize, yTmp, yDotK[k]);
-
       }
 
       // estimate the state at the end of the step
@@ -184,7 +183,6 @@ public abstract class RungeKuttaIntegrator extends AbstractIntegrator {
               stepSize = t - stepStart;
           }
       }
-
     } while (!isLastStep);
 
     // dispatch results
@@ -193,7 +191,6 @@ public abstract class RungeKuttaIntegrator extends AbstractIntegrator {
 
     stepStart = Double.NaN;
     stepSize  = Double.NaN;
-
   }
 
   /** Fast computation of a single step of ODE integration.
@@ -249,7 +246,6 @@ public abstract class RungeKuttaIntegrator extends AbstractIntegrator {
           }
 
           equations.computeDerivatives(t0 + c[k-1] * h, yTmp, yDotK[k]);
-
       }
 
       // estimate the state at the end of the step
@@ -262,7 +258,5 @@ public abstract class RungeKuttaIntegrator extends AbstractIntegrator {
       }
 
       return y;
-
   }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/RungeKuttaStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/RungeKuttaStepInterpolator.java
index 0a26c991c..f87e04438 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/RungeKuttaStepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/RungeKuttaStepInterpolator.java
@@ -91,7 +91,6 @@ abstract class RungeKuttaStepInterpolator
       for (int k = 0; k < interpolator.yDotK.length; ++k) {
         yDotK[k] = interpolator.yDotK[k].clone();
       }
-
     } else {
       previousState = null;
       yDotK = null;
@@ -100,7 +99,6 @@ abstract class RungeKuttaStepInterpolator
     // we cannot keep any reference to the equations in the copy
     // the interpolator should have been finalized before
     integrator = null;
-
   }
 
   /** Reinitialize the instance
@@ -166,7 +164,6 @@ abstract class RungeKuttaStepInterpolator
     }
 
     // we do not save any reference to the equations
-
   }
 
   /** {@inheritDoc} */
@@ -205,7 +202,5 @@ abstract class RungeKuttaStepInterpolator
     } else {
         interpolatedTime = t;
     }
-
   }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ThreeEighthesFieldIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ThreeEighthesFieldIntegrator.java
index 7a024f6b5..87d2a23c5 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ThreeEighthesFieldIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ThreeEighthesFieldIntegrator.java
@@ -108,5 +108,4 @@ public class ThreeEighthesFieldIntegrator<T extends RealFieldElement<T>>
                                                          globalPreviousState, globalCurrentState,
                                                          mapper);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ThreeEighthesFieldStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ThreeEighthesFieldStepInterpolator.java
index 6b79b421f..0b3098170 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ThreeEighthesFieldStepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ThreeEighthesFieldStepInterpolator.java
@@ -132,7 +132,5 @@ class ThreeEighthesFieldStepInterpolator<T extends RealFieldElement<T>>
         }
 
         return new FieldODEStateAndDerivative<>(time, interpolatedState, interpolatedDerivatives);
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ThreeEighthesIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ThreeEighthesIntegrator.java
index 72f0896d6..39b37dbe7 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ThreeEighthesIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ThreeEighthesIntegrator.java
@@ -67,5 +67,4 @@ public class ThreeEighthesIntegrator extends RungeKuttaIntegrator {
   public ThreeEighthesIntegrator(final double step) {
     super("3/8", STATIC_C, STATIC_A, STATIC_B, new ThreeEighthesStepInterpolator(), step);
   }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ThreeEighthesStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ThreeEighthesStepInterpolator.java
index 67875dac9..ff577a3ae 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ThreeEighthesStepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ThreeEighthesStepInterpolator.java
@@ -118,7 +118,6 @@ class ThreeEighthesStepInterpolator
                       previousState[i] + coeff1 * yDot1 + coeff2 * yDot2 + coeff3 * yDot3 + coeff4 * yDot4;
               interpolatedDerivatives[i] =
                       coeffDot1 * yDot1 + coeffDot2 * yDot2 + coeffDot3 * yDot3 + coeffDot4 * yDot4;
-
           }
       } else {
           final double s          = oneMinusThetaH / 8.0;
@@ -136,10 +135,7 @@ class ThreeEighthesStepInterpolator
                       currentState[i] - coeff1 * yDot1 - coeff2 * yDot2 - coeff3 * yDot3 - coeff4 * yDot4;
               interpolatedDerivatives[i] =
                       coeffDot1 * yDot1 + coeffDot2 * yDot2 + coeffDot3 * yDot3 + coeffDot4 * yDot4;
-
           }
       }
-
   }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/AbstractFieldStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/AbstractFieldStepInterpolator.java
index 9792178a8..ac8c25b1c 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/AbstractFieldStepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/AbstractFieldStepInterpolator.java
@@ -171,5 +171,4 @@ public abstract class AbstractFieldStepInterpolator<T extends RealFieldElement<T
                                                                                             T time, T theta,
                                                                                             T thetaH, T oneMinusThetaH)
         throws MaxCountExceededException;
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/AbstractStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/AbstractStepInterpolator.java
index e4c5cc670..b074415af 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/AbstractStepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/AbstractStepInterpolator.java
@@ -148,7 +148,6 @@ public abstract class AbstractStepInterpolator
     this.primaryMapper    = primaryMapper;
     this.secondaryMappers = (secondaryMappers == null) ? null : secondaryMappers.clone();
     allocateInterpolatedArrays(y.length);
-
   }
 
   /** Copy constructor.
@@ -202,7 +201,6 @@ public abstract class AbstractStepInterpolator
     primaryMapper    = interpolator.primaryMapper;
     secondaryMappers = (interpolator.secondaryMappers == null) ?
                        null : interpolator.secondaryMappers.clone();
-
   }
 
   /** Allocate the various interpolated states arrays.
@@ -258,7 +256,6 @@ public abstract class AbstractStepInterpolator
     this.primaryMapper    = primary;
     this.secondaryMappers = secondary.clone();
     allocateInterpolatedArrays(y.length);
-
   }
 
   /** {@inheritDoc} */
@@ -270,7 +267,6 @@ public abstract class AbstractStepInterpolator
 
      // create the new independent instance
      return doCopy();
-
    }
 
    /** Really copy the finalized instance.
@@ -304,7 +300,6 @@ public abstract class AbstractStepInterpolator
 
     // the step is not finalized anymore
     finalized  = false;
-
   }
 
   /** Restrict step range to a limited part of the global step.
@@ -564,7 +559,6 @@ public double getCurrentTime() {
         ioe.initCause(mcee);
         throw ioe;
     }
-
   }
 
   /** Read the base state of the instance.
@@ -611,7 +605,5 @@ public double getCurrentTime() {
     finalized = true;
 
     return in.readDouble();
-
   }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/DummyStepHandler.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/DummyStepHandler.java
index 0ac4c68c2..6133bf283 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/DummyStepHandler.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/DummyStepHandler.java
@@ -87,5 +87,4 @@ public final class DummyStepHandler implements StepHandler {
         // return the singleton instance
         return LazyHolder.INSTANCE;
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/FieldFixedStepHandler.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/FieldFixedStepHandler.java
index 1fa8d34ba..6d67c3a62 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/FieldFixedStepHandler.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/FieldFixedStepHandler.java
@@ -65,5 +65,4 @@ public interface FieldFixedStepHandler<T extends RealFieldElement<T>> {
      * @param isLast true if the step is the last one
      */
     void handleStep(FieldODEStateAndDerivative<T> state, boolean isLast);
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/FieldStepHandler.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/FieldStepHandler.java
index 4b85489ba..e366d4d67 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/FieldStepHandler.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/FieldStepHandler.java
@@ -71,5 +71,4 @@ public interface FieldStepHandler<T extends RealFieldElement<T>> {
      */
     void handleStep(FieldStepInterpolator<T> interpolator, boolean isLast)
         throws MaxCountExceededException;
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/FieldStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/FieldStepInterpolator.java
index 72fce8b36..9109430f7 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/FieldStepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/FieldStepInterpolator.java
@@ -72,5 +72,4 @@ public interface FieldStepInterpolator<T extends RealFieldElement<T>> {
    * integration
    */
   boolean isForward();
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/FieldStepNormalizer.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/FieldStepNormalizer.java
index 15b1a5267..85345035c 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/FieldStepNormalizer.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/FieldStepNormalizer.java
@@ -176,7 +176,6 @@ public class FieldStepNormalizer<T extends RealFieldElement<T>> implements Field
 
         // initialize the underlying handler
         handler.init(initialState, finalTime);
-
     }
 
     /**
@@ -270,5 +269,4 @@ public class FieldStepNormalizer<T extends RealFieldElement<T>> implements Field
         }
         handler.handleStep(last, isLast);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/FixedStepHandler.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/FixedStepHandler.java
index ec2371450..3be7e7f2c 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/FixedStepHandler.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/FixedStepHandler.java
@@ -67,5 +67,4 @@ public interface FixedStepHandler  {
    * @param isLast true if the step is the last one
    */
   void handleStep(double t, double[] y, double[] yDot, boolean isLast);
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/NordsieckStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/NordsieckStepInterpolator.java
index aa1b8ae84..32086c93b 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/NordsieckStepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/NordsieckStepInterpolator.java
@@ -136,7 +136,6 @@ public class NordsieckStepInterpolator extends AbstractStepInterpolator {
 
         // make sure the state and derivatives will depend on the new arrays
         setInterpolatedTime(getInterpolatedTime());
-
     }
 
     /** Rescale the instance.
@@ -162,7 +161,6 @@ public class NordsieckStepInterpolator extends AbstractStepInterpolator {
         }
 
         scalingH = stepSize;
-
     }
 
     /**
@@ -214,7 +212,6 @@ public class NordsieckStepInterpolator extends AbstractStepInterpolator {
             interpolatedDerivatives[j] =
                 (interpolatedDerivatives[j] + scaled[j] * normalizedAbscissa) / x;
         }
-
     }
 
     /** {@inheritDoc} */
@@ -247,7 +244,6 @@ public class NordsieckStepInterpolator extends AbstractStepInterpolator {
         }
 
         // we don't save state variation, it will be recomputed
-
     }
 
     /** {@inheritDoc} */
@@ -287,7 +283,5 @@ public class NordsieckStepInterpolator extends AbstractStepInterpolator {
         } else {
             stateVariation = null;
         }
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/StepHandler.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/StepHandler.java
index e4c8ea10c..d1565d3ec 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/StepHandler.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/StepHandler.java
@@ -71,5 +71,4 @@ public interface StepHandler {
      */
     void handleStep(StepInterpolator interpolator, boolean isLast)
         throws MaxCountExceededException;
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/StepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/StepInterpolator.java
index ee3a8b2b7..26d0a675b 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/StepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/StepInterpolator.java
@@ -177,5 +177,4 @@ public interface StepInterpolator extends Externalizable {
    * during step finalization
    */
    StepInterpolator copy() throws MaxCountExceededException;
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/StepNormalizer.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/StepNormalizer.java
index 296295a0c..cfb69dbd0 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/StepNormalizer.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/sampling/StepNormalizer.java
@@ -183,7 +183,6 @@ public class StepNormalizer implements StepHandler {
 
         // initialize the underlying handler
         handler.init(t0, y0, t);
-
     }
 
     /**
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/AbstractOptimizationProblem.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/AbstractOptimizationProblem.java
index 6ed86dc3b..21b4bfaa3 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/AbstractOptimizationProblem.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/AbstractOptimizationProblem.java
@@ -107,5 +107,4 @@ public abstract class AbstractOptimizationProblem<PAIR>
             throw new TooManyIterationsException(max);
         }
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/MultivariateFunctionMappingAdapter.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/MultivariateFunctionMappingAdapter.java
index 46a96fa8c..efc33ca6b 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/MultivariateFunctionMappingAdapter.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/MultivariateFunctionMappingAdapter.java
@@ -240,7 +240,6 @@ public class MultivariateFunctionMappingAdapter
         public double boundedToUnbounded(final double x) {
             return JdkMath.log(x - lower);
         }
-
     }
 
     /** Local class for upper bounds mapping. */
@@ -267,7 +266,6 @@ public class MultivariateFunctionMappingAdapter
         public double boundedToUnbounded(final double x) {
             return -JdkMath.log(upper - x);
         }
-
     }
 
     /** Local class for lower and bounds mapping. */
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/BOBYQAOptimizer.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/BOBYQAOptimizer.java
index 336528265..87515e94c 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/BOBYQAOptimizer.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/BOBYQAOptimizer.java
@@ -484,7 +484,6 @@ public class BOBYQAOptimizer
             // have occurred since the last "alternative" iteration. If the length
             // of XNEW-XOPT is less than HALF*RHO, however, then there is a branch to
             // label 650 or 680 with NTRITS=-1, instead of calculating F at XNEW.
-
         }
         case 60: {
             printState(60); // XXX
@@ -558,7 +557,6 @@ public class BOBYQAOptimizer
             // zero. The appropriate changes are made to BMAT and to the second
             // derivatives of the current model, beginning with the changes to BMAT
             // that do not depend on ZMAT. VLAG is used temporarily for working space.
-
         }
         case 90: {
             printState(90); // XXX
@@ -663,7 +661,6 @@ public class BOBYQAOptimizer
             // only if rounding errors have reduced by at least a factor of two the
             // denominator of the formula for updating the H matrix. It provides a
             // useful safeguard, but is not invoked in most applications of BOBYQA.
-
         }
         case 210: {
             printState(210); // XXX
@@ -689,7 +686,6 @@ public class BOBYQAOptimizer
             // Calculate VLAG and BETA for the current choice of D. The scalar
             // product of D with XPT(K,.) is going to be held in W(NPT+K) for
             // use when VQUAD is calculated.
-
         }
         case 230: {
             printState(230); // XXX
@@ -766,7 +762,6 @@ public class BOBYQAOptimizer
                 // region step. Again RESCUE may be called if rounding errors have damaged_
                 // the chosen denominator, which is the reason for attempting to select
                 // KNEW before calculating the next value of the objective function.
-
             } else {
                 final double delsq = delta * delta;
                 scaden = ZERO;
@@ -812,7 +807,6 @@ public class BOBYQAOptimizer
 
             // Calculate the value of the objective function at XBASE+XNEW, unless
             //   the limit on the number of calculations of F has been reached.
-
         }
         case 360: {
             printState(360); // XXX
@@ -1392,7 +1386,6 @@ public class BOBYQAOptimizer
                 }
 
                 // Search along each of the other lines through XOPT and another point.
-
             } else {
                 vlag = slbd * (ONE - slbd);
                 final double tmp = subd * (ONE - subd);
@@ -1746,7 +1739,6 @@ public class BOBYQAOptimizer
 
                 // Set the off-diagonal second derivatives of the Lagrange functions and
                 // the initial quadratic model.
-
             } else {
                 zMatrix.setEntry(0, nfxm, recip);
                 zMatrix.setEntry(nfm, nfxm, recip);
@@ -2035,7 +2027,6 @@ public class BOBYQAOptimizer
             // Prepare for the alternative iteration by calculating some scalars
             // and by multiplying the reduced D by the second derivative matrix of
             // Q, where S holds the reduced D in the call of GGMULT.
-
         }
         case 100: {
             printState(100); // XXX
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/random/SobolSequenceGenerator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/random/SobolSequenceGenerator.java
index cf64e8bf8..dcf1ad102 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/random/SobolSequenceGenerator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/random/SobolSequenceGenerator.java
@@ -319,5 +319,4 @@ public class SobolSequenceGenerator implements Supplier<double[]> {
     public int getNextIndex() {
         return count;
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/Frequency.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/Frequency.java
index e41aa646e..06633c33f 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/Frequency.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/Frequency.java
@@ -370,5 +370,4 @@ public class Frequency<T extends Comparable<T>> {
         Frequency<?> other = (Frequency<?>) obj;
         return freqTable.equals(other.freqTable);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/StatUtils.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/StatUtils.java
index 33e0245b4..0fcd3e74e 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/StatUtils.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/StatUtils.java
@@ -852,5 +852,4 @@ public final class StatUtils {
         // Convert the list to an array of primitive double
         return list.stream().mapToDouble(Double::doubleValue).toArray();
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/correlation/SpearmansCorrelation.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/correlation/SpearmansCorrelation.java
index c53b2345c..3817234fd 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/correlation/SpearmansCorrelation.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/correlation/SpearmansCorrelation.java
@@ -199,5 +199,4 @@ public class SpearmansCorrelation {
 
         return transformed;
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/correlation/StorelessCovariance.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/correlation/StorelessCovariance.java
index 09aeb02e7..035ad804e 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/correlation/StorelessCovariance.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/correlation/StorelessCovariance.java
@@ -133,7 +133,6 @@ public class StorelessCovariance extends Covariance {
         throws NumberIsTooSmallException {
 
         return getElement(xIndex, yIndex).getResult();
-
     }
 
     /**
@@ -158,7 +157,6 @@ public class StorelessCovariance extends Covariance {
                 getElement(i, j).increment(data[i], data[j]);
             }
         }
-
     }
 
     /**
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/AbstractStorelessUnivariateStatistic.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/AbstractStorelessUnivariateStatistic.java
index 37d39528f..1ea77e0f5 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/AbstractStorelessUnivariateStatistic.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/AbstractStorelessUnivariateStatistic.java
@@ -187,5 +187,4 @@ public abstract class AbstractStorelessUnivariateStatistic
     public int hashCode() {
         return 31 * (31 + Double.hashCode(getResult())) + Double.hashCode(getN());
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/AbstractUnivariateStatistic.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/AbstractUnivariateStatistic.java
index 0e0da1be3..41618fdf9 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/AbstractUnivariateStatistic.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/AbstractUnivariateStatistic.java
@@ -128,5 +128,4 @@ public abstract class AbstractUnivariateStatistic
     public double evaluate() throws MathIllegalArgumentException {
         return evaluate(storedData);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/DoubleArray.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/DoubleArray.java
index eb31414ef..3f4638c4c 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/DoubleArray.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/DoubleArray.java
@@ -106,5 +106,4 @@ interface DoubleArray { // Not in public API.
      * Clear the double array.
      */
     void clear();
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/MultivariateSummaryStatistics.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/MultivariateSummaryStatistics.java
index b62aa1ccc..60cdf77c2 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/MultivariateSummaryStatistics.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/MultivariateSummaryStatistics.java
@@ -128,7 +128,6 @@ public class MultivariateSummaryStatistics
 
         covarianceImpl =
             new VectorialCovariance(k, isCovarianceBiasCorrected);
-
     }
 
     /**
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/ResizableDoubleArray.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/ResizableDoubleArray.java
index 9c35c4d6c..0b3034c57 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/ResizableDoubleArray.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/ResizableDoubleArray.java
@@ -843,5 +843,4 @@ class ResizableDoubleArray implements DoubleArray { // Not in public API.
         hashData[5] = startIndex;
         return Arrays.hashCode(hashData);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/StatisticalMultivariateSummary.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/StatisticalMultivariateSummary.java
index 56ab55b3b..412d1c89c 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/StatisticalMultivariateSummary.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/StatisticalMultivariateSummary.java
@@ -115,5 +115,4 @@ public interface StatisticalMultivariateSummary {
      * @return the array of component log sums
      */
     double[] getSumLog();
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/StatisticalSummary.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/StatisticalSummary.java
index 970045433..931d5d03e 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/StatisticalSummary.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/StatisticalSummary.java
@@ -60,5 +60,4 @@ public interface StatisticalSummary {
      * @return The sum or Double.NaN if no values have been added
      */
     double getSum();
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/StorelessUnivariateStatistic.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/StorelessUnivariateStatistic.java
index a6e88bcdc..a4bec1ee5 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/StorelessUnivariateStatistic.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/StorelessUnivariateStatistic.java
@@ -87,5 +87,4 @@ public interface StorelessUnivariateStatistic extends UnivariateStatistic {
      */
     @Override
     StorelessUnivariateStatistic copy();
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/SynchronizedSummaryStatistics.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/SynchronizedSummaryStatistics.java
index 008a3e118..827e22268 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/SynchronizedSummaryStatistics.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/SynchronizedSummaryStatistics.java
@@ -357,5 +357,4 @@ public class SynchronizedSummaryStatistics extends SummaryStatistics {
             }
         }
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/WeightedEvaluation.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/WeightedEvaluation.java
index e8311f3c0..051359c57 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/WeightedEvaluation.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/WeightedEvaluation.java
@@ -53,5 +53,4 @@ public interface WeightedEvaluation {
      */
     double evaluate(double[] values, double[] weights, int begin, int length)
     throws MathIllegalArgumentException;
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/moment/GeometricMean.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/moment/GeometricMean.java
index 5d9fee507..9fa60a6ac 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/moment/GeometricMean.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/moment/GeometricMean.java
@@ -198,5 +198,4 @@ public class GeometricMean extends AbstractStorelessUnivariateStatistic {
                     getN());
         }
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/moment/Kurtosis.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/moment/Kurtosis.java
index cdbf7d0cb..29cf179d1 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/moment/Kurtosis.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/moment/Kurtosis.java
@@ -215,5 +215,4 @@ public class Kurtosis extends AbstractStorelessUnivariateStatistic {
         dest.moment = source.moment.copy();
         dest.incMoment = source.incMoment;
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/moment/SecondMoment.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/moment/SecondMoment.java
index 44f2dbb56..3901a6b4c 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/moment/SecondMoment.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/moment/SecondMoment.java
@@ -121,5 +121,4 @@ public class SecondMoment extends FirstMoment {
         FirstMoment.copy(source, dest);
         dest.m2 = source.m2;
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/moment/StandardDeviation.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/moment/StandardDeviation.java
index 419676c4d..75aa18f00 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/moment/StandardDeviation.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/moment/StandardDeviation.java
@@ -265,5 +265,4 @@ public class StandardDeviation extends AbstractStorelessUnivariateStatistic {
         NullArgumentException.check(dest);
         dest.variance = source.variance.copy();
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/moment/ThirdMoment.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/moment/ThirdMoment.java
index 23f025349..56ea0c7e9 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/moment/ThirdMoment.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/moment/ThirdMoment.java
@@ -137,5 +137,4 @@ class ThirdMoment extends SecondMoment {
         dest.m3 = source.m3;
         dest.nDevSq = source.nDevSq;
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/moment/VectorialCovariance.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/moment/VectorialCovariance.java
index d602105be..af8c4be1f 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/moment/VectorialCovariance.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/moment/VectorialCovariance.java
@@ -92,7 +92,6 @@ public class VectorialCovariance {
         }
 
         return result;
-
     }
 
     /**
@@ -145,5 +144,4 @@ public class VectorialCovariance {
         }
         return Arrays.equals(sums, other.sums);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/moment/VectorialMean.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/moment/VectorialMean.java
index 1c505462c..af9e16187 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/moment/VectorialMean.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/moment/VectorialMean.java
@@ -93,5 +93,4 @@ public class VectorialMean {
         VectorialMean other = (VectorialMean) obj;
         return Arrays.equals(means, other.means);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/rank/Median.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/rank/Median.java
index 00c04853f..6185d1fbe 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/rank/Median.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/rank/Median.java
@@ -85,5 +85,4 @@ public class Median extends Percentile {
     public Median withKthSelector(final KthSelector newKthSelector) {
         return new Median(getEstimationType(), getNaNStrategy(), newKthSelector);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/rank/MedianOf3PivotingStrategy.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/rank/MedianOf3PivotingStrategy.java
index 30fbc43a8..eb89337e8 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/rank/MedianOf3PivotingStrategy.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/rank/MedianOf3PivotingStrategy.java
@@ -52,5 +52,4 @@ public class MedianOf3PivotingStrategy implements PivotingStrategy {
             }
         }
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/rank/PSquarePercentile.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/rank/PSquarePercentile.java
index 6b8a2761a..aecf306f7 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/rank/PSquarePercentile.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/rank/PSquarePercentile.java
@@ -553,7 +553,6 @@ public class PSquarePercentile extends AbstractStorelessUnivariateStatistic
                     markerArray[3].toString(), markerArray[4].toString(),
                     markerArray[5].toString());
         }
-
     }
 
     /**
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/rank/Percentile.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/rank/Percentile.java
index 6fbfbc696..dfc8ab2a5 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/rank/Percentile.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/rank/Percentile.java
@@ -167,7 +167,6 @@ public class Percentile extends AbstractUnivariateStatistic {
             System.arraycopy(original.cachedPivots, 0, cachedPivots, 0, original.cachedPivots.length);
         }
         setQuantile(original.quantile);
-
     }
 
     /**
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/summary/Product.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/summary/Product.java
index a1ffdf6db..88c8c4b16 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/summary/Product.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/summary/Product.java
@@ -220,5 +220,4 @@ public class Product extends AbstractStorelessUnivariateStatistic implements Wei
         dest.n = source.n;
         dest.value = source.value;
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/summary/Sum.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/summary/Sum.java
index f98faa0ba..2522652f1 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/summary/Sum.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/summary/Sum.java
@@ -214,5 +214,4 @@ public class Sum extends AbstractStorelessUnivariateStatistic {
         dest.n = source.n;
         dest.value = source.value;
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/summary/SumOfSquares.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/summary/SumOfSquares.java
index 7462052e3..9c28aa713 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/summary/SumOfSquares.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/summary/SumOfSquares.java
@@ -149,5 +149,4 @@ public class SumOfSquares extends AbstractStorelessUnivariateStatistic {
         dest.n = source.n;
         dest.value = source.value;
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/ChiSquareTest.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/ChiSquareTest.java
index 2d9333200..ab1bee3ae 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/ChiSquareTest.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/ChiSquareTest.java
@@ -113,7 +113,6 @@ public class ChiSquareTest {
             }
         }
         return sumSq;
-
     }
 
     /**
@@ -210,7 +209,6 @@ public class ChiSquareTest {
                                           alpha, 0, 0.5);
         }
         return chiSquareTest(expected, observed) < alpha;
-
     }
 
     /**
@@ -284,7 +282,6 @@ public class ChiSquareTest {
             }
         }
         return sumSq;
-
     }
 
     /**
@@ -334,7 +331,6 @@ public class ChiSquareTest {
         // pass a null rng to avoid unneeded overhead as we will not sample from this distribution
         final ChiSquaredDistribution distribution = ChiSquaredDistribution.of(df);
         return 1 - distribution.cumulativeProbability(chiSquare(counts));
-
     }
 
     /**
@@ -391,7 +387,6 @@ public class ChiSquareTest {
                                           alpha, 0, 0.5);
         }
         return chiSquareTest(counts) < alpha;
-
     }
 
     /**
@@ -539,7 +534,6 @@ public class ChiSquareTest {
                 ChiSquaredDistribution.of((double) observed1.length - 1);
         return 1 - distribution.cumulativeProbability(
                 chiSquareDataSetsComparison(observed1, observed2));
-
     }
 
     /**
@@ -596,7 +590,6 @@ public class ChiSquareTest {
                                           alpha, 0, 0.5);
         }
         return chiSquareTestDataSetsComparison(observed1, observed2) < alpha;
-
     }
 
     /**
@@ -622,7 +615,6 @@ public class ChiSquareTest {
 
         MathArrays.checkRectangular(in);
         MathArrays.checkNonNegative(in);
-
     }
 
     /**
@@ -639,5 +631,4 @@ public class ChiSquareTest {
                 name + " " + index);
         }
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/InferenceTestUtils.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/InferenceTestUtils.java
index 5929c586f..f7bf2530d 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/InferenceTestUtils.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/InferenceTestUtils.java
@@ -741,5 +741,4 @@ public final class InferenceTestUtils {
 
 
     // CHECKSTYLE: resume JavadocMethodCheck
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/OneWayAnova.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/OneWayAnova.java
index d47742797..2643270e0 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/OneWayAnova.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/OneWayAnova.java
@@ -88,7 +88,6 @@ public class OneWayAnova {
 
         AnovaStats a = anovaStats(categoryData);
         return a.f;
-
     }
 
     /**
@@ -128,7 +127,6 @@ public class OneWayAnova {
         // pass a null rng to avoid unneeded overhead as we will not sample from this distribution
         final FDistribution fdist = FDistribution.of(a.dfbg, a.dfwg);
         return 1.0 - fdist.cumulativeProbability(a.f);
-
     }
 
     /**
@@ -170,7 +168,6 @@ public class OneWayAnova {
         // pass a null rng to avoid unneeded overhead as we will not sample from this distribution
         final FDistribution fdist = FDistribution.of(a.dfbg, a.dfwg);
         return 1.0 - fdist.cumulativeProbability(a.f);
-
     }
 
     /**
@@ -206,7 +203,6 @@ public class OneWayAnova {
         }
 
         return anovaStats(categoryDataSummaryStatistics, false);
-
     }
 
     /**
@@ -254,7 +250,6 @@ public class OneWayAnova {
                     alpha, 0, 0.5);
         }
         return anovaPValue(categoryData) < alpha;
-
     }
 
     /**
@@ -320,7 +315,6 @@ public class OneWayAnova {
         final double f = msbg / mswg;
 
         return new AnovaStats(dfbg, dfwg, f);
-
     }
 
     /**
@@ -350,5 +344,4 @@ public class OneWayAnova {
             this.f = f;
         }
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/TTest.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/TTest.java
index f80aecaf8..b597fbc95 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/TTest.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/TTest.java
@@ -87,7 +87,6 @@ public class TTest {
         return t(meanDifference, 0,
                  StatUtils.varianceDifference(sample1, sample2, meanDifference),
                  sample1.length);
-
     }
 
     /**
@@ -134,7 +133,6 @@ public class TTest {
         return tTest(meanDifference, 0,
                 StatUtils.varianceDifference(sample1, sample2, meanDifference),
                 sample1.length);
-
     }
 
     /**
@@ -180,7 +178,6 @@ public class TTest {
 
         checkSignificanceLevel(alpha);
         return pairedTTest(sample1, sample2) < alpha;
-
     }
 
     /**
@@ -206,7 +203,6 @@ public class TTest {
         // No try-catch or advertised exception because args have just been checked
         return t(StatUtils.mean(observed), mu, StatUtils.variance(observed),
                 observed.length);
-
     }
 
     /**
@@ -232,7 +228,6 @@ public class TTest {
         checkSampleData(sampleStats);
         return t(sampleStats.getMean(), mu, sampleStats.getVariance(),
                  sampleStats.getN());
-
     }
 
     /**
@@ -277,7 +272,6 @@ public class TTest {
         return homoscedasticT(StatUtils.mean(sample1), StatUtils.mean(sample2),
                               StatUtils.variance(sample1), StatUtils.variance(sample2),
                               sample1.length, sample2.length);
-
     }
 
     /**
@@ -318,7 +312,6 @@ public class TTest {
         return t(StatUtils.mean(sample1), StatUtils.mean(sample2),
                  StatUtils.variance(sample1), StatUtils.variance(sample2),
                  sample1.length, sample2.length);
-
     }
 
     /**
@@ -362,7 +355,6 @@ public class TTest {
         return t(sampleStats1.getMean(), sampleStats2.getMean(),
                  sampleStats1.getVariance(), sampleStats2.getVariance(),
                  sampleStats1.getN(), sampleStats2.getN());
-
     }
 
     /**
@@ -410,7 +402,6 @@ public class TTest {
         return homoscedasticT(sampleStats1.getMean(), sampleStats2.getMean(),
                               sampleStats1.getVariance(), sampleStats2.getVariance(),
                               sampleStats1.getN(), sampleStats2.getN());
-
     }
 
     /**
@@ -448,7 +439,6 @@ public class TTest {
         // No try-catch or advertised exception because args have just been checked
         return tTest(StatUtils.mean(sample), mu, StatUtils.variance(sample),
                      sample.length);
-
     }
 
     /**
@@ -494,7 +484,6 @@ public class TTest {
 
         checkSignificanceLevel(alpha);
         return tTest(mu, sample) < alpha;
-
     }
 
     /**
@@ -533,7 +522,6 @@ public class TTest {
         checkSampleData(sampleStats);
         return tTest(sampleStats.getMean(), mu, sampleStats.getVariance(),
                      sampleStats.getN());
-
     }
 
     /**
@@ -581,7 +569,6 @@ public class TTest {
 
         checkSignificanceLevel(alpha);
         return tTest(mu, sampleStats) < alpha;
-
     }
 
     /**
@@ -631,7 +618,6 @@ public class TTest {
         return tTest(StatUtils.mean(sample1), StatUtils.mean(sample2),
                      StatUtils.variance(sample1), StatUtils.variance(sample2),
                      sample1.length, sample2.length);
-
     }
 
     /**
@@ -680,7 +666,6 @@ public class TTest {
                                   StatUtils.variance(sample1),
                                   StatUtils.variance(sample2),
                                   sample1.length, sample2.length);
-
     }
 
     /**
@@ -742,7 +727,6 @@ public class TTest {
 
         checkSignificanceLevel(alpha);
         return tTest(sample1, sample2) < alpha;
-
     }
 
     /**
@@ -805,7 +789,6 @@ public class TTest {
 
         checkSignificanceLevel(alpha);
         return homoscedasticTTest(sample1, sample2) < alpha;
-
     }
 
     /**
@@ -853,7 +836,6 @@ public class TTest {
         return tTest(sampleStats1.getMean(), sampleStats2.getMean(),
                      sampleStats1.getVariance(), sampleStats2.getVariance(),
                      sampleStats1.getN(), sampleStats2.getN());
-
     }
 
     /**
@@ -902,7 +884,6 @@ public class TTest {
                                   sampleStats1.getVariance(),
                                   sampleStats2.getVariance(),
                                   sampleStats1.getN(), sampleStats2.getN());
-
     }
 
     /**
@@ -968,7 +949,6 @@ public class TTest {
 
         checkSignificanceLevel(alpha);
         return tTest(sampleStats1, sampleStats2) < alpha;
-
     }
 
     //----------------------------------------------- Protected methods
@@ -1059,7 +1039,6 @@ public class TTest {
         // pass a null rng to avoid unneeded overhead as we will not sample from this distribution
         final TDistribution distribution = TDistribution.of(n - 1);
         return 2.0 * distribution.cumulativeProbability(-t);
-
     }
 
     /**
@@ -1089,7 +1068,6 @@ public class TTest {
         // pass a null rng to avoid unneeded overhead as we will not sample from this distribution
         final TDistribution distribution = TDistribution.of(degreesOfFreedom);
         return 2.0 * distribution.cumulativeProbability(-t);
-
     }
 
     /**
@@ -1119,7 +1097,6 @@ public class TTest {
         // pass a null rng to avoid unneeded overhead as we will not sample from this distribution
         final TDistribution distribution = TDistribution.of(degreesOfFreedom);
         return 2.0 * distribution.cumulativeProbability(-t);
-
     }
 
     /**
@@ -1135,7 +1112,6 @@ public class TTest {
             throw new OutOfRangeException(LocalizedFormats.SIGNIFICANCE_LEVEL,
                                           alpha, 0.0, 0.5);
         }
-
     }
 
     /**
@@ -1156,7 +1132,6 @@ public class TTest {
                     LocalizedFormats.INSUFFICIENT_DATA_FOR_T_STATISTIC,
                     data.length, 2, true);
         }
-
     }
 
     /**
@@ -1177,7 +1152,5 @@ public class TTest {
                     LocalizedFormats.INSUFFICIENT_DATA_FOR_T_STATISTIC,
                     stat.getN(), 2, true);
         }
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/interval/AgrestiCoullInterval.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/interval/AgrestiCoullInterval.java
index 54059fec7..1002abb7e 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/interval/AgrestiCoullInterval.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/interval/AgrestiCoullInterval.java
@@ -45,5 +45,4 @@ public class AgrestiCoullInterval implements BinomialConfidenceInterval {
         return new ConfidenceInterval(modifiedSuccessesRatio - difference, modifiedSuccessesRatio + difference,
                                       confidenceLevel);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/interval/BinomialConfidenceInterval.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/interval/BinomialConfidenceInterval.java
index c3ea33282..bddcb23d6 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/interval/BinomialConfidenceInterval.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/interval/BinomialConfidenceInterval.java
@@ -57,5 +57,4 @@ public interface BinomialConfidenceInterval {
     ConfidenceInterval createInterval(int numberOfTrials, int numberOfSuccesses, double confidenceLevel)
             throws NotStrictlyPositiveException, NotPositiveException,
                    NumberIsTooLargeException, OutOfRangeException;
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/interval/IntervalUtils.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/interval/IntervalUtils.java
index e6c66d8e6..41efa0c61 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/interval/IntervalUtils.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/interval/IntervalUtils.java
@@ -169,5 +169,4 @@ public final class IntervalUtils {
                                           confidenceLevel, 0, 1);
         }
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/interval/NormalApproximationInterval.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/interval/NormalApproximationInterval.java
index c85e653df..fb085432d 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/interval/NormalApproximationInterval.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/interval/NormalApproximationInterval.java
@@ -41,5 +41,4 @@ public class NormalApproximationInterval implements BinomialConfidenceInterval {
                                   JdkMath.sqrt(1.0 / numberOfTrials * mean * (1 - mean));
         return new ConfidenceInterval(mean - difference, mean + difference, confidenceLevel);
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/ranking/NaturalRanking.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/ranking/NaturalRanking.java
index 31c081dca..b37c6b63f 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/ranking/NaturalRanking.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/ranking/NaturalRanking.java
@@ -403,7 +403,6 @@ public class NaturalRanking implements RankingAlgorithm {
         while (iterator.hasNext()) {
             ranks[iterator.next().intValue()] = Double.NaN;
         }
-
     }
 
     /**
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/AbstractMultipleLinearRegression.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/AbstractMultipleLinearRegression.java
index 006a2b917..387bd7126 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/AbstractMultipleLinearRegression.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/AbstractMultipleLinearRegression.java
@@ -313,7 +313,6 @@ public abstract class AbstractMultipleLinearRegression implements
      */
     public double estimateErrorVariance() {
         return calculateErrorVariance();
-
     }
 
     /**
@@ -382,5 +381,4 @@ public abstract class AbstractMultipleLinearRegression implements
         RealVector b = calculateBeta();
         return yVector.subtract(xMatrix.operate(b));
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/GLSMultipleLinearRegression.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/GLSMultipleLinearRegression.java
index d48b12f49..3e125bc01 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/GLSMultipleLinearRegression.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/GLSMultipleLinearRegression.java
@@ -129,7 +129,5 @@ public class GLSMultipleLinearRegression extends AbstractMultipleLinearRegressio
         RealVector residuals = calculateResiduals();
         double t = residuals.dotProduct(getOmegaInverse().operate(residuals));
         return t / (getX().getRowDimension() - getX().getColumnDimension());
-
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/MillerUpdatingRegression.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/MillerUpdatingRegression.java
index 42db0bdd0..569c5926f 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/MillerUpdatingRegression.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/MillerUpdatingRegression.java
@@ -183,7 +183,6 @@ public class MillerUpdatingRegression implements UpdatingMultipleLinearRegressio
             include(tmp, 1.0, y);
         }
         ++nobs;
-
     }
 
     /**
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/MultipleLinearRegression.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/MultipleLinearRegression.java
index 336e6e7a5..2b3f802a0 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/MultipleLinearRegression.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/MultipleLinearRegression.java
@@ -65,5 +65,4 @@ public interface MultipleLinearRegression {
      * @return standard errors of estimated regression parameters
      */
      double[] estimateRegressionParametersStandardErrors();
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/OLSMultipleLinearRegression.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/OLSMultipleLinearRegression.java
index d8e9ad6ce..e5947e04e 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/OLSMultipleLinearRegression.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/OLSMultipleLinearRegression.java
@@ -281,5 +281,4 @@ public class OLSMultipleLinearRegression extends AbstractMultipleLinearRegressio
         RealMatrix rInv = new LUDecomposition(rAug).getSolver().getInverse();
         return rInv.multiply(rInv.transpose());
     }
-
 }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/SimpleRegression.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/SimpleRegression.java
index f070ca5a7..5c609c729 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/SimpleRegression.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/SimpleRegression.java
@@ -850,7 +850,6 @@ public class SimpleRegression implements UpdatingMultipleLinearRegression {
                     return new RegressionResults(
                       params, new double[][]{vcv}, true, n, 1,
                       sumY, syy+mean, sumYY,true,false);
-
                 }else if( variablesToInclude[0] == 1){
                     //final double _syy = sumYY + sumY * sumY / ((double) n);
                     final double sxx = sumXX + sumX * sumX / n;
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/util/CombinatoricsUtils.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/util/CombinatoricsUtils.java
index efbd41dd8..7e07fa034 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/util/CombinatoricsUtils.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/util/CombinatoricsUtils.java
@@ -89,7 +89,6 @@ public final class CombinatoricsUtils {
 
             // atomically save the cache
             STIRLING_S2.compareAndSet(null, stirlingS2);
-
         }
 
         if (n < stirlingS2.length) {
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/util/ComplexFormat.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/util/ComplexFormat.java
index 17b02abae..eeb447cec 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/util/ComplexFormat.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/util/ComplexFormat.java
@@ -422,6 +422,5 @@ public class ComplexFormat {
         }
 
         return Complex.ofCartesian(re.doubleValue(), im.doubleValue() * sign);
-
     }
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/FunctionUtilsTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/FunctionUtilsTest.java
index 8dbe44a92..8534e208d 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/FunctionUtilsTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/FunctionUtilsTest.java
@@ -340,7 +340,6 @@ public class FunctionUtilsTest {
             public DerivativeStructure value(DerivativeStructure x) {
                 return x.multiply(x);
             }
-
         };
 
         final UnivariateFunction f0 = FunctionUtils.derivative(f, 0);
@@ -352,7 +351,6 @@ public class FunctionUtilsTest {
             Assert.assertEquals(2 * t, f1.value(t), 1.0e-15);
             Assert.assertEquals(2,     f2.value(t), 1.0e-15);
         }
-
     }
 
     @Test
@@ -377,7 +375,6 @@ public class FunctionUtilsTest {
                 DerivativeStructure xy = x.multiply(y);
                 return x2.multiply(a).add(y2.multiply(b)).add(xy.multiply(c));
             }
-
         };
 
         final MultivariateFunction f       = FunctionUtils.derivative(mdf, new int[] { 0, 0 });
@@ -397,7 +394,5 @@ public class FunctionUtilsTest {
                 Assert.assertEquals(c,                                 d2fdxdy.value(new double[] { x, y }), 1.0e-15);
             }
         }
-
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/MonitoredFunction.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/MonitoredFunction.java
index 53b7515f1..a3ea42ba8 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/MonitoredFunction.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/MonitoredFunction.java
@@ -44,5 +44,4 @@ public class MonitoredFunction implements UnivariateFunction {
 
     private int callsCount;
     private final UnivariateFunction f;
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/QuinticFunction.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/QuinticFunction.java
index 36fa080b1..23383d971 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/QuinticFunction.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/QuinticFunction.java
@@ -37,5 +37,4 @@ public class QuinticFunction implements UnivariateDifferentiableFunction {
     public DerivativeStructure value(DerivativeStructure t) {
         return t.subtract(1).multiply(t.subtract(0.5)).multiply(t).multiply(t.add(0.5)).multiply(t.add(1));
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/SumSincFunction.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/SumSincFunction.java
index 1805caea8..cce70ef90 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/SumSincFunction.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/SumSincFunction.java
@@ -51,5 +51,4 @@ public class SumSincFunction implements MultivariateFunction {
         }
         return factor * sum;
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/XMinus5Function.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/XMinus5Function.java
index d66f8e204..a11ba4207 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/XMinus5Function.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/XMinus5Function.java
@@ -37,5 +37,4 @@ public class XMinus5Function implements UnivariateDifferentiableFunction {
     public DerivativeStructure value(DerivativeStructure t) {
         return t.subtract(5);
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/differentiation/DSCompilerTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/differentiation/DSCompilerTest.java
index f4dbec455..8310c3f36 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/differentiation/DSCompilerTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/differentiation/DSCompilerTest.java
@@ -126,7 +126,6 @@ public class DSCompilerTest {
         checkIndices(c.getPartialDerivativeOrders(2), 0, 1, 0, 0);
         checkIndices(c.getPartialDerivativeOrders(3), 0, 0, 1, 0);
         checkIndices(c.getPartialDerivativeOrders(4), 0, 0, 0, 1);
-
     }
 
     @Test(expected=DimensionMismatchException.class)
@@ -471,7 +470,5 @@ public class DSCompilerTest {
             }
         }
         return builder.toString();
-
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/differentiation/DerivativeStructureTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/differentiation/DerivativeStructureTest.java
index b32b020e6..9f1b6c702 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/differentiation/DerivativeStructureTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/differentiation/DerivativeStructureTest.java
@@ -247,7 +247,6 @@ public class DerivativeStructureTest extends ExtendedFieldElementAbstractTest<De
                     DerivativeStructure result = DerivativeStructure.pow(a, ds);
                     checkEquals(reference, result, 1.0e-15);
                 }
-
             }
 
             // negative base: -1^x can be evaluated for integers only, so value is sometimes OK, derivatives are always NaN
@@ -357,7 +356,6 @@ public class DerivativeStructureTest extends ExtendedFieldElementAbstractTest<De
                 }
             }
         }
-
     }
 
     @Test
@@ -408,9 +406,7 @@ public class DerivativeStructureTest extends ExtendedFieldElementAbstractTest<De
                                         JdkMath.abs(epsilon * dfdxdydz));
                     Assert.assertEquals(dfdxdydz, dsOther.getPartialDerivative(1, 1, 1),
                                         JdkMath.abs(epsilon * dfdxdydz));
-
                 }
-
             }
         }
     }
@@ -558,11 +554,8 @@ public class DerivativeStructureTest extends ExtendedFieldElementAbstractTest<De
                         }
                     }
                 }
-
             }
-
         }
-
     }
 
     @Test
@@ -668,7 +661,6 @@ public class DerivativeStructureTest extends ExtendedFieldElementAbstractTest<De
 
         DerivativeStructure sqrt  = dsX.multiply(dsX).add(dsY.multiply(dsY)).sqrt();
         Assert.assertTrue(Double.isInfinite(sqrt.getValue()));
-
     }
 
     @Test
@@ -696,7 +688,6 @@ public class DerivativeStructureTest extends ExtendedFieldElementAbstractTest<De
         Assert.assertEquals(-1,
                             DerivativeStructure.hypot(dsLarge, dsSmall).getPartialDerivative(0, 1),
                             1.0e-10);
-
     }
 
     @Test
@@ -1026,7 +1017,6 @@ public class DerivativeStructureTest extends ExtendedFieldElementAbstractTest<De
                 DerivativeStructure.atan2(new DerivativeStructure(2, 2, 1, -0.0),
                                           new DerivativeStructure(2, 2, 1, -0.0));
         Assert.assertEquals(-JdkMath.PI, nn.getValue(), 1.0e-15);
-
     }
 
     @Test
@@ -1211,7 +1201,6 @@ public class DerivativeStructureTest extends ExtendedFieldElementAbstractTest<De
         DerivativeStructure plusZero = new DerivativeStructure(1, 1, 0, +0.0);
         Assert.assertEquals(+0.0, plusZero.abs().getPartialDerivative(0), 1.0e-15);
         Assert.assertEquals(+1.0, plusZero.abs().getPartialDerivative(1), 1.0e-15);
-
     }
 
     @Override
@@ -1235,7 +1224,6 @@ public class DerivativeStructureTest extends ExtendedFieldElementAbstractTest<De
         Assert.assertEquals(+0.0, plusZero.signum().getPartialDerivative(0), 1.0e-15);
         Assert.assertEquals(0, Double.doubleToLongBits(plusZero.signum().getValue()));
         Assert.assertEquals( 0.0, plusZero.signum().getPartialDerivative(1), 1.0e-15);
-
     }
 
     @Test
@@ -1252,7 +1240,6 @@ public class DerivativeStructureTest extends ExtendedFieldElementAbstractTest<De
         Assert.assertEquals(+0.0, x.rint().getPartialDerivative(1), 1.0e-15);
         Assert.assertEquals(-2.0, x.subtract(x.getField().getOne()).rint().getPartialDerivative(0), 1.0e-15);
         Assert.assertEquals(-1L, x.round());
-
     }
 
     @Test
@@ -1281,7 +1268,6 @@ public class DerivativeStructureTest extends ExtendedFieldElementAbstractTest<De
         Assert.assertEquals(-1.0, plusOne.copySign(-0.0).getPartialDerivative(1), 1.0e-15);
         Assert.assertEquals(+1.0, plusOne.copySign(Double.NaN).getPartialDerivative(0), 1.0e-15);
         Assert.assertEquals(+1.0, plusOne.copySign(Double.NaN).getPartialDerivative(1), 1.0e-15);
-
     }
 
     @Test
@@ -1448,7 +1434,6 @@ public class DerivativeStructureTest extends ExtendedFieldElementAbstractTest<De
         Assert.assertEquals(a[0].getValue(), abSumInline.getPartialDerivative(0, 0, 0, 1, 0, 0), 1.0e-15);
         Assert.assertEquals(a[1].getValue(), abSumInline.getPartialDerivative(0, 0, 0, 0, 1, 0), 1.0e-15);
         Assert.assertEquals(a[2].getValue(), abSumInline.getPartialDerivative(0, 0, 0, 0, 0, 1), 1.0e-15);
-
     }
 
     @Test
@@ -1474,7 +1459,6 @@ public class DerivativeStructureTest extends ExtendedFieldElementAbstractTest<De
         Assert.assertEquals(a[0], abSumInline.getPartialDerivative(1, 0, 0), 1.0e-15);
         Assert.assertEquals(a[1], abSumInline.getPartialDerivative(0, 1, 0), 1.0e-15);
         Assert.assertEquals(a[2], abSumInline.getPartialDerivative(0, 0, 1), 1.0e-15);
-
     }
 
     @Test
@@ -1517,7 +1501,6 @@ public class DerivativeStructureTest extends ExtendedFieldElementAbstractTest<De
             Assert.assertEquals(v[1].getValue(), lin.getPartialDerivative(0, 1, 0, 0), 1.0e-15 * JdkMath.abs(v[1].getValue()));
             Assert.assertEquals(v[2].getValue(), lin.getPartialDerivative(0, 0, 1, 0), 1.0e-15 * JdkMath.abs(v[2].getValue()));
             Assert.assertEquals(v[3].getValue(), lin.getPartialDerivative(0, 0, 0, 1), 1.0e-15 * JdkMath.abs(v[3].getValue()));
-
         }
     }
 
@@ -1561,7 +1544,6 @@ public class DerivativeStructureTest extends ExtendedFieldElementAbstractTest<De
             Assert.assertEquals(u[1], lin.getPartialDerivative(0, 1, 0, 0), 1.0e-15 * JdkMath.abs(v[1].getValue()));
             Assert.assertEquals(u[2], lin.getPartialDerivative(0, 0, 1, 0), 1.0e-15 * JdkMath.abs(v[2].getValue()));
             Assert.assertEquals(u[3], lin.getPartialDerivative(0, 0, 0, 1), 1.0e-15 * JdkMath.abs(v[3].getValue()));
-
         }
     }
 
@@ -1580,7 +1562,6 @@ public class DerivativeStructureTest extends ExtendedFieldElementAbstractTest<De
             orders[i] = 1;
             Assert.assertEquals(derivatives[i], ds.getPartialDerivative(orders), 1.0e-15);
         }
-
     }
 
     private void checkEquals(DerivativeStructure ds1, DerivativeStructure ds2, double epsilon) {
@@ -1615,9 +1596,6 @@ public class DerivativeStructureTest extends ExtendedFieldElementAbstractTest<De
             if (increment) {
                 return;
             }
-
         }
-
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/differentiation/FiniteDifferencesDifferentiatorTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/differentiation/FiniteDifferencesDifferentiatorTest.java
index 764c99924..d0f6efea7 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/differentiation/FiniteDifferencesDifferentiatorTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/differentiation/FiniteDifferencesDifferentiatorTest.java
@@ -151,7 +151,6 @@ public class FiniteDifferencesDifferentiatorTest {
             Assert.assertEquals(expectedGood[i], maxErrorGood[i], 0.01 * expectedGood[i]);
             Assert.assertEquals(expectedBad[i],  maxErrorBad[i],  0.01 * expectedBad[i]);
         }
-
     }
 
     @Test(expected=NumberIsTooLargeException.class)
@@ -254,7 +253,6 @@ public class FiniteDifferencesDifferentiatorTest {
         // here, we did set the bounds, so evaluations are done within domain
         // using f(0.8), f(0.9), f(1.0)
         Assert.assertEquals(slope, properlyBounded.value(tHigh).getPartialDerivative(1), 1.0e-10);
-
     }
 
     @Test
@@ -276,7 +274,6 @@ public class FiniteDifferencesDifferentiatorTest {
         Assert.assertEquals(0.5 / JdkMath.sqrt(t01.getValue()), sqrt.value(t01).getPartialDerivative(1), 7.0e-3);
         DerivativeStructure t03 = new DerivativeStructure(1, 1, 0, 0.3);
         Assert.assertEquals(0.5 / JdkMath.sqrt(t03.getValue()), sqrt.value(t03).getPartialDerivative(1), 2.1e-7);
-
     }
 
     @Test
@@ -291,7 +288,6 @@ public class FiniteDifferencesDifferentiatorTest {
             public double[] value(double x) {
                 return new double[] { JdkMath.cos(x), JdkMath.sin(x) };
             }
-
         });
 
         for (double x = -10; x < 10; x += 0.1) {
@@ -312,7 +308,6 @@ public class FiniteDifferencesDifferentiatorTest {
             Assert.assertEquals(-cos, y[0].getPartialDerivative(2), 2.0e-11);
             Assert.assertEquals(-sin, y[1].getPartialDerivative(2), 2.0e-11);
         }
-
     }
 
     @Test
@@ -330,7 +325,6 @@ public class FiniteDifferencesDifferentiatorTest {
                     { JdkMath.cosh(x), JdkMath.sinh(x) }
                 };
             }
-
         });
 
         for (double x = -1; x < 1; x += 0.02) {
@@ -362,7 +356,6 @@ public class FiniteDifferencesDifferentiatorTest {
             Assert.assertEquals( cosh, y[1][0].getPartialDerivative(2), 6.0e-12);
             Assert.assertEquals( sinh, y[1][1].getPartialDerivative(2), 6.0e-12);
         }
-
     }
 
     @Test
@@ -398,5 +391,4 @@ public class FiniteDifferencesDifferentiatorTest {
            Assert.assertEquals(expectedError[i], maxError[i], 0.01 * expectedError[i]);
        }
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/differentiation/GradientFunctionTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/differentiation/GradientFunctionTest.java
index b518a8dd7..ff06e0f53 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/differentiation/GradientFunctionTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/differentiation/GradientFunctionTest.java
@@ -84,7 +84,5 @@ public class GradientFunctionTest {
             }
             return gradient;
         }
-
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/differentiation/JacobianFunctionTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/differentiation/JacobianFunctionTest.java
index 696a9ebbe..428d184d9 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/differentiation/JacobianFunctionTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/differentiation/JacobianFunctionTest.java
@@ -91,7 +91,5 @@ public class JacobianFunctionTest {
                 {  radius * cLat,         0  }
             };
         }
-
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/differentiation/SparseGradientTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/differentiation/SparseGradientTest.java
index 2a4649174..4766ff0d5 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/differentiation/SparseGradientTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/differentiation/SparseGradientTest.java
@@ -250,7 +250,6 @@ public class SparseGradientTest extends ExtendedFieldElementAbstractTest<SparseG
                     SparseGradient result = SparseGradient.pow(a, sg);
                     Assert.assertEquals(reference, result);
                 }
-
             }
 
             // negative base: -1^x can be evaluated for integers only, so value is sometimes OK, derivatives are always NaN
@@ -279,9 +278,7 @@ public class SparseGradientTest extends ExtendedFieldElementAbstractTest<SparseG
             Assert.assertEquals(Double.NEGATIVE_INFINITY, zeroZero.getDerivative(0), 1.0e-15);
             Assert.assertEquals(0.0, zeroZero.getDerivative(1), 1.0e-15);
             Assert.assertEquals(0.0, zeroZero.getDerivative(2), 1.0e-15);
-
         }
-
     }
 
     @Test
@@ -306,9 +303,7 @@ public class SparseGradientTest extends ExtendedFieldElementAbstractTest<SparseG
                     // df/dx = 1 + 5 y + 24 (8 z x - y)^2 z
                     double dfdx = 1 + 5 * y + 24 * z * JdkMath.pow(8 * z * x - y, 2);
                     Assert.assertEquals(dfdx, sg.getDerivative(0), JdkMath.abs(epsilon * dfdx));
-
                 }
-
             }
         }
     }
@@ -375,7 +370,6 @@ public class SparseGradientTest extends ExtendedFieldElementAbstractTest<SparseG
             Assert.assertTrue(Double.isInfinite(rootN.getDerivative(0)));
             Assert.assertTrue(rootN.getDerivative(0) > 0);
         }
-
     }
 
     @Test
@@ -432,7 +426,6 @@ public class SparseGradientTest extends ExtendedFieldElementAbstractTest<SparseG
                 SparseGradient ref = sgX.multiply(sgX).add(sgY.multiply(sgY)).sqrt();
                 SparseGradient zero = hypot.subtract(ref);
                 checkF0F1(zero, 0.0, 0.0, 0.0);
-
             }
         }
     }
@@ -449,7 +442,6 @@ public class SparseGradientTest extends ExtendedFieldElementAbstractTest<SparseG
 
         SparseGradient sqrt  = sgX.multiply(sgX).add(sgY.multiply(sgY)).sqrt();
         Assert.assertTrue(Double.isInfinite(sqrt.getValue()));
-
     }
 
     @Test
@@ -477,7 +469,6 @@ public class SparseGradientTest extends ExtendedFieldElementAbstractTest<SparseG
         Assert.assertEquals(-1,
                             SparseGradient.hypot(sgLarge, sgSmall).getDerivative(1),
                             1.0e-10);
-
     }
 
     @Test
@@ -695,7 +686,6 @@ public class SparseGradientTest extends ExtendedFieldElementAbstractTest<SparseG
                 SparseGradient.atan2(SparseGradient.createVariable(1, -0.0),
                                           SparseGradient.createVariable(1, -0.0));
         Assert.assertEquals(-JdkMath.PI, nn.getValue(), 1.0e-15);
-
     }
 
     @Test
@@ -834,7 +824,6 @@ public class SparseGradientTest extends ExtendedFieldElementAbstractTest<SparseG
         SparseGradient plusZero = SparseGradient.createVariable(0, +0.0);
         Assert.assertEquals(+0.0, plusZero.abs().getValue(), 1.0e-15);
         Assert.assertEquals(+1.0, plusZero.abs().getDerivative(0), 1.0e-15);
-
     }
 
     @Override
@@ -858,7 +847,6 @@ public class SparseGradientTest extends ExtendedFieldElementAbstractTest<SparseG
         Assert.assertEquals(+0.0, plusZero.signum().getValue(), 1.0e-15);
         Assert.assertEquals(0, Double.doubleToLongBits(plusZero.signum().getValue()));
         Assert.assertEquals( 0.0, plusZero.signum().getDerivative(0), 1.0e-15);
-
     }
 
     @Test
@@ -875,7 +863,6 @@ public class SparseGradientTest extends ExtendedFieldElementAbstractTest<SparseG
         Assert.assertEquals(+0.0, x.rint().getDerivative(0), 1.0e-15);
         Assert.assertEquals(-2.0, x.subtract(x.getField().getOne()).rint().getValue(), 1.0e-15);
         Assert.assertEquals(-1L, x.round(), 1.0e-15);
-
     }
 
     @Test
@@ -904,7 +891,6 @@ public class SparseGradientTest extends ExtendedFieldElementAbstractTest<SparseG
         Assert.assertEquals(-1.0, plusOne.copySign(-0.0).getDerivative(0), 1.0e-15);
         Assert.assertEquals(+1.0, plusOne.copySign(Double.NaN).getValue(), 1.0e-15);
         Assert.assertEquals(+1.0, plusOne.copySign(Double.NaN).getDerivative(0), 1.0e-15);
-
     }
 
     @Test
@@ -989,7 +975,6 @@ public class SparseGradientTest extends ExtendedFieldElementAbstractTest<SparseG
         Assert.assertEquals(a[0].getValue(), abSumInline.getDerivative(3), 1.0e-15);
         Assert.assertEquals(a[1].getValue(), abSumInline.getDerivative(4), 1.0e-15);
         Assert.assertEquals(a[2].getValue(), abSumInline.getDerivative(5), 1.0e-15);
-
     }
 
     @Test
@@ -1015,7 +1000,6 @@ public class SparseGradientTest extends ExtendedFieldElementAbstractTest<SparseG
         Assert.assertEquals(a[0], abSumInline.getDerivative(0), 1.0e-15);
         Assert.assertEquals(a[1], abSumInline.getDerivative(1), 1.0e-15);
         Assert.assertEquals(a[2], abSumInline.getDerivative(2), 1.0e-15);
-
     }
 
     @Test
@@ -1058,7 +1042,6 @@ public class SparseGradientTest extends ExtendedFieldElementAbstractTest<SparseG
             Assert.assertEquals(v[1].getValue(), lin.getDerivative(1), 1.0e-15 * JdkMath.abs(v[1].getValue()));
             Assert.assertEquals(v[2].getValue(), lin.getDerivative(2), 1.0e-15 * JdkMath.abs(v[2].getValue()));
             Assert.assertEquals(v[3].getValue(), lin.getDerivative(3), 1.0e-15 * JdkMath.abs(v[3].getValue()));
-
         }
     }
 
@@ -1102,7 +1085,6 @@ public class SparseGradientTest extends ExtendedFieldElementAbstractTest<SparseG
             Assert.assertEquals(u[1], lin.getDerivative(1), 1.0e-15 * JdkMath.abs(v[1].getValue()));
             Assert.assertEquals(u[2], lin.getDerivative(2), 1.0e-15 * JdkMath.abs(v[2].getValue()));
             Assert.assertEquals(u[3], lin.getDerivative(3), 1.0e-15 * JdkMath.abs(v[3].getValue()));
-
         }
     }
 
@@ -1115,7 +1097,5 @@ public class SparseGradientTest extends ExtendedFieldElementAbstractTest<SparseG
         for (int i = 0; i < derivatives.length; ++i) {
             Assert.assertEquals(derivatives[i], sg.getDerivative(i), 1.0e-13);
         }
-
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/function/BivariateFunctionTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/function/BivariateFunctionTest.java
index d68ab002a..fee8102a9 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/function/BivariateFunctionTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/function/BivariateFunctionTest.java
@@ -40,5 +40,4 @@ public class BivariateFunctionTest {
         Assert.assertEquals(5, subtract.value(10,5), EPS);
         Assert.assertEquals(-5, subtract.value(5,10), EPS);
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/function/SqrtTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/function/SqrtTest.java
index 81b99c87b..d17f3b63a 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/function/SqrtTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/function/SqrtTest.java
@@ -68,5 +68,4 @@ public class SqrtTest {
        Assert.assertEquals(-0.49526417598485072465,   s.getPartialDerivative(4), 1.0e-16);
        Assert.assertEquals(1.4445205132891479465,  s.getPartialDerivative(5), 5.0e-16);
    }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/function/UnivariateDifferentiableFunctionTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/function/UnivariateDifferentiableFunctionTest.java
index 1af604d0a..3ec7b452b 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/function/UnivariateDifferentiableFunctionTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/function/UnivariateDifferentiableFunctionTest.java
@@ -223,5 +223,4 @@ public class UnivariateDifferentiableFunctionTest {
         Assert.assertEquals(a, tanh.value(JdkMath.atanh(a)), EPS);
         Assert.assertEquals(1/JdkMath.pow(JdkMath.cosh(a),2), tanh.value(new DerivativeStructure(1,1,0,a)).getPartialDerivative(1), EPS);
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/function/UnivariateFunctionTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/function/UnivariateFunctionTest.java
index da7d5e4fb..e66423fa4 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/function/UnivariateFunctionTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/function/UnivariateFunctionTest.java
@@ -120,5 +120,4 @@ public class UnivariateFunctionTest {
     private double expectedUlp(double x) {
         return JdkMath.abs(x - Double.longBitsToDouble(Double.doubleToRawLongBits(x) ^ 1));
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/integration/IterativeLegendreGaussIntegratorTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/integration/IterativeLegendreGaussIntegratorTest.java
index c2ad3fe1f..2fae6bb09 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/integration/IterativeLegendreGaussIntegratorTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/integration/IterativeLegendreGaussIntegratorTest.java
@@ -106,7 +106,6 @@ public class IterativeLegendreGaussIntegratorTest {
                     Assert.assertEquals(n + " " + degree + " " + i, reference, result, 1.0e-12 * (1.0 + JdkMath.abs(reference)));
                 }
             }
-
         }
     }
 
@@ -162,7 +161,6 @@ public class IterativeLegendreGaussIntegratorTest {
         int eval2   = gauss.getEvaluations();
         Assert.assertEquals(maxX * value, sum1 + sum2, 1.0e-7);
         Assert.assertTrue(eval1 + eval2 < 200);
-
     }
 
     private double exactIntegration(PolynomialFunction p, double a, double b) {
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/integration/MidPointIntegratorTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/integration/MidPointIntegratorTest.java
index f02257ba8..2cab20a82 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/integration/MidPointIntegratorTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/integration/MidPointIntegratorTest.java
@@ -71,7 +71,6 @@ public final class MidPointIntegratorTest {
         Assert.assertTrue(integrator.getIterations() < NUM_ITER);
         Assert.assertEquals(expectedEvaluations(integrator.getIterations()), integrator.getEvaluations());
         Assert.assertEquals(expected, result, tolerance);
-
     }
 
     /**
@@ -101,7 +100,6 @@ public final class MidPointIntegratorTest {
         Assert.assertTrue(integrator.getIterations() < NUM_ITER);
         Assert.assertEquals(expectedEvaluations(integrator.getIterations()), integrator.getEvaluations());
         Assert.assertEquals(expected, result, tolerance);
-
     }
 
     /**
@@ -140,7 +138,6 @@ public final class MidPointIntegratorTest {
         Assert.assertTrue(integrator.getIterations() < NUM_ITER);
         Assert.assertEquals(expectedEvaluations(integrator.getIterations()), integrator.getEvaluations());
         Assert.assertEquals(expected, result, tolerance);
-
     }
 
     /**
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/integration/TrapezoidIntegratorTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/integration/TrapezoidIntegratorTest.java
index b09506a45..44273d6c7 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/integration/TrapezoidIntegratorTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/integration/TrapezoidIntegratorTest.java
@@ -96,7 +96,6 @@ public final class TrapezoidIntegratorTest {
         Assert.assertTrue(integrator.getEvaluations() < 5000);
         Assert.assertTrue(integrator.getIterations()  < 15);
         Assert.assertEquals(expected, result, tolerance);
-
     }
 
     /**
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/interpolation/FieldHermiteInterpolatorTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/interpolation/FieldHermiteInterpolatorTest.java
index fa4208642..9f483c357 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/interpolation/FieldHermiteInterpolatorTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/interpolation/FieldHermiteInterpolatorTest.java
@@ -126,9 +126,7 @@ public class FieldHermiteInterpolatorTest {
                                         1.0e-8 * JdkMath.abs(p[k].value(x.getReal())));
                 }
             }
-
         }
-
     }
 
     @Test
@@ -178,7 +176,6 @@ public class FieldHermiteInterpolatorTest {
                                         4.0e-8 * JdkMath.abs(p[k].value(x.getReal())));
                 }
             }
-
         }
     }
 
@@ -271,6 +268,5 @@ public class FieldHermiteInterpolatorTest {
         interpolator.addSamplePoint(Dfp25.of(1), new Dfp[] { Dfp25.of(0) });
         interpolator.addSamplePoint(Dfp25.of(1), new Dfp[] { Dfp25.of(1) });
     }
-
 }
 
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/interpolation/HermiteInterpolatorTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/interpolation/HermiteInterpolatorTest.java
index e984fc720..5b583159d 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/interpolation/HermiteInterpolatorTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/interpolation/HermiteInterpolatorTest.java
@@ -111,7 +111,6 @@ public class HermiteInterpolatorTest {
             for (int k = 0; k < p.length; ++k) {
                 checkPolynomial(p[k], result[k]);
             }
-
         }
     }
 
@@ -157,7 +156,6 @@ public class HermiteInterpolatorTest {
             for (int k = 0; k < p.length; ++k) {
                 checkPolynomial(p[k], result[k]);
             }
-
         }
     }
 
@@ -252,6 +250,5 @@ public class HermiteInterpolatorTest {
             Assert.assertEquals(0.0, cR[i], 1.0e-9);
         }
     }
-
 }
 
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/polynomials/PolynomialFunctionNewtonFormTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/polynomials/PolynomialFunctionNewtonFormTest.java
index 2ea0a0536..ec2b84a7e 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/polynomials/PolynomialFunctionNewtonFormTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/polynomials/PolynomialFunctionNewtonFormTest.java
@@ -159,7 +159,6 @@ public final class PolynomialFunctionNewtonFormTest {
             Assert.assertEquals(6.0,         y.getPartialDerivative(3), eps * 6.0);
             Assert.assertEquals(0.0,         y.getPartialDerivative(4), eps);
         }
-
     }
 
     /**
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/polynomials/PolynomialsUtilsTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/polynomials/PolynomialsUtilsTest.java
index ca38645e6..be1369fed 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/polynomials/PolynomialsUtilsTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/polynomials/PolynomialsUtilsTest.java
@@ -41,7 +41,6 @@ public class PolynomialsUtilsTest {
         checkPolynomial(PolynomialsUtils.createChebyshevPolynomial(6), "-1 + 18 x^2 - 48 x^4 + 32 x^6");
         checkPolynomial(PolynomialsUtils.createChebyshevPolynomial(5), "5 x - 20 x^3 + 16 x^5");
         checkPolynomial(PolynomialsUtils.createChebyshevPolynomial(4), "1 - 8 x^2 + 8 x^4");
-
     }
 
     @Test
@@ -71,7 +70,6 @@ public class PolynomialsUtilsTest {
             PolynomialFunction Tk2g2 = Tk2.multiply(g2);
 
             checkNullPolynomial(Tk0g0.add(Tk1g1.add(Tk2g2)));
-
         }
     }
 
@@ -103,7 +101,6 @@ public class PolynomialsUtilsTest {
         checkPolynomial(PolynomialsUtils.createHermitePolynomial(6), "-120 + 720 x^2 - 480 x^4 + 64 x^6");
         checkPolynomial(PolynomialsUtils.createHermitePolynomial(5), "120 x - 160 x^3 + 32 x^5");
         checkPolynomial(PolynomialsUtils.createHermitePolynomial(4), "12 - 48 x^2 + 16 x^4");
-
     }
 
     @Test
@@ -123,7 +120,6 @@ public class PolynomialsUtilsTest {
             PolynomialFunction Hk2g2 = Hk2.multiply(g2);
 
             checkNullPolynomial(Hk0g0.add(Hk1g1.add(Hk2g2)));
-
         }
     }
 
@@ -161,7 +157,6 @@ public class PolynomialsUtilsTest {
         "120 - 600 x + 600 x^2 - 200 x^3 + 25 x^4 - x^5");
         checkPolynomial(PolynomialsUtils.createLaguerrePolynomial(4),   24L,
         "24 - 96 x + 72 x^2 - 16 x^3 + x^4");
-
     }
 
     @Test
@@ -181,7 +176,6 @@ public class PolynomialsUtilsTest {
             PolynomialFunction Lk2g2 = Lk2.multiply(g2);
 
             checkNullPolynomial(Lk0g0.add(Lk1g1.add(Lk2g2)));
-
         }
     }
 
@@ -213,7 +207,6 @@ public class PolynomialsUtilsTest {
         checkPolynomial(PolynomialsUtils.createLegendrePolynomial(6), 16L, "-5 + 105 x^2 - 315 x^4 + 231 x^6");
         checkPolynomial(PolynomialsUtils.createLegendrePolynomial(5),  8L, "15 x - 70 x^3 + 63 x^5");
         checkPolynomial(PolynomialsUtils.createLegendrePolynomial(4),  8L, "3 - 30 x^2 + 35 x^4");
-
     }
 
     @Test
@@ -233,7 +226,6 @@ public class PolynomialsUtilsTest {
             PolynomialFunction Pk2g2 = Pk2.multiply(g2);
 
             checkNullPolynomial(Pk0g0.add(Pk1g1.add(Pk2g2)));
-
         }
     }
 
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/solvers/BaseSecantSolverAbstractTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/solvers/BaseSecantSolverAbstractTest.java
index b057aad37..59cacb58b 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/solvers/BaseSecantSolverAbstractTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/solvers/BaseSecantSolverAbstractTest.java
@@ -255,5 +255,4 @@ public abstract class BaseSecantSolverAbstractTest {
                                                        allowedSolution);
         }
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/solvers/BracketingNthOrderBrentSolverTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/solvers/BracketingNthOrderBrentSolverTest.java
index 853898201..a0ef34c91 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/solvers/BracketingNthOrderBrentSolverTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/solvers/BracketingNthOrderBrentSolverTest.java
@@ -140,7 +140,6 @@ public final class BracketingNthOrderBrentSolverTest extends BaseSecantSolverAbs
                 return x.subtract(1).multiply(x).multiply(x).subtract(1);
             }
         });
-
     }
 
     private void compare(TestFunction f) {
@@ -174,7 +173,6 @@ public final class BracketingNthOrderBrentSolverTest extends BaseSecantSolverAbs
         final int weightedNewtonEvaluations = 2 * newton.getEvaluations();
 
         Assert.assertTrue(weightedBracketingEvaluations < weightedNewtonEvaluations);
-
     }
 
     private abstract static class TestFunction implements UnivariateDifferentiableFunction {
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/solvers/BrentSolverTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/solvers/BrentSolverTest.java
index fc2dfdd6f..90322cf96 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/solvers/BrentSolverTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/solvers/BrentSolverTest.java
@@ -258,7 +258,6 @@ public final class BrentSolverTest {
                 public double value(double x) {
                     return func.value(new DerivativeStructure(1, 1, 0, x)).getPartialDerivative(1);
                 }
-
             };
 
         BrentSolver solver = new BrentSolver();
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/solvers/FieldBracketingNthOrderBrentSolverTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/solvers/FieldBracketingNthOrderBrentSolverTest.java
index 45b607edb..b1b93b659 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/solvers/FieldBracketingNthOrderBrentSolverTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/solvers/FieldBracketingNthOrderBrentSolverTest.java
@@ -127,7 +127,6 @@ public final class FieldBracketingNthOrderBrentSolverTest {
                 }
             }, 200, -0.5, 1.5, allowed);
         }
-
     }
 
     private void check(RealFieldUnivariateFunction<Dfp> f, int maxEval, double min, double max,
@@ -175,5 +174,4 @@ public final class FieldBracketingNthOrderBrentSolverTest {
     private Dfp      absoluteAccuracy;
     private Dfp      relativeAccuracy;
     private Dfp      functionValueAccuracy;
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/field/ExtendedFieldElementAbstractTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/field/ExtendedFieldElementAbstractTest.java
index 248e878e4..e2352e40a 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/field/ExtendedFieldElementAbstractTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/field/ExtendedFieldElementAbstractTest.java
@@ -554,5 +554,4 @@ public abstract class ExtendedFieldElementAbstractTest<T extends RealFieldElemen
         }
         return f;
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/EvaluationRmsCheckerTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/EvaluationRmsCheckerTest.java
index d8308d7d8..9457fa157 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/EvaluationRmsCheckerTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/EvaluationRmsCheckerTest.java
@@ -99,5 +99,4 @@ public class EvaluationRmsCheckerTest {
             }
         };
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/GaussNewtonOptimizerWithCholeskyTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/GaussNewtonOptimizerWithCholeskyTest.java
index 491cb7539..7e87211e4 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/GaussNewtonOptimizerWithCholeskyTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/GaussNewtonOptimizerWithCholeskyTest.java
@@ -129,5 +129,4 @@ public class GaussNewtonOptimizerWithCholeskyTest
             //expected for QR
         }
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/GaussNewtonOptimizerWithLUTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/GaussNewtonOptimizerWithLUTest.java
index 7e90a42dd..2520a2566 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/GaussNewtonOptimizerWithLUTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/GaussNewtonOptimizerWithLUTest.java
@@ -129,5 +129,4 @@ public class GaussNewtonOptimizerWithLUTest
             //expected for QR
         }
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/GaussNewtonOptimizerWithQRTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/GaussNewtonOptimizerWithQRTest.java
index 49ee3cef7..2e22a9df5 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/GaussNewtonOptimizerWithQRTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/GaussNewtonOptimizerWithQRTest.java
@@ -115,5 +115,4 @@ public class GaussNewtonOptimizerWithQRTest
             //expected for QR
         }
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/LevenbergMarquardtOptimizerTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/LevenbergMarquardtOptimizerTest.java
index 64e8969b3..ba3960549 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/LevenbergMarquardtOptimizerTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/LevenbergMarquardtOptimizerTest.java
@@ -136,7 +136,6 @@ public class LevenbergMarquardtOptimizerTest
 
             Assert.assertTrue(!shouldFail);
             //TODO check it got the right answer
-
         } catch (DimensionMismatchException ee) {
             Assert.assertTrue(shouldFail);
         } catch (TooManyEvaluationsException ee) {
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/BinaryChromosomeTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/BinaryChromosomeTest.java
index ac6eef0dc..fc358c981 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/BinaryChromosomeTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/BinaryChromosomeTest.java
@@ -62,5 +62,4 @@ public class BinaryChromosomeTest {
         Assert.assertFalse(c1.isSame(c5));
         Assert.assertTrue(c1.isSame(c6));
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/BinaryMutationTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/BinaryMutationTest.java
index cd88ced15..799ea0b8a 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/BinaryMutationTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/BinaryMutationTest.java
@@ -41,5 +41,4 @@ public class BinaryMutationTest {
             Assert.assertEquals(1, numDifferent);
         }
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/ChromosomeTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/ChromosomeTest.java
index 77695c301..d687593c8 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/ChromosomeTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/ChromosomeTest.java
@@ -115,6 +115,5 @@ public class ChromosomeTest {
         c4.searchForFitnessUpdate(pop);
         Assert.assertEquals(1, c4.getFitness(),0);
     }
-
 }
 
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/DummyBinaryChromosome.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/DummyBinaryChromosome.java
index f4e574b4c..7f63e828f 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/DummyBinaryChromosome.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/DummyBinaryChromosome.java
@@ -41,5 +41,4 @@ public class DummyBinaryChromosome extends BinaryChromosome {
         // uninteresting
         return 0;
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/DummyRandomKey.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/DummyRandomKey.java
index b79b5c80b..1cd29f242 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/DummyRandomKey.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/DummyRandomKey.java
@@ -41,5 +41,4 @@ public class DummyRandomKey extends RandomKey<String> {
         // unimportant
         return 0;
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/ElitisticListPopulationTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/ElitisticListPopulationTest.java
index 0f5ca0574..c5c3503bc 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/ElitisticListPopulationTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/ElitisticListPopulationTest.java
@@ -102,5 +102,4 @@ public class ElitisticListPopulationTest {
             return this.fitness;
         }
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/FixedGenerationCountTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/FixedGenerationCountTest.java
index 415d46eb9..16846c1d4 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/FixedGenerationCountTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/FixedGenerationCountTest.java
@@ -66,5 +66,4 @@ public class FixedGenerationCountTest {
         }
         Assert.assertEquals(20, cnt);
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/GeneticAlgorithmTestBinary.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/GeneticAlgorithmTestBinary.java
index a91057cae..5465cd09a 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/GeneticAlgorithmTestBinary.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/GeneticAlgorithmTestBinary.java
@@ -71,7 +71,6 @@ public class GeneticAlgorithmTestBinary {
 
         Assert.assertTrue(bestFinal.compareTo(bestInitial) > 0);
         Assert.assertEquals(NUM_GENERATIONS, ga.getGenerationsEvolved());
-
     }
 
 
@@ -120,6 +119,5 @@ public class GeneticAlgorithmTestBinary {
         public AbstractListChromosome<Integer> newFixedLengthChromosome(List<Integer> chromosomeRepresentation) {
             return new FindOnes(chromosomeRepresentation);
         }
-
     }
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/ListPopulationTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/ListPopulationTest.java
index c8e201143..8537f5c66 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/ListPopulationTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/ListPopulationTest.java
@@ -216,5 +216,4 @@ public class ListPopulationTest {
 
         population.setPopulationLimit(2);
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/NPointCrossoverTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/NPointCrossoverTest.java
index 2b49b0939..d1a2c734b 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/NPointCrossoverTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/NPointCrossoverTest.java
@@ -127,5 +127,4 @@ public class NPointCrossoverTest {
 
         return crossovers;
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/OnePointCrossoverTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/OnePointCrossoverTest.java
index 1e0fc01c4..fc8fe41e8 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/OnePointCrossoverTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/OnePointCrossoverTest.java
@@ -57,5 +57,4 @@ public class OnePointCrossoverTest {
             Assert.assertEquals(p2[7], c2[7]);
         }
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/RandomKeyMutationTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/RandomKeyMutationTest.java
index 2d6069a32..37e5d03b7 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/RandomKeyMutationTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/RandomKeyMutationTest.java
@@ -40,5 +40,4 @@ public class RandomKeyMutationTest {
             Assert.assertEquals(1,changes);
         }
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/RandomKeyTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/RandomKeyTest.java
index 287abc865..d14566e82 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/RandomKeyTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/RandomKeyTest.java
@@ -169,5 +169,4 @@ public class RandomKeyTest {
         Assert.assertEquals("b", decodedData.get(1));
         Assert.assertEquals("c", decodedData.get(2));
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/TournamentSelectionTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/TournamentSelectionTest.java
index 585a8c380..126b556a8 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/TournamentSelectionTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/TournamentSelectionTest.java
@@ -53,5 +53,4 @@ public class TournamentSelectionTest {
             return this.fitness;
         }
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/ArrayFieldVectorTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/ArrayFieldVectorTest.java
index 9f916d555..4c1301efb 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/ArrayFieldVectorTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/ArrayFieldVectorTest.java
@@ -279,7 +279,6 @@ public class ArrayFieldVectorTest {
         public T[] toArray() {
             return data.clone();
         }
-
     }
 
     @Test
@@ -351,7 +350,6 @@ public class ArrayFieldVectorTest {
         ArrayFieldVector<Dfp> v9 = new ArrayFieldVector<>((FieldVector<Dfp>) v1, (FieldVector<Dfp>) v3);
         Assert.assertEquals(10, v9.getDimension());
         Assert.assertEquals(Dfp25.of(1), v9.getEntry(7));
-
     }
 
     @Test
@@ -447,7 +445,6 @@ public class ArrayFieldVectorTest {
         Assert.assertEquals(vout10, vout10_2);
         vout10_2.setEntry(0, Dfp25.of(11, 10));
         Assert.assertNotSame(vout10, vout10_2);
-
     }
 
     @Test
@@ -508,7 +505,6 @@ public class ArrayFieldVectorTest {
         v_mapInvToSelf.mapInvToSelf();
         Dfp[] result_mapInvToSelf = {Dfp25.of(1),Dfp25.of(1, 2),Dfp25.of(1, 3)};
         checkArray("compare vectors" ,result_mapInvToSelf,v_mapInvToSelf.toArray());
-
     }
 
     @Test
@@ -577,7 +573,6 @@ public class ArrayFieldVectorTest {
         FieldVector<Dfp> v_projection_2 = v1.projection(v2_t);
         Dfp[] result_projection_2 = {Dfp25.of(128, 77), Dfp25.of(160, 77), Dfp25.of(192, 77)};
         checkArray("compare vect", v_projection_2.toArray(), result_projection_2);
-
     }
 
     @Test
@@ -613,7 +608,6 @@ public class ArrayFieldVectorTest {
         } catch (MathIllegalArgumentException ex) {
             // expected behavior
         }
-
     }
 
     @Test
@@ -653,7 +647,6 @@ public class ArrayFieldVectorTest {
         Assert.assertEquals(0, new ArrayFieldVector<>(Dfp25.getField(), new Dfp[0]).getDimension());
         Assert.assertEquals(0, new ArrayFieldVector<>(Dfp25.getField(), new Dfp[0], true).getDimension());
         Assert.assertEquals(0, new ArrayFieldVector<>(Dfp25.getField(), new Dfp[0], false).getDimension());
-
     }
 
     @Test
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/ArrayRealVectorTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/ArrayRealVectorTest.java
index f303025b9..9d0e6aafe 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/ArrayRealVectorTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/ArrayRealVectorTest.java
@@ -142,7 +142,6 @@ public class ArrayRealVectorTest extends RealVectorAbstractTest {
         Assert.assertEquals("testData len", 12, v14.getDimension());
         Assert.assertEquals("testData is 9.0 ", 9.0, v14.getEntry(2), 0);
         Assert.assertEquals("testData is 1.0 ", 1.0, v14.getEntry(3), 0);
-
     }
 
     @Test
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BiDiagonalTransformerTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BiDiagonalTransformerTest.java
index 98dd49ce8..2e6e0eadb 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BiDiagonalTransformerTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BiDiagonalTransformerTest.java
@@ -52,7 +52,6 @@ public class BiDiagonalTransformerTest {
         Assert.assertEquals(n, transformer.getB().getColumnDimension());
         Assert.assertEquals(n, transformer.getV().getRowDimension());
         Assert.assertEquals(n, transformer.getV().getColumnDimension());
-
     }
 
     @Test
@@ -155,7 +154,6 @@ public class BiDiagonalTransformerTest {
         Assert.assertSame(u, transformer.getU());
         Assert.assertSame(b, transformer.getB());
         Assert.assertSame(v, transformer.getV());
-
     }
 
     @Test
@@ -188,7 +186,6 @@ public class BiDiagonalTransformerTest {
         Assert.assertSame(u, transformer.getU());
         Assert.assertSame(b, transformer.getB());
         Assert.assertSame(v, transformer.getV());
-
     }
 
     @Test
@@ -197,5 +194,4 @@ public class BiDiagonalTransformerTest {
         Assert.assertTrue(new BiDiagonalTransformer(MatrixUtils.createRealMatrix(testNonSquare)).isUpperBiDiagonal());
         Assert.assertFalse(new BiDiagonalTransformer(MatrixUtils.createRealMatrix(testNonSquare).transpose()).isUpperBiDiagonal());
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BigRealFieldTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BigRealFieldTest.java
index 7d1ca42dc..52db3d96f 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BigRealFieldTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BigRealFieldTest.java
@@ -39,5 +39,4 @@ public class BigRealFieldTest {
         BigRealField field = BigRealField.getInstance();
         Assert.assertSame(field, TestUtils.serializeAndRecover(field));
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BigRealTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BigRealTest.java
index 4e8c34832..815635683 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BigRealTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BigRealTest.java
@@ -82,7 +82,6 @@ public class BigRealTest {
         Assert.assertEquals(0, first.compareTo(third));
         Assert.assertEquals(1, first.compareTo(second));
         Assert.assertEquals(-1, second.compareTo(first));
-
     }
 
     @Test
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BlockFieldMatrixTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BlockFieldMatrixTest.java
index 9974cccc9..13b54cd3d 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BlockFieldMatrixTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BlockFieldMatrixTest.java
@@ -326,7 +326,6 @@ public final class BlockFieldMatrixTest {
                 Assert.assertEquals(Dfp25.of((i + 30) * 11 + (j + 32), 11), sub4.getEntry(i, j));
             }
         }
-
     }
 
     //Additional Test for BlockFieldMatrix<Dfp>Test.testMultiply
@@ -566,7 +565,6 @@ public final class BlockFieldMatrixTest {
                             subtract(Dfp25.of(5).multiply(solution[2])).toDouble(),
                             constants[2].toDouble(),
                             0d);
-
     }
 
     // test submatrix accessors
@@ -804,7 +802,6 @@ public final class BlockFieldMatrixTest {
             }
         }
         Assert.assertEquals(sub, m.getRowMatrix(2));
-
     }
 
     @Test
@@ -868,7 +865,6 @@ public final class BlockFieldMatrixTest {
             }
         }
         Assert.assertEquals(sub, m.getColumnMatrix(2));
-
     }
 
     @Test
@@ -930,7 +926,6 @@ public final class BlockFieldMatrixTest {
             }
         }
         Assert.assertEquals(sub, m.getRowVector(2));
-
     }
 
     @Test
@@ -992,7 +987,6 @@ public final class BlockFieldMatrixTest {
             }
         }
         Assert.assertEquals(sub, m.getColumnVector(2));
-
     }
 
     private FieldVector<Dfp> columnToVector(Dfp[][] column) {
@@ -1060,7 +1054,6 @@ public final class BlockFieldMatrixTest {
             }
         }
         checkArrays(sub, m.getRow(2));
-
     }
 
     @Test
@@ -1123,7 +1116,6 @@ public final class BlockFieldMatrixTest {
             }
         }
         checkArrays(sub, m.getColumn(2));
-
     }
 
     private Dfp[] columnToArray(Dfp[][] column) {
@@ -1328,7 +1320,6 @@ public final class BlockFieldMatrixTest {
             Assert.assertEquals(Dfp25.of(0), m.getEntry(0, j));
             Assert.assertEquals(Dfp25.of(0), m.getEntry(rows - 1, j));
         }
-
     }
 
     @Test
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BlockRealMatrixTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BlockRealMatrixTest.java
index cab4a577f..1a2db5faa 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BlockRealMatrixTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BlockRealMatrixTest.java
@@ -283,7 +283,6 @@ public final class BlockRealMatrixTest {
                 Assert.assertEquals((i + 30) + (j + 62) / 1024.0, sub4.getEntry(i, j), 0);
             }
         }
-
     }
 
     //Additional Test for BlockRealMatrixTest.testMultiply
@@ -578,7 +577,6 @@ public final class BlockRealMatrixTest {
             }
         }
         Assert.assertEquals(sub, m.getSubMatrix(2, n - 3, 2, n - 3));
-
     }
 
     @Test
@@ -776,7 +774,6 @@ public final class BlockRealMatrixTest {
             }
         }
         Assert.assertEquals(sub, m.getColumnMatrix(2));
-
     }
 
     @Test
@@ -1222,7 +1219,6 @@ public final class BlockRealMatrixTest {
             Assert.assertEquals(0.0, m.getEntry(0, j), 0);
             Assert.assertEquals(0.0, m.getEntry(rows - 1, j), 0);
         }
-
     }
 
     @Test
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/CholeskyDecompositionTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/CholeskyDecompositionTest.java
index f49d2cd4a..fd3432430 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/CholeskyDecompositionTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/CholeskyDecompositionTest.java
@@ -74,7 +74,6 @@ public class CholeskyDecompositionTest {
                 {-0.09376327,  0.10400408, 0.07137959, 0.04762857 },
                 { 0.30328980,  0.07137959, 0.30458776, 0.04882449 },
                 { 0.04909388,  0.04762857, 0.04882449, 0.07543265 }
-
         }));
     }
 
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/CholeskySolverTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/CholeskySolverTest.java
index ee71ea521..931de9468 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/CholeskySolverTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/CholeskySolverTest.java
@@ -96,7 +96,6 @@ public class CholeskySolverTest {
                          solver.solve(v).subtract(xRef.getColumnVector(i)).getNorm(),
                          1.0e-13);
         }
-
     }
 
     /** test determinant */
@@ -108,5 +107,4 @@ public class CholeskySolverTest {
     private double getDeterminant(RealMatrix m) {
         return new CholeskyDecomposition(m).getDeterminant();
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/DiagonalMatrixTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/DiagonalMatrixTest.java
index eb2d0cf46..c63d25bb2 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/DiagonalMatrixTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/DiagonalMatrixTest.java
@@ -73,7 +73,6 @@ public class DiagonalMatrixTest {
         // Check that the underlying is referenced.
         d[0] = 0;
         Assert.assertEquals(d[0], m.getEntry(0, 0), 0.0);
-
     }
 
     @Test(expected=DimensionMismatchException.class)
@@ -364,5 +363,4 @@ public class DiagonalMatrixTest {
         TestUtils.assertEquals("DiagonalMatrix.inverse() returns wrong result",
                 MatrixUtils.createRealIdentityMatrix(data.length), result, Math.ulp(1d));
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/EigenDecompositionTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/EigenDecompositionTest.java
index 8ad86d564..735dbc0fb 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/EigenDecompositionTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/EigenDecompositionTest.java
@@ -156,7 +156,6 @@ public class EigenDecompositionTest {
             Assert.assertEquals(refEigenValues[i], eigenValues[i], 1.0e-5);
             Assert.assertEquals(0, refEigenVectors[i].subtract(decomposition.getEigenvector(i)).getNorm(), 2.0e-7);
         }
-
     }
 
     @Test
@@ -203,7 +202,6 @@ public class EigenDecompositionTest {
                 Assert.assertEquals(0, refEigenVectors[i].subtract(decomposition.getEigenvector(i)).getNorm(), 1.0e-5);
             }
         }
-
     }
 
     @Test
@@ -248,7 +246,6 @@ public class EigenDecompositionTest {
                 Assert.assertEquals(0, refEigenVectors[i].subtract(decomposition.getEigenvector(i)).getNorm(), 1.0e-5);
             }
         }
-
     }
 
     /** test a matrix already in tridiagonal form. */
@@ -273,7 +270,6 @@ public class EigenDecompositionTest {
         for (int i = 0; i < ref.length; ++i) {
             Assert.assertEquals(ref[ref.length - i - 1], eigenValues[i], 2.0e-14);
         }
-
     }
 
     /** test dimensions */
@@ -774,11 +770,9 @@ public class EigenDecompositionTest {
                 for (int j = 0; j < size; ++j) {
                     dataI[j] *= inv;
                 }
-
             } while (norm2 * size < 0.01);
         }
 
         return MatrixUtils.createRealMatrix(data);
-
     }
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/FieldLUDecompositionTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/FieldLUDecompositionTest.java
index e7ee1f286..d19599ebb 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/FieldLUDecompositionTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/FieldLUDecompositionTest.java
@@ -63,7 +63,6 @@ public class FieldLUDecompositionTest {
         Assert.assertEquals(testData.length, LU.getU().getColumnDimension());
         Assert.assertEquals(testData.length, LU.getP().getRowDimension());
         Assert.assertEquals(testData.length, LU.getP().getColumnDimension());
-
     }
 
     /** test non-square matrix */
@@ -122,7 +121,6 @@ public class FieldLUDecompositionTest {
         Assert.assertNull(lu.getL());
         Assert.assertNull(lu.getU());
         Assert.assertNull(lu.getP());
-
     }
 
     /** test that L is lower triangular with unit diagonal */
@@ -202,7 +200,6 @@ public class FieldLUDecompositionTest {
             Assert.assertEquals(1, oneCount);
             Assert.assertEquals(0, otherCount);
         }
-
     }
 
 
@@ -256,7 +253,6 @@ public class FieldLUDecompositionTest {
         Assert.assertSame(l, lu.getL());
         Assert.assertSame(u, lu.getU());
         Assert.assertSame(p, lu.getP());
-
     }
 
     /** test matrices values */
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/FieldMatrixImplTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/FieldMatrixImplTest.java
index 68e8068ce..fe5f4c94f 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/FieldMatrixImplTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/FieldMatrixImplTest.java
@@ -425,7 +425,6 @@ public final class FieldMatrixImplTest {
                             subtract(Dfp25.of(5).multiply(solution[2])).toDouble(),
                             constants[2].toDouble(),
                             0d);
-
     }
 
     // test submatrix accessors
@@ -967,7 +966,6 @@ public final class FieldMatrixImplTest {
         } catch (MathIllegalArgumentException e) {
             // expected
         }
-
     }
 
     @Test
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/LUDecompositionTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/LUDecompositionTest.java
index 929fea228..ef0a26b23 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/LUDecompositionTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/LUDecompositionTest.java
@@ -64,7 +64,6 @@ public class LUDecompositionTest {
         Assert.assertEquals(testData.length, LU.getU().getColumnDimension());
         Assert.assertEquals(testData.length, LU.getP().getRowDimension());
         Assert.assertEquals(testData.length, LU.getP().getColumnDimension());
-
     }
 
     /** test non-square matrix */
@@ -118,7 +117,6 @@ public class LUDecompositionTest {
         Assert.assertNull(lu.getL());
         Assert.assertNull(lu.getU());
         Assert.assertNull(lu.getP());
-
     }
 
     /** test that L is lower triangular with unit diagonal */
@@ -193,7 +191,6 @@ public class LUDecompositionTest {
             Assert.assertEquals(1, oneCount);
             Assert.assertEquals(0, otherCount);
         }
-
     }
 
     /** test singular */
@@ -246,7 +243,6 @@ public class LUDecompositionTest {
         Assert.assertSame(l, lu.getL());
         Assert.assertSame(u, lu.getU());
         Assert.assertSame(p, lu.getP());
-
     }
 
     /** test matrices values */
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/OpenIntToDoubleHashMapTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/OpenIntToDoubleHashMapTest.java
index 3afb88c0f..26a7203bc 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/OpenIntToDoubleHashMapTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/OpenIntToDoubleHashMapTest.java
@@ -55,7 +55,6 @@ public class OpenIntToDoubleHashMapTest {
 
         /* Add a few more to cause the table to rehash */
         javaMap.putAll(generate());
-
     }
 
     private Map<Integer, Double> generate() {
@@ -328,5 +327,4 @@ public class OpenIntToDoubleHashMapTest {
         Assert.assertEquals(1, map.size());
         Assert.assertTrue(Precision.equals(value2, map.get(key2), 1));
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/OpenIntToFieldTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/OpenIntToFieldTest.java
index 0e1897a0e..8083ee671 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/OpenIntToFieldTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/OpenIntToFieldTest.java
@@ -56,7 +56,6 @@ public class OpenIntToFieldTest {
 
         /* Add a few more to cause the table to rehash */
         javaMap.putAll(generate());
-
     }
 
     private Map<Integer, Dfp> generate() {
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/QRDecompositionTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/QRDecompositionTest.java
index 8969364c8..19477e1e0 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/QRDecompositionTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/QRDecompositionTest.java
@@ -63,7 +63,6 @@ public class QRDecompositionTest {
         int    q = (7 * BlockRealMatrix.BLOCK_SIZE) / 4;
         checkDimension(createTestMatrix(r, p, q));
         checkDimension(createTestMatrix(r, q, p));
-
     }
 
     private void checkDimension(RealMatrix m) {
@@ -93,7 +92,6 @@ public class QRDecompositionTest {
         checkAEqualQR(createTestMatrix(r, p, q));
 
         checkAEqualQR(createTestMatrix(r, q, p));
-
     }
 
     private void checkAEqualQR(RealMatrix m) {
@@ -119,7 +117,6 @@ public class QRDecompositionTest {
         checkQOrthogonal(createTestMatrix(r, p, q));
 
         checkQOrthogonal(createTestMatrix(r, q, p));
-
     }
 
     private void checkQOrthogonal(RealMatrix m) {
@@ -152,7 +149,6 @@ public class QRDecompositionTest {
 
         matrix = createTestMatrix(r, p, q);
         checkUpperTriangular(new QRDecomposition(matrix).getR());
-
     }
 
     private void checkUpperTriangular(RealMatrix m) {
@@ -189,7 +185,6 @@ public class QRDecompositionTest {
 
         matrix = createTestMatrix(r, p, q);
         checkTrapezoidal(new QRDecomposition(matrix).getH());
-
     }
 
     private void checkTrapezoidal(RealMatrix m) {
@@ -237,7 +232,6 @@ public class QRDecompositionTest {
         Assert.assertSame(q, qr.getQ());
         Assert.assertSame(r, qr.getR());
         Assert.assertSame(h, qr.getH());
-
     }
 
     @Test(expected=SingularMatrixException.class)
@@ -281,5 +275,4 @@ public class QRDecompositionTest {
         final RealVector b = new ArrayRealVector(new double[]{ 5, 6, 1 });
         new QRDecomposition(a, 1.0e-15).getSolver().solve(b);
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/QRSolverTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/QRSolverTest.java
index 67eb2da6c..43d56ec72 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/QRSolverTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/QRSolverTest.java
@@ -64,7 +64,6 @@ public class QRSolverTest {
 
         solver = new QRDecomposition(MatrixUtils.createRealMatrix(testData4x3)).getSolver();
         Assert.assertTrue(solver.isNonSingular());
-
     }
 
     /** test solve dimension errors */
@@ -138,7 +137,6 @@ public class QRSolverTest {
             final double error = x.subtract(xRef.getColumnVector(i)).getNorm();
             Assert.assertEquals(0, error, 3.0e-16 * xRef.getColumnVector(i).getNorm());
         }
-
     }
 
     @Test
@@ -162,7 +160,6 @@ public class QRSolverTest {
         // despite perturbation, the least square solution should be pretty good
         RealMatrix x = new QRDecomposition(a).getSolver().solve(b);
         Assert.assertEquals(0, x.subtract(xRef).getNorm(), 0.01 * noise * p * q);
-
     }
 
     @Test
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/RRQRDecompositionTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/RRQRDecompositionTest.java
index 6623bb2a8..15e86028f 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/RRQRDecompositionTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/RRQRDecompositionTest.java
@@ -63,7 +63,6 @@ public class RRQRDecompositionTest {
         int    q = (7 * BlockRealMatrix.BLOCK_SIZE) / 4;
         checkDimension(createTestMatrix(r, p, q));
         checkDimension(createTestMatrix(r, q, p));
-
     }
 
     private void checkDimension(RealMatrix m) {
@@ -93,7 +92,6 @@ public class RRQRDecompositionTest {
         checkAPEqualQR(createTestMatrix(r, p, q));
 
         checkAPEqualQR(createTestMatrix(r, q, p));
-
     }
 
     private void checkAPEqualQR(RealMatrix m) {
@@ -119,7 +117,6 @@ public class RRQRDecompositionTest {
         checkQOrthogonal(createTestMatrix(r, p, q));
 
         checkQOrthogonal(createTestMatrix(r, q, p));
-
     }
 
     private void checkQOrthogonal(RealMatrix m) {
@@ -152,7 +149,6 @@ public class RRQRDecompositionTest {
 
         matrix = createTestMatrix(r, p, q);
         checkUpperTriangular(new RRQRDecomposition(matrix).getR());
-
     }
 
     private void checkUpperTriangular(RealMatrix m) {
@@ -189,7 +185,6 @@ public class RRQRDecompositionTest {
 
         matrix = createTestMatrix(r, p, q);
         checkTrapezoidal(new RRQRDecomposition(matrix).getH());
-
     }
 
     private void checkTrapezoidal(RealMatrix m) {
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/RRQRSolverTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/RRQRSolverTest.java
index fc9af7503..4b5ec8122 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/RRQRSolverTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/RRQRSolverTest.java
@@ -64,7 +64,6 @@ public class RRQRSolverTest {
 
         solver = new RRQRDecomposition(MatrixUtils.createRealMatrix(testData4x3), 1.0e-16).getSolver();
         Assert.assertTrue(solver.isNonSingular());
-
     }
 
     /** test solve dimension errors */
@@ -85,7 +84,6 @@ public class RRQRSolverTest {
         } catch (MathIllegalArgumentException iae) {
             // expected behavior
         }
-
     }
 
     /** test solve rank errors */
@@ -106,7 +104,6 @@ public class RRQRSolverTest {
         } catch (SingularMatrixException iae) {
             // expected behavior
         }
-
     }
 
     /** test solve */
@@ -141,7 +138,6 @@ public class RRQRSolverTest {
             final double error = x.subtract(xRef.getColumnVector(i)).getNorm();
             Assert.assertEquals(0, error, 3.0e-16 * xRef.getColumnVector(i).getNorm());
         }
-
     }
 
     @Test
@@ -165,7 +161,6 @@ public class RRQRSolverTest {
         // despite perturbation, the least square solution should be pretty good
         RealMatrix x = new RRQRDecomposition(a).getSolver().solve(b);
         Assert.assertEquals(0, x.subtract(xRef).getNorm(), 0.01 * noise * p * q);
-
     }
 
     @Test
@@ -185,7 +180,6 @@ public class RRQRSolverTest {
         // the last permuted unknown should have been set to 0
         RealMatrix permuted = rrqrd.getP().transpose().multiply(x);
         Assert.assertEquals(0.0, permuted.getSubMatrix(p, q - 1, 0, permuted.getColumnDimension() - 1).getNorm(), 0);
-
     }
 
     private RealMatrix createTestMatrix(final Random r, final int rows, final int columns) {
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/RealVectorAbstractTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/RealVectorAbstractTest.java
index 456f667e2..926b879d6 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/RealVectorAbstractTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/RealVectorAbstractTest.java
@@ -691,7 +691,6 @@ public abstract class RealVectorAbstractTest {
             expected += JdkMath.abs(data[i]);
         }
         Assert.assertEquals("", expected, actual, 0d);
-
     }
 
     private void doTestGetLInfDistance(final boolean mixed) {
@@ -740,7 +739,6 @@ public abstract class RealVectorAbstractTest {
             expected = JdkMath.max(expected, JdkMath.abs(data[i]));
         }
         Assert.assertEquals("", expected, actual, 0d);
-
     }
 
     private void doTestMapBinaryOperation(final BinaryOperation op, final boolean inPlace) {
@@ -1299,7 +1297,6 @@ public abstract class RealVectorAbstractTest {
         }
         final double actual = v1.cosine(v2);
         Assert.assertEquals("", expected, actual, 0d);
-
     }
 
     @Test
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/RectangularCholeskyDecompositionTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/RectangularCholeskyDecompositionTest.java
index 702bc08a3..5d7c7aaea 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/RectangularCholeskyDecompositionTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/RectangularCholeskyDecompositionTest.java
@@ -44,7 +44,6 @@ public class RectangularCholeskyDecompositionTest {
         RealMatrix root = d.getRootMatrix();
         RealMatrix rebuiltM = root.multiply(root.transpose());
         Assert.assertEquals(0.0, m.subtract(rebuiltM).getNorm(), 1.0e-15);
-
     }
 
     @Test
@@ -69,7 +68,6 @@ public class RectangularCholeskyDecompositionTest {
         // the pivoted Cholesky decomposition is *not* unique. Here, the root is
         // not equal to the original trianbular base matrix
         Assert.assertTrue(root.subtract(base).getNorm() > 0.3);
-
     }
 
     @Test
@@ -100,7 +98,6 @@ public class RectangularCholeskyDecompositionTest {
             {0.010499559, 0.010732709, 0.0, 0.009210099, 0.019107243}
         });
         composeAndTest(m3, 4);
-
     }
 
     private void composeAndTest(RealMatrix m, int expectedRank) {
@@ -110,5 +107,4 @@ public class RectangularCholeskyDecompositionTest {
         RealMatrix rebuiltMatrix = root.multiply(root.transpose());
         Assert.assertEquals(0.0, m.subtract(rebuiltMatrix).getNorm(), 1.0e-16);
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/SingularValueDecompositionTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/SingularValueDecompositionTest.java
index b268bb0f2..f8db3b42f 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/SingularValueDecompositionTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/SingularValueDecompositionTest.java
@@ -86,7 +86,6 @@ public class SingularValueDecompositionTest {
         Assert.assertEquals(n, svd.getS().getColumnDimension());
         Assert.assertEquals(n, svd.getV().getRowDimension());
         Assert.assertEquals(n, svd.getV().getColumnDimension());
-
     }
 
     /** Test based on a dimension 4 Hadamard matrix. */
@@ -123,7 +122,6 @@ public class SingularValueDecompositionTest {
         Assert.assertEquals(0.0,
                      halfCovariance.subtract(svd.getCovariance(6.0)).getNorm(),
                      1.0e-14);
-
     }
 
     /** test A = USVt */
@@ -141,7 +139,6 @@ public class SingularValueDecompositionTest {
         RealMatrix v = svd.getV();
         double norm = u.multiply(s).multiply(v.transpose()).subtract(matrix).getNorm();
         Assert.assertEquals(0, norm, normTolerance);
-
     }
 
     /** test that U is orthogonal */
@@ -197,7 +194,6 @@ public class SingularValueDecompositionTest {
         Assert.assertSame(u, svd.getU());
         Assert.assertSame(s, svd.getS());
         Assert.assertSame(v, svd.getV());
-
     }
 
     /** test matrices values */
@@ -236,7 +232,6 @@ public class SingularValueDecompositionTest {
         Assert.assertSame(u, svd.getU());
         Assert.assertSame(s, svd.getS());
         Assert.assertSame(v, svd.getV());
-
     }
 
      /** test MATH-465 */
@@ -327,5 +322,4 @@ public class SingularValueDecompositionTest {
         Assert.assertTrue(Double.isNaN(svd.getSingularValues()[0]));
         Assert.assertTrue(Double.isNaN(svd.getSingularValues()[1]));
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/SingularValueSolverTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/SingularValueSolverTest.java
index c000399a9..f0006ea05 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/SingularValueSolverTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/SingularValueSolverTest.java
@@ -118,7 +118,6 @@ public class SingularValueSolverTest {
                          solver.solve(v).subtract(xRef.getColumnVector(i)).getNorm(),
                          1.0e-13);
         }
-
     }
 
     /** test condition number */
@@ -154,5 +153,4 @@ public class SingularValueSolverTest {
       });
       Assert.assertEquals(0, expected.subtract(pseudoInverse).getNorm(), 1.0e-9);
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/SparseFieldMatrixTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/SparseFieldMatrixTest.java
index b649e1667..7b41ef873 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/SparseFieldMatrixTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/SparseFieldMatrixTest.java
@@ -398,7 +398,6 @@ public class SparseFieldMatrixTest {
                 constants[1].toDouble(), 1E-12);
         Assert.assertEquals(((Dfp25.of(4).multiply(solution[0])).subtract(Dfp25.of(3).multiply( solution[1])).subtract(Dfp25.of(5).multiply(solution[2]))).toDouble(),
                 constants[2].toDouble(), 1E-12);
-
     }
 
     // test submatrix accessors
@@ -672,7 +671,6 @@ public class SparseFieldMatrixTest {
             for(int j=0; j < m.getColumnDimension(); j++){
                 Assert.assertEquals(msg, m.getEntry(i,j).toDouble(), n.getEntry(i,j).toDouble(), tolerance);
             }
-
         }
     }
 
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/SparseFieldVectorTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/SparseFieldVectorTest.java
index 7ebe535ec..255d6a5a9 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/SparseFieldVectorTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/SparseFieldVectorTest.java
@@ -109,7 +109,6 @@ public class SparseFieldVectorTest {
         Dfp[] result_mapInvToSelf = {Dfp25.of(1),Dfp25.of(0.5d),Dfp25.of(1, 3)};
         Assert.assertArrayEquals("compare vectors" ,result_mapInvToSelf,v_mapInvToSelf.toArray());
 
-
     }
 
     @Test
@@ -169,7 +168,6 @@ public class SparseFieldVectorTest {
 
         FieldMatrix<Dfp> m_outerProduct_2 = v1.outerProduct(v2_t);
         Assert.assertEquals("compare val ",Dfp25.of(4), m_outerProduct_2.getEntry(0,0));
-
     }
 
     @Test
@@ -208,7 +206,6 @@ public class SparseFieldVectorTest {
             // expected behavior
         }
 
-
     }
 
     @Test
@@ -219,7 +216,6 @@ public class SparseFieldVectorTest {
         v.setEntry(0, field.getZero());
         Assert.assertEquals(v, new SparseFieldVector<>(field, new Dfp[] { Dfp25.of(0), Dfp25.of(1), Dfp25.of(2) }));
         Assert.assertNotSame(v, new SparseFieldVector<>(field, new Dfp[] { Dfp25.of(0), Dfp25.of(1), Dfp25.of(2), Dfp25.of(3) }));
-
     }
 
     /** verifies that two vectors are close (sup norm) */
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/SparseRealMatrixTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/SparseRealMatrixTest.java
index 2eda9ba90..1f5719858 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/SparseRealMatrixTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/SparseRealMatrixTest.java
@@ -395,7 +395,6 @@ public final class SparseRealMatrixTest {
         Assert.assertEquals(2 * sol0 + 3 * sol1 - 2 * sol2, cst0, 1E-12);
         Assert.assertEquals(-1 * sol0 + 7 * sol1 + 6 * sol2, cst1, 1E-12);
         Assert.assertEquals(4 * sol0 - 3 * sol1 - 5 * sol2, cst2, 1E-12);
-
     }
 
     // test submatrix accessors
@@ -656,7 +655,6 @@ public final class SparseRealMatrixTest {
         } catch (MathIllegalArgumentException e) {
             // expected
         }
-
     }
 
     @Test
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/SparseRealVectorTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/SparseRealVectorTest.java
index 74f3ed25c..cd89bb711 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/SparseRealVectorTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/SparseRealVectorTest.java
@@ -98,7 +98,6 @@ public class SparseRealVectorTest extends RealVectorAbstractTest {
         OpenMapRealVector v8 = new OpenMapRealVector(v1);
         Assert.assertEquals("testData len", 7, v8.getDimension());
         Assert.assertEquals("testData is 0.0 ", 0.0, v8.getEntry(6), 0);
-
     }
 
     /* Check that the operations do not throw an exception (cf. MATH-645). */
@@ -146,5 +145,4 @@ public class SparseRealVectorTest extends RealVectorAbstractTest {
             new Floor(), new Rint(), new Signum()
         };
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/UnmodifiableRealVectorAbstractTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/UnmodifiableRealVectorAbstractTest.java
index eabef20b3..c0f31271c 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/UnmodifiableRealVectorAbstractTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/UnmodifiableRealVectorAbstractTest.java
@@ -314,7 +314,6 @@ public abstract class UnmodifiableRealVectorAbstractTest {
                               equals(uu, v));
             Assert.assertTrue(m.toGenericString() + ", wrong result",
                               equals(exp, act));
-
         } else {
             boolean flag = false;
             try {
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ml/clustering/DBSCANClustererTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ml/clustering/DBSCANClustererTest.java
index f755e9353..aed92b496 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ml/clustering/DBSCANClustererTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ml/clustering/DBSCANClustererTest.java
@@ -146,7 +146,6 @@ public class DBSCANClustererTest {
                 new DoublePoint(new int[] {14, 8}), // C
                 new DoublePoint(new int[] {7, 15}), // N - Noise, should not be present
                 new DoublePoint(new int[] {17, 8}), // D - single-link connected to C should not be present
-
         };
 
         final DBSCANClusterer<DoublePoint> clusterer = new DBSCANClusterer<>(3, 3);
@@ -186,5 +185,4 @@ public class DBSCANClustererTest {
         DBSCANClusterer<DoublePoint> clusterer = new DBSCANClusterer<>(2.0, 5);
         clusterer.cluster(null);
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ml/clustering/FuzzyKMeansClustererTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ml/clustering/FuzzyKMeansClustererTest.java
index cf100973f..1abd4b1dd 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ml/clustering/FuzzyKMeansClustererTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ml/clustering/FuzzyKMeansClustererTest.java
@@ -130,5 +130,4 @@ public class FuzzyKMeansClustererTest {
 
         Assert.assertEquals(3, clusters.size());
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ml/clustering/KMeansPlusPlusClustererTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ml/clustering/KMeansPlusPlusClustererTest.java
index a7f63b77f..78582a4b4 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ml/clustering/KMeansPlusPlusClustererTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ml/clustering/KMeansPlusPlusClustererTest.java
@@ -59,7 +59,6 @@ public class KMeansPlusPlusClustererTest {
         DoublePoint pt2 = new DoublePoint(new int[] { 1960, 373200 });
         Assert.assertTrue(clusters.get(0).getPoints().contains(pt1));
         Assert.assertTrue(clusters.get(0).getPoints().contains(pt2));
-
     }
 
     @Test
@@ -110,7 +109,6 @@ public class KMeansPlusPlusClustererTest {
                 Assert.assertEquals(numberOfVariables, sum);
             }
         }
-
     }
 
     /**
@@ -176,7 +174,5 @@ public class KMeansPlusPlusClustererTest {
         };
 
         transformer.cluster(Arrays.asList(points));
-
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ml/clustering/MultiKMeansPlusPlusClustererTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ml/clustering/MultiKMeansPlusPlusClustererTest.java
index c8c7164fb..93884cc99 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ml/clustering/MultiKMeansPlusPlusClustererTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ml/clustering/MultiKMeansPlusPlusClustererTest.java
@@ -60,7 +60,6 @@ public class MultiKMeansPlusPlusClustererTest {
                 new DoublePoint(new int[] { 16,  6 }),
                 new DoublePoint(new int[] { 17,  4 }),
                 new DoublePoint(new int[] { 17,  7 })
-
         };
         List<CentroidCluster<DoublePoint>> clusters = transformer.cluster(Arrays.asList(points));
 
@@ -92,7 +91,5 @@ public class MultiKMeansPlusPlusClustererTest {
         Assert.assertTrue(cluster1Found);
         Assert.assertTrue(cluster2Found);
         Assert.assertTrue(cluster3Found);
-
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/ContinuousOutputFieldModelTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/ContinuousOutputFieldModelTest.java
index efa21b1ec..e3e6e4236 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/ContinuousOutputFieldModelTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/ContinuousOutputFieldModelTest.java
@@ -89,7 +89,6 @@ public class ContinuousOutputFieldModelTest {
 
         Assert.assertEquals(0.0, maxError.getReal(),    1.0e-9);
         Assert.assertEquals(0.0, maxErrorDot.getReal(), 4.0e-7);
-
     }
 
     @Test
@@ -157,7 +156,6 @@ public class ContinuousOutputFieldModelTest {
             Assert.assertEquals(JdkMath.cos(t), interpolated.getState()[0].getReal(), 1.0e-7);
             Assert.assertEquals(JdkMath.sin(t), interpolated.getState()[1].getReal(), 1.0e-7);
         }
-
     }
 
     @Test
@@ -180,7 +178,6 @@ public class ContinuousOutputFieldModelTest {
 
         // no errors
         Assert.assertFalse(checkAppendError(field, cm, 1.0, 2.0, new double[] { 0.0, 1.0, -2.0 }));
-
     }
 
     private <T extends RealFieldElement<T>> boolean checkAppendError(Field<T> field, ContinuousOutputFieldModel<T> cm,
@@ -224,5 +221,4 @@ public class ContinuousOutputFieldModelTest {
     public void checkValue(double value, double reference) {
         Assert.assertTrue(JdkMath.abs(value - reference) < 1.0e-10);
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/ContinuousOutputModelTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/ContinuousOutputModelTest.java
index 1af7b4544..f0e5fe7e4 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/ContinuousOutputModelTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/ContinuousOutputModelTest.java
@@ -86,7 +86,6 @@ public class ContinuousOutputModelTest {
 
     Assert.assertEquals(0.0, maxError,    1.0e-9);
     Assert.assertEquals(0.0, maxErrorDot, 4.0e-7);
-
   }
 
   @Test
@@ -138,7 +137,6 @@ public class ContinuousOutputModelTest {
           Assert.assertEquals(JdkMath.cos(t), y[0], 1.0e-7);
           Assert.assertEquals(JdkMath.sin(t), y[1], 1.0e-7);
       }
-
   }
 
   @Test
@@ -158,7 +156,6 @@ public class ContinuousOutputModelTest {
 
       // no errors
       Assert.assertFalse(checkAppendError(cm, 1.0, new double[] { 0.0, 1.0, -2.0 }, 2.0));
-
   }
 
   private boolean checkAppendError(ContinuousOutputModel cm,
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/FieldExpandableODETest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/FieldExpandableODETest.java
index b648efc4a..37c60a248 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/FieldExpandableODETest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/FieldExpandableODETest.java
@@ -113,7 +113,6 @@ public class FieldExpandableODETest {
             Assert.assertEquals(-i, secondaryState2Dot[i].getReal(), 1.0e-15);
             Assert.assertEquals(-i, completeDot[i + main.getDimension() + secondary1.getDimension()].getReal(),  1.0e-15);
         }
-
     }
 
     @Test
@@ -339,7 +338,5 @@ public class FieldExpandableODETest {
             }
             return secondaryDot;
         }
-
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/FirstOrderConverterTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/FirstOrderConverterTest.java
index 5773347bb..248ab6601 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/FirstOrderConverterTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/FirstOrderConverterTest.java
@@ -52,7 +52,6 @@ public class FirstOrderConverterTest {
         Assert.assertTrue(JdkMath.abs(error) < JdkMath.abs(previousError));
       }
       previousError = error;
-
     }
   }
 
@@ -96,7 +95,6 @@ public class FirstOrderConverterTest {
           yDDot[i] = -omega2 * y[i];
         }
     }
-
   }
 
   private double integrateWithSpecifiedStep(double omega,
@@ -110,5 +108,4 @@ public class FirstOrderConverterTest {
     i.integrate(new FirstOrderConverter(new Equations(1, omega)), t0, y0, t, y);
     return y[0];
   }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/JacobianMatricesTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/JacobianMatricesTest.java
index f02ec0a95..09ebd40ff 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/JacobianMatricesTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/JacobianMatricesTest.java
@@ -361,7 +361,6 @@ public class JacobianMatricesTest {
         public double dYdP1() {
             return 1502.824469929139 + (-1438.6974831849952 + (460.959476642384 - 49.43847385647082 * b) * b) * b;
         }
-
     }
 
     private static class ParamBrusselator extends AbstractParameterizable
@@ -411,7 +410,6 @@ public class JacobianMatricesTest {
         public double dYdP1() {
             return 1502.824469929139 + (-1438.6974831849952 + (460.959476642384 - 49.43847385647082 * b) * b) * b;
         }
-
     }
 
     /** ODE representing a point moving on a circle with provided center and angular rate. */
@@ -511,7 +509,6 @@ public class JacobianMatricesTest {
             double dy0 = y0[1] - cy;
             return new double[] { -t * (sin * dx0 + cos * dy0) , t * (cos * dx0 - sin * dy0) };
         }
-
     }
 
     /** ODE representing a point moving on a circle with provided center and angular rate. */
@@ -613,7 +610,5 @@ public class JacobianMatricesTest {
             double dy0 = y0[1] - cy;
             return new double[] { -t * (sin * dx0 + cos * dy0) , t * (cos * dx0 - sin * dy0) };
         }
-
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblem1.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblem1.java
index 221c08878..280d8fac9 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblem1.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblem1.java
@@ -61,7 +61,6 @@ public class TestFieldProblem1<T extends RealFieldElement<T>>
         }
 
         return yDot;
-
     }
 
     @Override
@@ -75,5 +74,4 @@ public class TestFieldProblem1<T extends RealFieldElement<T>>
         }
         return y;
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblem2.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblem2.java
index f9082969f..941f7e866 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblem2.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblem2.java
@@ -61,7 +61,6 @@ public class TestFieldProblem2<T extends RealFieldElement<T>>
         }
 
         return yDot;
-
     }
 
     @Override
@@ -74,5 +73,4 @@ public class TestFieldProblem2<T extends RealFieldElement<T>>
         }
         return y;
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblem3.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblem3.java
index 624750445..b92978643 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblem3.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblem3.java
@@ -87,7 +87,6 @@ extends TestFieldProblemAbstract<T> {
         yDot[3] = invR3.negate().multiply(y[1]);
 
         return yDot;
-
     }
 
     @Override
@@ -118,7 +117,5 @@ extends TestFieldProblemAbstract<T> {
         y[3] = e.multiply(e).subtract(1).negate().sqrt().multiply(cosE).divide(e.multiply(cosE).subtract(1).negate());
 
         return y;
-
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblem5.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblem5.java
index af15c561c..969a04969 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblem5.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblem5.java
@@ -37,5 +37,4 @@ public class TestFieldProblem5<T extends RealFieldElement<T>>
         super(field);
         setFinalConditions(getInitialState().getTime().multiply(2).subtract(getFinalTime()));
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblem6.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblem6.java
index 643ca94e9..1a2af6654 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblem6.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblem6.java
@@ -65,7 +65,6 @@ public class TestFieldProblem6<T extends RealFieldElement<T>>
         }
 
         return yDot;
-
     }
 
     @Override
@@ -78,7 +77,5 @@ public class TestFieldProblem6<T extends RealFieldElement<T>>
         }
 
         return y;
-
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblemAbstract.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblemAbstract.java
index a71d93ffe..3daa82e85 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblemAbstract.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblemAbstract.java
@@ -200,5 +200,4 @@ public abstract class TestFieldProblemAbstract<T extends RealFieldElement<T>>
         }
         return array;
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblemHandler.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblemHandler.java
index a4b42b32e..00d938308 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblemHandler.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblemHandler.java
@@ -151,5 +151,4 @@ public class TestFieldProblemHandler<T extends RealFieldElement<T>>
     public T getLastTime() {
         return lastTime;
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblem1.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblem1.java
index 033ce466b..0e4c2c109 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblem1.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblem1.java
@@ -59,7 +59,6 @@ public class TestProblem1
     for (int i = 0; i < getDimension(); ++i) {
         yDot[i] = -y[i];
     }
-
   }
 
   @Override
@@ -70,5 +69,4 @@ public class TestProblem1
     }
     return y;
   }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblem2.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblem2.java
index 74706b0d7..8fb2e3391 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblem2.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblem2.java
@@ -60,7 +60,6 @@ public class TestProblem2
     for (int i = 0; i < getDimension(); ++i) {
         yDot[i] = t * (t * t - y[i]);
     }
-
   }
 
   @Override
@@ -72,5 +71,4 @@ public class TestProblem2
     }
     return y;
   }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblem3.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblem3.java
index 1a3d00f97..a15053ad1 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblem3.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblem3.java
@@ -79,7 +79,6 @@ public class TestProblem3
     yDot[1] = y[3];
     yDot[2] = -invR3  * y[0];
     yDot[3] = -invR3  * y[1];
-
   }
 
   @Override
@@ -109,5 +108,4 @@ public class TestProblem3
 
     return y;
   }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblem4.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblem4.java
index 9b6172a03..418d2ea5f 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblem4.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblem4.java
@@ -120,7 +120,6 @@ public class TestProblem4
       y[0] = -y[0];
       y[1] = -y[1];
     }
-
   }
 
   private static class Stop implements EventHandler {
@@ -145,7 +144,5 @@ public class TestProblem4
     @Override
     public void resetState(double t, double[] y) {
     }
-
   }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblem5.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblem5.java
index 997cd370f..b1a2e7020 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblem5.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblem5.java
@@ -30,5 +30,4 @@ public class TestProblem5 extends TestProblem1 {
     public TestProblem5() {
         setFinalConditions(2 * getInitialTime() - getFinalTime());
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblem6.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblem6.java
index aae8bd3a5..b715ab7f5 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblem6.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblem6.java
@@ -61,7 +61,6 @@ public class TestProblem6
         for (int i = 0; i < getDimension(); ++i) {
             yDot[i] = 3 * t5 - y[i];
         }
-
     }
 
     @Override
@@ -71,5 +70,4 @@ public class TestProblem6
         }
         return y;
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblemHandler.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblemHandler.java
index 0d7a44377..ff12b204a 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblemHandler.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblemHandler.java
@@ -118,7 +118,6 @@ public void handleStep(StepInterpolator interpolator, boolean isLast) throws Max
             maxValueError = JdkMath.max(error, maxValueError);
         }
     }
-
   }
 
   /**
@@ -157,5 +156,4 @@ public void handleStep(StepInterpolator interpolator, boolean isLast) throws Max
   public double getLastTime() {
     return lastTime;
   }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/events/CloseEventsTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/events/CloseEventsTest.java
index a17e5352d..d35c79a87 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/events/CloseEventsTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/events/CloseEventsTest.java
@@ -111,7 +111,6 @@ public class CloseEventsTest {
         @Override
         public void resetState(double t, double[] y) {
         }
-
     }
 
     /** Some basic equations to integrate. */
@@ -127,7 +126,5 @@ public class CloseEventsTest {
             yDot[0] = 1.0;
             yDot[1] = 2.0;
         }
-
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/events/EventFilterTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/events/EventFilterTest.java
index abc02e2e6..055adeb35 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/events/EventFilterTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/events/EventFilterTest.java
@@ -46,7 +46,6 @@ public class EventFilterTest {
         // start point: g < 0
         testHistory(FilterType.TRIGGER_ONLY_INCREASING_EVENTS,
                     1.5 * JdkMath.PI, 30.5 * JdkMath.PI, JdkMath.PI, +1);
-
     }
 
     @Test
@@ -63,7 +62,6 @@ public class EventFilterTest {
         // start point: g < 0
         testHistory(FilterType.TRIGGER_ONLY_INCREASING_EVENTS,
                     1.5 * JdkMath.PI, -30.5 * JdkMath.PI, JdkMath.PI, -1);
-
     }
 
     @Test
@@ -80,7 +78,6 @@ public class EventFilterTest {
         // start point: g < 0
         testHistory(FilterType.TRIGGER_ONLY_DECREASING_EVENTS,
                     1.5 * JdkMath.PI, 30.5 * JdkMath.PI, 0, +1);
-
     }
 
     @Test
@@ -97,7 +94,6 @@ public class EventFilterTest {
         // start point: g < 0
         testHistory(FilterType.TRIGGER_ONLY_DECREASING_EVENTS,
                     1.5 * JdkMath.PI, -30.5 * JdkMath.PI, 0, +1);
-
     }
 
     public void testHistory(FilterType type, double t0, double t1, double refSwitch, double signEven) {
@@ -126,7 +122,6 @@ public class EventFilterTest {
                 Assert.assertEquals(-signEven * JdkMath.sin(t), g, 1.0e-10);
             }
         }
-
     }
 
     @Test
@@ -153,7 +148,6 @@ public class EventFilterTest {
 
         Assert.assertEquals(5, allEvents.getEventCount());
         Assert.assertEquals(2, onlyIncreasing.getEventCount());
-
     }
 
     @Test
@@ -180,7 +174,6 @@ public class EventFilterTest {
 
         Assert.assertEquals(5, allEvents.getEventCount());
         Assert.assertEquals(3, onlyDecreasing.getEventCount());
-
     }
 
     @Test
@@ -213,7 +206,6 @@ public class EventFilterTest {
         Assert.assertEquals(5, allEvents.getEventCount());
         Assert.assertEquals(2, onlyIncreasing.getEventCount());
         Assert.assertEquals(3, onlyDecreasing.getEventCount());
-
     }
 
     private static class SineCosine implements FirstOrderDifferentialEquations {
@@ -270,6 +262,5 @@ public class EventFilterTest {
         public void resetState(double t, double[] y) {
             // in fact, we don't really reset anything for this test
         }
-
     }
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/events/EventStateTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/events/EventStateTest.java
index b2159e181..7151e43ff 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/events/EventStateTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/events/EventStateTest.java
@@ -78,7 +78,6 @@ public class EventStateTest {
         interpolator.storeTime(r2 + 0.4 * gap);
         Assert.assertTrue(es.evaluateStep(interpolator));
         Assert.assertEquals(r2, es.getEventTime(), tolerance);
-
     }
 
     // Jira: MATH-695
@@ -110,7 +109,6 @@ public class EventStateTest {
         double tEnd = integrator.integrate(equation, 0.0, y, target, y);
         Assert.assertEquals(target, tEnd, 1.0e-10);
         Assert.assertEquals(32.0, y[0], 1.0e-10);
-
     }
 
     private static class ResettingEvent implements EventHandler {
@@ -148,7 +146,6 @@ public class EventStateTest {
         public void resetState(double t, double[] y) {
             y[0] += 1.0;
         }
-
     }
 
     // Jira: MATH-965
@@ -196,7 +193,6 @@ public class EventStateTest {
         Assert.assertEquals( 1.0, equation.getTime(), 1.0e-10);
         Assert.assertEquals( 2.0, equation.getPrimaryState()[0], 1.0e-10);
         Assert.assertEquals(-3.0, equation.getSecondaryState(0)[0], 1.0e-10);
-
     }
 
     private static class SecondaryStateEvent implements EventHandler {
@@ -226,7 +222,6 @@ public class EventStateTest {
         @Override
         public void resetState(double t, double[] y) {
         }
-
     }
 
     @Test
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/nonstiff/AbstractEmbeddedRungeKuttaFieldIntegratorTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/nonstiff/AbstractEmbeddedRungeKuttaFieldIntegratorTest.java
index 0720bec62..3598a2b4c 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/nonstiff/AbstractEmbeddedRungeKuttaFieldIntegratorTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/nonstiff/AbstractEmbeddedRungeKuttaFieldIntegratorTest.java
@@ -102,7 +102,6 @@ public abstract class AbstractEmbeddedRungeKuttaFieldIntegratorTest {
             }
             checkArray(regularB, fieldB);
             checkArray(regularC, fieldC);
-
         } catch (ClassNotFoundException cnfe) {
             Assert.fail(cnfe.getLocalizedMessage());
         } catch (IllegalAccessException iae) {
@@ -197,7 +196,6 @@ public abstract class AbstractEmbeddedRungeKuttaFieldIntegratorTest {
         integ.addStepHandler(handler);
         integ.integrate(new FieldExpandableODE<>(pb), pb.getInitialState(), pb.getFinalTime());
         Assert.fail("an exception should have been thrown");
-
     }
 
     @Test
@@ -228,9 +226,7 @@ public abstract class AbstractEmbeddedRungeKuttaFieldIntegratorTest {
             Assert.assertEquals(integ.getEvaluations(), calls);
             Assert.assertTrue(calls <= previousCalls);
             previousCalls = calls;
-
         }
-
     }
 
     @Test
@@ -264,7 +260,6 @@ public abstract class AbstractEmbeddedRungeKuttaFieldIntegratorTest {
       Assert.assertEquals(name, integ.getName());
       integ.clearEventHandlers();
       Assert.assertEquals(0, integ.getEventHandlers().size());
-
     }
 
     @Test(expected=LocalException.class)
@@ -307,7 +302,6 @@ public abstract class AbstractEmbeddedRungeKuttaFieldIntegratorTest {
         }, Double.POSITIVE_INFINITY, 1.0e-8 * maxStep, 1000);
 
         integ.integrate(new FieldExpandableODE<>(pb), pb.getInitialState(), pb.getFinalTime());
-
     }
 
     @Test
@@ -352,7 +346,6 @@ public abstract class AbstractEmbeddedRungeKuttaFieldIntegratorTest {
         } catch (MaxCountExceededException mcee) {
             // Expected.
         }
-
     }
 
     @Test
@@ -419,7 +412,6 @@ public abstract class AbstractEmbeddedRungeKuttaFieldIntegratorTest {
         Assert.assertEquals(0, handler.getMaximalValueError().getReal(), epsilonMaxValue);
         Assert.assertEquals(0, handler.getMaximalTimeError().getReal(),  epsilonMaxTime);
         Assert.assertEquals(name, integ.getName());
-
     }
 
     @Test
@@ -515,7 +507,6 @@ public abstract class AbstractEmbeddedRungeKuttaFieldIntegratorTest {
                 Assert.assertEquals(derivatives[i][parameter], dYdP(result.getState()[i], parameter), epsilonPartials[parameter]);
             }
         }
-
     }
 
     private double dYdP(final DerivativeStructure y, final int parameter) {
@@ -563,7 +554,6 @@ public abstract class AbstractEmbeddedRungeKuttaFieldIntegratorTest {
             this.dAlphadT0    = -omega.getReal();
             this.dAlphadY00   = y0[1].divide(r2).getReal();
             this.dAlphadY01   = y0[0].negate().divide(r2).getReal();
-
         }
 
         @Override
@@ -608,9 +598,6 @@ public abstract class AbstractEmbeddedRungeKuttaFieldIntegratorTest {
                 { dY0dOmega, dY0dT0, dY0dY00, dY0dY01, dY0dT },
                 { dY1dOmega, dY1dT0, dY1dY00, dY1dY01, dY1dT }
             };
-
         }
-
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/nonstiff/AbstractRungeKuttaFieldIntegratorTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/nonstiff/AbstractRungeKuttaFieldIntegratorTest.java
index 0fc40661c..986682bb9 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/nonstiff/AbstractRungeKuttaFieldIntegratorTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/nonstiff/AbstractRungeKuttaFieldIntegratorTest.java
@@ -88,7 +88,6 @@ public abstract class AbstractRungeKuttaFieldIntegratorTest {
             }
             checkArray(regularB, fieldB);
             checkArray(regularC, fieldC);
-
         } catch (ClassNotFoundException cnfe) {
             Assert.fail(cnfe.getLocalizedMessage());
         } catch (IllegalAccessException iae) {
@@ -197,7 +196,6 @@ public abstract class AbstractRungeKuttaFieldIntegratorTest {
                                 y[i].getReal(),
                                 epsilonY);
         }
-
     }
 
     @Test
@@ -283,9 +281,7 @@ public abstract class AbstractRungeKuttaFieldIntegratorTest {
                 integ.clearEventHandlers();
                 Assert.assertEquals(0, integ.getEventHandlers().size());
             }
-
         }
-
     }
 
     @Test
@@ -311,7 +307,6 @@ public abstract class AbstractRungeKuttaFieldIntegratorTest {
         Assert.assertEquals(0, handler.getMaximalValueError().getReal(), epsilonMaxValue);
         Assert.assertEquals(0, handler.getMaximalTimeError().getReal(),  epsilonMaxTime);
         Assert.assertEquals(name, integ.getName());
-
     }
 
     @Test
@@ -337,7 +332,6 @@ public abstract class AbstractRungeKuttaFieldIntegratorTest {
         Assert.assertTrue(handler.getMaximalValueError().getReal() > belowMaxValue);
         Assert.assertEquals(0, handler.getMaximalTimeError().getReal(),  epsilonMaxTime);
         Assert.assertEquals(name, integ.getName());
-
     }
 
     @Test
@@ -363,7 +357,6 @@ public abstract class AbstractRungeKuttaFieldIntegratorTest {
         Assert.assertEquals(0, handler.getMaximalValueError().getReal(), epsilonMaxValue);
         Assert.assertEquals(0, handler.getMaximalTimeError().getReal(),  epsilonMaxTime);
         Assert.assertEquals(name, integ.getName());
-
     }
 
     @Test
@@ -503,11 +496,9 @@ public abstract class AbstractRungeKuttaFieldIntegratorTest {
                 yDot[0] = y[0].multiply(-100.0);
                 return yDot;
             }
-
         };
 
         integ.integrate(new FieldExpandableODE<>(equations), new FieldODEState<>(t0, y0), t);
-
     }
 
     @Test
@@ -581,7 +572,6 @@ public abstract class AbstractRungeKuttaFieldIntegratorTest {
                                     epsilonPartials[parameter]);
             }
         }
-
     }
 
     private double dYdP(final DerivativeStructure y, final int parameter) {
@@ -629,7 +619,6 @@ public abstract class AbstractRungeKuttaFieldIntegratorTest {
             this.dAlphadT0    = -omega.getReal();
             this.dAlphadY00   = y0[1].divide(r2).getReal();
             this.dAlphadY01   = y0[0].negate().divide(r2).getReal();
-
         }
 
         @Override
@@ -674,9 +663,6 @@ public abstract class AbstractRungeKuttaFieldIntegratorTest {
                 { dY0dOmega, dY0dT0, dY0dY00, dY0dY01, dY0dT },
                 { dY1dOmega, dY1dT0, dY1dY00, dY1dY01, dY1dT }
             };
-
         }
-
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsBashforthFieldIntegratorTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsBashforthFieldIntegratorTest.java
index bfe126ae9..435d14346 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsBashforthFieldIntegratorTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsBashforthFieldIntegratorTest.java
@@ -81,5 +81,4 @@ public class AdamsBashforthFieldIntegratorTest extends AdamsFieldIntegratorAbstr
     public void testStartFailure() {
         doTestStartFailure(Decimal64Field.getInstance());
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsBashforthIntegratorTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsBashforthIntegratorTest.java
index 802710a15..927328f55 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsBashforthIntegratorTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsBashforthIntegratorTest.java
@@ -70,7 +70,6 @@ public class AdamsBashforthIntegratorTest {
           integ.integrate(pb,
                           pb.getInitialTime(), pb.getInitialState(),
                           pb.getFinalTime(), new double[pb.getDimension()]);
-
     }
 
     @Test
@@ -103,9 +102,7 @@ public class AdamsBashforthIntegratorTest {
             Assert.assertEquals(integ.getEvaluations(), calls);
             Assert.assertTrue(calls <= previousCalls);
             previousCalls = calls;
-
         }
-
     }
 
     @Test(expected = MaxCountExceededException.class)
@@ -121,7 +118,6 @@ public class AdamsBashforthIntegratorTest {
         integ.integrate(pb,
                         pb.getInitialTime(), pb.getInitialState(),
                         pb.getFinalTime(), new double[pb.getDimension()]);
-
     }
 
     @Test
@@ -162,7 +158,6 @@ public class AdamsBashforthIntegratorTest {
                 Assert.assertTrue(handler.getMaximalValueError() < 5.0e-10);
             }
         }
-
     }
 
     @Test(expected=MathIllegalStateException.class)
@@ -185,7 +180,6 @@ public class AdamsBashforthIntegratorTest {
         integ.integrate(pb,
                         pb.getInitialTime(), pb.getInitialState(),
                         pb.getFinalTime(), new double[pb.getDimension()]);
-
     }
 
     private static class PerfectStarter extends AbstractIntegrator {
@@ -212,7 +206,6 @@ public class AdamsBashforthIntegratorTest {
                 }
             }
         }
-
     }
 
     private static class PerfectInterpolator implements StepInterpolator {
@@ -296,7 +289,5 @@ public class AdamsBashforthIntegratorTest {
         public StepInterpolator copy() {
             return this;
         }
-
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsFieldIntegratorAbstractTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsFieldIntegratorAbstractTest.java
index 464a3312c..38efcde60 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsFieldIntegratorAbstractTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsFieldIntegratorAbstractTest.java
@@ -67,7 +67,6 @@ public abstract class AdamsFieldIntegratorAbstractTest {
         TestFieldProblemHandler<T> handler = new TestFieldProblemHandler<>(pb, integ);
         integ.addStepHandler(handler);
         integ.integrate(new FieldExpandableODE<>(pb), pb.getInitialState(), pb.getFinalTime());
-
     }
 
     @Test
@@ -98,9 +97,7 @@ public abstract class AdamsFieldIntegratorAbstractTest {
             Assert.assertEquals(integ.getEvaluations(), calls);
             Assert.assertTrue(calls <= previousCalls);
             previousCalls = calls;
-
         }
-
     }
 
     @Test(expected = MaxCountExceededException.class)
@@ -116,7 +113,6 @@ public abstract class AdamsFieldIntegratorAbstractTest {
         integ.addStepHandler(handler);
         integ.setMaxEvaluations(max);
         integ.integrate(new FieldExpandableODE<>(pb), pb.getInitialState(), pb.getFinalTime());
-
     }
 
     @Test
@@ -164,7 +160,6 @@ public abstract class AdamsFieldIntegratorAbstractTest {
                 Assert.assertTrue(handler.getMaximalValueError().getReal() < epsilonGood);
             }
         }
-
     }
 
     @Test(expected=MathIllegalStateException.class)
@@ -184,7 +179,6 @@ public abstract class AdamsFieldIntegratorAbstractTest {
         TestFieldProblemHandler<T> handler = new TestFieldProblemHandler<>(pb, integ);
         integ.addStepHandler(handler);
         integ.integrate(new FieldExpandableODE<>(pb), pb.getInitialState(), pb.getFinalTime());
-
     }
 
     private static class PerfectStarter<T extends RealFieldElement<T>> extends AbstractFieldIntegrator<T> {
@@ -214,7 +208,6 @@ public abstract class AdamsFieldIntegratorAbstractTest {
             }
             return interpolator.getInterpolatedState(tStart);
         }
-
     }
 
     private static class PerfectInterpolator<T extends RealFieldElement<T>> implements FieldStepInterpolator<T> {
@@ -259,7 +252,5 @@ public abstract class AdamsFieldIntegratorAbstractTest {
             T[] yDot = problem.computeDerivatives(time, y);
             return new FieldODEStateAndDerivative<>(time, y, yDot);
         }
-
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsMoultonFieldIntegratorTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsMoultonFieldIntegratorTest.java
index c8b8918a7..c64cef26a 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsMoultonFieldIntegratorTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsMoultonFieldIntegratorTest.java
@@ -81,5 +81,4 @@ public class AdamsMoultonFieldIntegratorTest extends AdamsFieldIntegratorAbstrac
     public void testStartFailure() {
         doTestStartFailure(Decimal64Field.getInstance());
     }
-
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsMoultonIntegratorTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsMoultonIntegratorTest.java
index d4eecc59b..43985c87f 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsMoultonIntegratorTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/nonstiff/AdamsMoultonIntegratorTest.java
@@ -72,7 +72,6 @@ public class AdamsMoultonIntegratorTest {
           integ.integrate(pb,
                           pb.getInitialTime(), pb.getInitialState(),
                           pb.getFinalTime(), new double[pb.getDimension()]);
-
     }
 
     @Test
@@ -108,9 +107,7 @@ public class AdamsMoultonIntegratorTest {
             Assert.assertEquals(integ.getEvaluations(), calls);
             Assert.assertTrue(calls <= previousCalls);
             previousCalls = calls;
-
         }
-
     }
 
     @Test(expected = MaxCountExceededException.class)
@@ -128,7 +125,6 @@ public class AdamsMoultonIntegratorTest {
         integ.integrate(pb,
                         pb.getInitialTime(), pb.getInitialState(),
                         pb.getFinalTime(), new double[pb.getDimension()]);
-
     }
 
     @Test
@@ -172,7 +168,6 @@ public class AdamsMoultonIntegratorTest {
                 Assert.assertTrue(handler.getMaximalValueError() < 1.1e-11);
             }
         }
-
     }
 
     private static class PerfectStarter extends AbstractIntegrator {
@@ -199,7 +194,6 @@ public class AdamsMoultonIntegratorTest {
                 }
             }
         }
-
     }
 
     private static class PerfectInterpolator implements StepInterpolator {
@@ -283,7 +277,5 @@ public class AdamsMoultonIntegratorTest {
... 2448 lines suppressed ...


[commons-math] 12/23: Update spotbugs 4.3.0 to CP 4.7.2.0

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit 2ceab60e7a2fe78445f89b8555078dc70e1669f4
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Oct 13 12:44:37 2022 +0100

    Update spotbugs 4.3.0 to CP 4.7.2.0
---
 commons-math-legacy/pom.xml | 1 -
 pom.xml                     | 5 -----
 2 files changed, 6 deletions(-)

diff --git a/commons-math-legacy/pom.xml b/commons-math-legacy/pom.xml
index 8f86c23fa..630e38bf5 100644
--- a/commons-math-legacy/pom.xml
+++ b/commons-math-legacy/pom.xml
@@ -140,7 +140,6 @@
       <plugin>
         <groupId>com.github.spotbugs</groupId>
         <artifactId>spotbugs-maven-plugin</artifactId>
-        <version>${commons.spotbugs.version}</version>
         <configuration>
           <skip>true</skip>
         </configuration>
diff --git a/pom.xml b/pom.xml
index d9920f974..fe275d3a8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -83,9 +83,6 @@
        to collect the artifacts from other modules. -->
     <commons.jxr.version>2.5</commons.jxr.version>
 
-    <!-- Override CP 47 -->
-    <commons.spotbugs.version>4.3.0</commons.spotbugs.version>
-
     <commons.site.path>math</commons.site.path>
     <commons.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-math</commons.scmPubUrl>
     <commons.scmPubCheckoutDirectory>site-content</commons.scmPubCheckoutDirectory>
@@ -341,7 +338,6 @@
       <plugin>
         <groupId>com.github.spotbugs</groupId>
         <artifactId>spotbugs-maven-plugin</artifactId>
-        <version>${commons.spotbugs.version}</version>
         <configuration>
           <threshold>Normal</threshold>
           <effort>Default</effort>
@@ -538,7 +534,6 @@
       <plugin>
         <groupId>com.github.spotbugs</groupId>
         <artifactId>spotbugs-maven-plugin</artifactId>
-        <version>${commons.spotbugs.version}</version>
         <configuration>
           <threshold>Normal</threshold>
           <effort>Default</effort>


[commons-math] 10/23: Drop checkstyle 3.1.0 for 3.2.0 in commons parent

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit 070517388d5676966e79011724422b03bcfc448b
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Oct 13 11:48:31 2022 +0100

    Drop checkstyle 3.1.0 for 3.2.0 in commons parent
    
    Update checkstyle dependency 8.29 for 9.3 in commons parent
    
    Remove checkstyle excludes for generated code.
---
 pom.xml | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/pom.xml b/pom.xml
index c55214fb5..d9920f974 100644
--- a/pom.xml
+++ b/pom.xml
@@ -61,8 +61,6 @@
     <maven.compiler.target>1.8</maven.compiler.target>
     <math.pmd.version>3.14.0</math.pmd.version>
     <math.pmd.dep.version>6.37.0</math.pmd.dep.version>
-    <math.checkstyle.version>3.1.0</math.checkstyle.version>
-    <math.checkstyle.dep.version>8.29</math.checkstyle.dep.version>
     <math.mathjax.version>2.7.2</math.mathjax.version>
     <math.commons.numbers.version>1.1-SNAPSHOT</math.commons.numbers.version>
     <math.commons.rng.version>1.5</math.commons.rng.version>
@@ -319,13 +317,6 @@
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-checkstyle-plugin</artifactId>
-        <dependencies>
-          <dependency>
-            <groupId>com.puppycrawl.tools</groupId>
-            <artifactId>checkstyle</artifactId>
-            <version>${math.checkstyle.dep.version}</version>
-          </dependency>
-        </dependencies>
         <configuration>
           <includeTestSourceDirectory>true</includeTestSourceDirectory>
           <configLocation>${math.parent.dir}/src/main/resources/checkstyle/checkstyle.xml</configLocation>
@@ -338,7 +329,6 @@
           <logViolationsToConsole>true</logViolationsToConsole>
           <failOnViolation>true</failOnViolation>
           <resourceExcludes>NOTICE,LICENSE,**/*.properties</resourceExcludes>
-          <excludes>**/generated/**.java</excludes>
         </configuration>
         <executions>
           <execution>
@@ -470,11 +460,6 @@
     <pluginManagement>
 
       <plugins>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-checkstyle-plugin</artifactId>
-          <version>${math.checkstyle.version}</version>
-        </plugin>
 
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
@@ -535,14 +520,12 @@
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-checkstyle-plugin</artifactId>
-        <version>${math.checkstyle.version}</version>
         <configuration>
           <configLocation>${math.parent.dir}/src/main/resources/checkstyle/checkstyle.xml</configLocation>
           <headerLocation>${math.parent.dir}/src/main/resources/checkstyle/license-header.txt</headerLocation>
           <suppressionsLocation>${math.parent.dir}/src/main/resources/checkstyle/checkstyle-suppressions.xml</suppressionsLocation>
           <enableRulesSummary>false</enableRulesSummary>
           <includeResources>false</includeResources>
-          <excludes>**/generated/**.java</excludes>
         </configuration>
         <reportSets>
           <reportSet>


[commons-math] 17/23: Update changes report configuration to allow component reports

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit 86c703f3af09fbc7932cce32d5b1b3f418f65cff
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Oct 13 13:08:39 2022 +0100

    Update changes report configuration to allow component reports
    
    Remove configuration that is a duplicate of commons-parent.
---
 commons-math-core/pom.xml             |  1 +
 commons-math-examples/pom.xml         |  1 +
 commons-math-legacy-core/pom.xml      |  1 +
 commons-math-legacy-exception/pom.xml |  1 +
 commons-math-legacy/pom.xml           |  1 +
 commons-math-neuralnet/pom.xml        |  1 +
 commons-math-transform/pom.xml        |  1 +
 pom.xml                               | 12 +++---------
 8 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/commons-math-core/pom.xml b/commons-math-core/pom.xml
index aaeb68e3c..f0e0b760b 100644
--- a/commons-math-core/pom.xml
+++ b/commons-math-core/pom.xml
@@ -40,6 +40,7 @@
     <commons.osgi.export>org.apache.commons.math4.core</commons.osgi.export>
     <!-- Workaround to avoid duplicating config files. -->
     <math.parent.dir>${basedir}/..</math.parent.dir>
+    <math.jira.component>core</math.jira.component>
 
     <!-- Disable coverage checks in Travis -->
     <jacoco.skip>true</jacoco.skip>
diff --git a/commons-math-examples/pom.xml b/commons-math-examples/pom.xml
index 0b788eb40..b4ef6e47a 100644
--- a/commons-math-examples/pom.xml
+++ b/commons-math-examples/pom.xml
@@ -46,6 +46,7 @@
     <commons.automatic.module.name>org.apache.commons.math4.examples</commons.automatic.module.name>
     <!-- Workaround to avoid duplicating config files. -->
     <math.parent.dir>${basedir}/..</math.parent.dir>
+    <math.jira.component>examples</math.jira.component>
 
     <math.version>4.0-SNAPSHOT</math.version>
     <math.picocli.version>3.9.5</math.picocli.version>
diff --git a/commons-math-legacy-core/pom.xml b/commons-math-legacy-core/pom.xml
index 04b039e2e..b7809e900 100644
--- a/commons-math-legacy-core/pom.xml
+++ b/commons-math-legacy-core/pom.xml
@@ -40,6 +40,7 @@
     <commons.osgi.export>org.apache.commons.math4.legacy.core</commons.osgi.export>
     <!-- Workaround to avoid duplicating config files. -->
     <math.parent.dir>${basedir}/..</math.parent.dir>
+    <math.jira.component>legacy-core</math.jira.component>
   </properties>
 
   <dependencies>
diff --git a/commons-math-legacy-exception/pom.xml b/commons-math-legacy-exception/pom.xml
index 6be98481a..8de5715dd 100644
--- a/commons-math-legacy-exception/pom.xml
+++ b/commons-math-legacy-exception/pom.xml
@@ -40,6 +40,7 @@
     <commons.osgi.export>org.apache.commons.math4.legacy.exception</commons.osgi.export>
     <!-- Workaround to avoid duplicating config files. -->
     <math.parent.dir>${basedir}/..</math.parent.dir>
+    <math.jira.component>legacy-exception</math.jira.component>
   </properties>
 
   <dependencies>
diff --git a/commons-math-legacy/pom.xml b/commons-math-legacy/pom.xml
index 66673454f..7a55ef1d6 100644
--- a/commons-math-legacy/pom.xml
+++ b/commons-math-legacy/pom.xml
@@ -40,6 +40,7 @@
     <commons.osgi.export>org.apache.commons.math4.legacy</commons.osgi.export>
     <!-- Workaround to avoid duplicating config files. -->
     <math.parent.dir>${basedir}/..</math.parent.dir>
+    <math.jira.component>legacy</math.jira.component>
   </properties>
 
   <dependencies>
diff --git a/commons-math-neuralnet/pom.xml b/commons-math-neuralnet/pom.xml
index 914d00796..373d3336c 100644
--- a/commons-math-neuralnet/pom.xml
+++ b/commons-math-neuralnet/pom.xml
@@ -40,6 +40,7 @@
     <commons.osgi.export>org.apache.commons.math4.neuralnet</commons.osgi.export>
     <!-- Workaround to avoid duplicating config files. -->
     <math.parent.dir>${basedir}/..</math.parent.dir>
+    <math.jira.component>neuralnet</math.jira.component>
   </properties>
 
   <dependencies>
diff --git a/commons-math-transform/pom.xml b/commons-math-transform/pom.xml
index 4f0cad171..3e4877736 100644
--- a/commons-math-transform/pom.xml
+++ b/commons-math-transform/pom.xml
@@ -40,6 +40,7 @@
     <commons.osgi.export>org.apache.commons.math4.transform</commons.osgi.export>
     <!-- Workaround to avoid duplicating config files. -->
     <math.parent.dir>${basedir}/..</math.parent.dir>
+    <math.jira.component>transform</math.jira.component>
   </properties>
 
   <dependencies>
diff --git a/pom.xml b/pom.xml
index a6dfe9e9f..aa83b71b6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -104,6 +104,8 @@
          This flag should be deactivated by child modules. -->
     <perform.site.checkout>true</perform.site.checkout>
 
+    <!-- Set by modules to create a custom jira report -->
+    <math.jira.component />
   </properties>
 
   <modules> <!-- Do not change the ordering of the 4 blocks below. -->
@@ -468,19 +470,11 @@
         <artifactId>maven-changes-plugin</artifactId>
         <version>${commons.changes.version}</version>
         <configuration>
-          <xmlPath>${basedir}/src/changes/changes.xml</xmlPath>
-          <columnNames>Fix Version,Key,Component,Summary,Type,Resolution,Status</columnNames>
-          <!-- Sort cols in natural order when using JQL for JIRA 5.1 -->
-          <sortColumnNames>Fix Version DESC,Type,Key DESC</sortColumnNames>
           <resolutionIds>Fixed,Implemented</resolutionIds>
           <statusIds>Resolved,Closed</statusIds>
           <!-- Don't include sub-task -->
           <typeIds>Bug,New Feature,Task,Improvement,Wish,Test</typeIds>
-          <!-- For JIRA >= 5.1 -->
-          <useJql>true</useJql>
-          <onlyCurrentVersion>${commons.changes.onlyCurrentVersion}</onlyCurrentVersion>
-          <maxEntries>${commons.changes.maxEntries}</maxEntries>
-          <runOnlyAtExecutionRoot>${commons.changes.runOnlyAtExecutionRoot}</runOnlyAtExecutionRoot>
+          <component>${math.jira.component}</component>
         </configuration>
         <reportSets>
           <reportSet>


[commons-math] 07/23: Update to CP 54

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit e59397ba10cff203af175841e0508b2d0cb4d543
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Oct 13 11:42:44 2022 +0100

    Update to CP 54
    
    Disable CycloneDX as config is incorrect for multi-module builds.
    
    Override ciManagement section from the parent.
    
    Set commons.release.isDistModule to false in the parent.
    
    Add rat exclusion for .gitattributes.
---
 pom.xml | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index 21f017913..012f0721b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,7 +21,7 @@
   <parent>
     <groupId>org.apache.commons</groupId>
     <artifactId>commons-parent</artifactId>
-    <version>53</version>
+    <version>54</version>
   </parent>
 
   <artifactId>commons-math-parent</artifactId>
@@ -46,6 +46,8 @@
     <commons.osgi.symbolicName>org.apache.commons.math4</commons.osgi.symbolicName>
     <!-- OSGi -->
     <commons.osgi.export>org.apache.commons.math4</commons.osgi.export>
+    <!-- This flag should only be true in the dist-archive module. -->
+    <commons.release.isDistModule>false</commons.release.isDistModule>
     <!-- do not use snapshot suffix here -->
     <commons.release.version>4.0</commons.release.version>
     <commons.release.desc>(requires Java 8+)</commons.release.desc>
@@ -72,6 +74,8 @@
     <math.antrun.version>1.8</math.antrun.version>
     <!-- Workaround to avoid duplicating config files. -->
     <math.parent.dir>${basedir}</math.parent.dir>
+    <!-- Multi-module support fixed in commons-parent 55 -->
+    <cyclonedx.skip>true</cyclonedx.skip>
 
     <!-- Increase from commons-parent -->
     <commons.jacoco.methodRatio>1.00</commons.jacoco.methodRatio>
@@ -134,11 +138,17 @@
     <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/commons-math.git</developerConnection>
     <url>https://gitbox.apache.org/repos/asf/commons-math.git</url>
   </scm>
+
   <issueManagement>
     <system>jira</system>
     <url>https://issues.apache.org/jira/browse/MATH</url>
   </issueManagement>
 
+  <ciManagement>
+    <system>GitHub</system>
+    <url>https://github.com/apache/commons-math/actions</url>
+  </ciManagement>
+
   <distributionManagement>
     <site>
       <id>apache.website</id>
@@ -413,6 +423,8 @@
             <exclude>src/site/resources/release-notes/RELEASE-NOTES-*.txt</exclude>
             <exclude>dist-archive/**</exclude>
             <exclude>**/site-content/**</exclude>
+            <!-- Moved to commons-parent 55 -->
+            <exclude>.gitattributes</exclude>
 
             <!-- MANIFEST files cannot have any comments, so we can't put license header -->
             <exclude>src/test/maxima/special/RealFunctionValidation/MANIFEST.txt</exclude>
@@ -434,7 +446,6 @@
             <!-- direction numbers for Sobol generation from Frances Y. Kuo and Stephen Joe,
                  available under a BSD-style license (see LICENSE.txt) -->
             <exclude>src/main/resources/assets/org/apache/commons/math4/legacy/random/new-joe-kuo-6.21201</exclude>
-
           </excludes>
         </configuration>
       </plugin>
@@ -492,6 +503,8 @@
             <exclude>src/site/resources/release-notes/RELEASE-NOTES-*.txt</exclude>
             <exclude>dist-archive/**</exclude>
             <exclude>**/site-content/**</exclude>
+            <!-- Moved to commons-parent 55 -->
+            <exclude>.gitattributes</exclude>
           </excludes>
         </configuration>
       </plugin>


[commons-math] 22/23: Disable Travis (superseded by GH actions)

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit 2c76d18910b480ac979806ede57c433829d8aff9
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Oct 13 13:27:27 2022 +0100

    Disable Travis (superseded by GH actions)
    
    Update build status badge
---
 .travis.yml | 38 --------------------------------------
 README.md   |  2 +-
 2 files changed, 1 insertion(+), 39 deletions(-)

diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index d96d298e6..000000000
--- a/.travis.yml
+++ /dev/null
@@ -1,38 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-language: java
-sudo: required
-cache:
-  directories:
-    - $HOME/.m2
-jdk:
-  - openjdk8
-
-env:
-  - MAVEN_OPTS="-Xmx6g -Xms2g"
-
-# only build master and the MATH_3_X branch
-branches:
-  only:
-    - develop
-    - master
-    - MATH_3_X
-
-script:
-    - mvn
-
-after_success:
-  - mvn jacoco:report coveralls:report
diff --git a/README.md b/README.md
index 09ef79ab5..0330cdc8f 100644
--- a/README.md
+++ b/README.md
@@ -43,7 +43,7 @@
 Apache Commons Math
 ===================
 
-[![Build Status](https://travis-ci.com/apache/commons-math.svg)](https://travis-ci.com/apache/commons-math)
+[![Build Status](https://github.com/apache/commons-math/actions/workflows/maven.yml/badge.svg)](https://github.com/apache/commons-math/actions/workflows/maven.yml)
 [![Coverage Status](https://codecov.io/gh/apache/commons-math/branch/master/graph/badge.svg)](https://app.codecov.io/gh/apache/commons-math)
 <!--
 [![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.apache.commons/commons-math-parent/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.apache.commons/commons-math-parent/)


[commons-math] 13/23: Update PMD version to commons parent

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit 23ef546eff08ecbbc66994848fbb53340b15eb94
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Oct 13 12:47:08 2022 +0100

    Update PMD version to commons parent
    
    plugin 3.14.0 -> 3.19.0
    pmd-impl 6.37.0 -> 6.49.0
---
 pom.xml | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/pom.xml b/pom.xml
index fe275d3a8..b904ec3bd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -59,8 +59,6 @@
     <commons.encoding>UTF-8</commons.encoding>
     <maven.compiler.source>1.8</maven.compiler.source>
     <maven.compiler.target>1.8</maven.compiler.target>
-    <math.pmd.version>3.14.0</math.pmd.version>
-    <math.pmd.dep.version>6.37.0</math.pmd.dep.version>
     <math.mathjax.version>2.7.2</math.mathjax.version>
     <math.commons.numbers.version>1.1-SNAPSHOT</math.commons.numbers.version>
     <math.commons.rng.version>1.5</math.commons.rng.version>
@@ -354,19 +352,6 @@
       </plugin>
       <plugin>
         <artifactId>maven-pmd-plugin</artifactId>
-        <version>${math.pmd.version}</version>
-        <dependencies>
-          <dependency>
-            <groupId>net.sourceforge.pmd</groupId>
-            <artifactId>pmd-core</artifactId>
-            <version>${math.pmd.dep.version}</version>
-          </dependency>
-          <dependency>
-            <groupId>net.sourceforge.pmd</groupId>
-            <artifactId>pmd-java</artifactId>
-            <version>${math.pmd.dep.version}</version>
-          </dependency>
-        </dependencies>
         <configuration>
           <printFailingErrors>true</printFailingErrors>
           <!-- TODO: remove this when PMD has been fixed. -->
@@ -542,7 +527,6 @@
       </plugin>
       <plugin>
         <artifactId>maven-pmd-plugin</artifactId>
-        <version>${math.pmd.version}</version>
         <configuration>
           <verbose>false</verbose>
           <printFailingErrors>true</printFailingErrors>


[commons-math] 02/23: Update git ignore to recursively ignore build files

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit 8dfca662fce43c31640c927dda139bbe0f372ce0
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Oct 13 10:38:52 2022 +0100

    Update git ignore to recursively ignore build files
---
 .gitignore | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/.gitignore b/.gitignore
index 7786f12ab..d9d9d7ec5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,13 +1,13 @@
-.classpath
-.project
-.settings
-.checkstyle
+**/.classpath
+**/.project
+**/.settings/
+**/.checkstyle
 bin
-target
+**/target/
 /build
 /lib
 site-content*
-.ekstazi
+**/.ekstazi/
 *.class
 *.iml
 *.ipr


[commons-math] 20/23: Add my name to the developers

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit 1d50e68f6df3a5370215e8d63888930c826c73fa
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Oct 13 13:23:04 2022 +0100

    Add my name to the developers
---
 pom.xml | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/pom.xml b/pom.xml
index aa83b71b6..83d905e48 100644
--- a/pom.xml
+++ b/pom.xml
@@ -906,6 +906,11 @@ This is avoided by creating an empty directory when svn is not available.
       <id>ericbarnhill</id>
       <email>ericbarnhill at apache dot org</email>
     </developer>
+    <developer>
+      <name>Alex Herbert</name>
+      <id>aherbert</id>
+      <email>aherbert at apache dot org</email>
+    </developer>
   </developers>
   <contributors>
     <contributor>
@@ -1139,9 +1144,6 @@ This is avoided by creating an empty directory when svn is not available.
     <contributor>
       <name>Artavazd Balaian</name>
     </contributor>
-    <contributor>
-      <name>Alex Herbert</name>
-    </contributor>
     <contributor>
       <name>Samy Badjoudj</name>
     </contributor>


[commons-math] 21/23: Update coverage badge

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit 02ca77c64936660cad6922c70c7c6806491a5751
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Oct 13 13:26:38 2022 +0100

    Update coverage badge
---
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 805ccfb25..09ef79ab5 100644
--- a/README.md
+++ b/README.md
@@ -44,7 +44,7 @@ Apache Commons Math
 ===================
 
 [![Build Status](https://travis-ci.com/apache/commons-math.svg)](https://travis-ci.com/apache/commons-math)
-[![Coverage Status](https://coveralls.io/repos/apache/commons-math/badge.svg)](https://coveralls.io/r/apache/commons-math)
+[![Coverage Status](https://codecov.io/gh/apache/commons-math/branch/master/graph/badge.svg)](https://app.codecov.io/gh/apache/commons-math)
 <!--
 [![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.apache.commons/commons-math-parent/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.apache.commons/commons-math-parent/)
 -->


[commons-math] 09/23: Drop antrun 1.8 for 3.1.0 in commons parent

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit 10f519d8c24ace8c557ae2ddc39bf59ed7dbd1e8
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Oct 13 11:44:44 2022 +0100

    Drop antrun 1.8 for 3.1.0 in commons parent
---
 pom.xml | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/pom.xml b/pom.xml
index 9af24ced8..c55214fb5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -70,7 +70,6 @@
     <math.commons.statistics.version>1.0-SNAPSHOT</math.commons.statistics.version>
     <math.commons.math3.version>3.6.1</math.commons.math3.version>
     <math.surefire.version>3.0.0-M5</math.surefire.version>
-    <math.antrun.version>1.8</math.antrun.version>
     <!-- Workaround to avoid duplicating config files. -->
     <math.parent.dir>${basedir}</math.parent.dir>
     <!-- Multi-module support fixed in commons-parent 55 -->
@@ -648,7 +647,6 @@
           <plugin>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-antrun-plugin</artifactId>
-            <version>${math.antrun.version}</version>
             <executions>
               <!-- For multi-module builds, only the parent directory requires a site checkout.
                    This task will create an empty directory as the site checkout is missing. -->
@@ -708,7 +706,6 @@ This is avoided by creating an empty directory when svn is not available.
           <plugin>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-antrun-plugin</artifactId>
-            <version>${math.antrun.version}</version>
             <executions>
               <execution>
                 <id>remove-checkout</id>


[commons-math] 01/23: Update to commons RNG 1.5

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit 49d542fc03471182c8415b21740cbc28dd71223c
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Oct 13 10:36:08 2022 +0100

    Update to commons RNG 1.5
    
    Use BOM for dependency management
---
 pom.xml | 18 ++++--------------
 1 file changed, 4 insertions(+), 14 deletions(-)

diff --git a/pom.xml b/pom.xml
index 420fa8b82..21f017913 100644
--- a/pom.xml
+++ b/pom.xml
@@ -63,7 +63,7 @@
     <math.checkstyle.dep.version>8.29</math.checkstyle.dep.version>
     <math.mathjax.version>2.7.2</math.mathjax.version>
     <math.commons.numbers.version>1.1-SNAPSHOT</math.commons.numbers.version>
-    <math.commons.rng.version>1.4</math.commons.rng.version>
+    <math.commons.rng.version>1.5</math.commons.rng.version>
     <math.commons.geometry.version>1.0</math.commons.geometry.version>
     <math.commons.statistics.version>1.0-SNAPSHOT</math.commons.statistics.version>
     <math.commons.math3.version>3.6.1</math.commons.math3.version>
@@ -236,20 +236,10 @@
 
       <dependency>
         <groupId>org.apache.commons</groupId>
-        <artifactId>commons-rng-client-api</artifactId>
-        <version>${math.commons.rng.version}</version>
-      </dependency>
-
-      <dependency>
-        <groupId>org.apache.commons</groupId>
-        <artifactId>commons-rng-simple</artifactId>
-        <version>${math.commons.rng.version}</version>
-      </dependency>
-
-      <dependency>
-        <groupId>org.apache.commons</groupId>
-        <artifactId>commons-rng-sampling</artifactId>
+        <artifactId>commons-rng-bom</artifactId>
         <version>${math.commons.rng.version}</version>
+        <scope>import</scope>
+        <type>pom</type>
       </dependency>
 
       <dependency>


[commons-math] 19/23: Drop exec-maven-plugin management

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit e1dd863d2427749209ee084de6573eb6078f5f2b
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Oct 13 13:17:20 2022 +0100

    Drop exec-maven-plugin management
---
 commons-math-examples/pom.xml | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/commons-math-examples/pom.xml b/commons-math-examples/pom.xml
index ae8844873..4f20215a1 100644
--- a/commons-math-examples/pom.xml
+++ b/commons-math-examples/pom.xml
@@ -86,22 +86,6 @@
     </dependencies>
   </dependencyManagement>
 
-  <build>
-
-    <pluginManagement>
-
-      <plugins>
-        <plugin>
-          <groupId>org.codehaus.mojo</groupId>
-          <artifactId>exec-maven-plugin</artifactId>
-          <version>1.6.0</version>
-        </plugin>
-      </plugins>
-
-    </pluginManagement>
-
-  </build>
-
   <profiles>
     <profile>
       <id>commons-math-examples</id>


[commons-math] 11/23: Fix checkstyle for UnnecessaryParentheses

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit f142596f1a84bbcdee9ddeed0457e38e971c8867
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Oct 13 12:41:54 2022 +0100

    Fix checkstyle for UnnecessaryParentheses
---
 .../differentiation/DerivativeStructure.java       |  4 +-
 .../analysis/integration/MidPointIntegrator.java   |  2 +-
 .../analysis/integration/RombergIntegrator.java    |  2 +-
 .../analysis/integration/TrapezoidIntegrator.java  |  2 +-
 .../analysis/polynomials/PolynomialFunction.java   |  2 +-
 .../analysis/polynomials/PolynomialsUtils.java     |  2 +-
 .../solvers/BracketingNthOrderBrentSolver.java     |  8 ++--
 .../FieldBracketingNthOrderBrentSolver.java        |  6 +--
 .../legacy/analysis/solvers/LaguerreSolver.java    |  4 +-
 .../analysis/solvers/UnivariateSolverUtils.java    |  4 +-
 .../math4/legacy/fitting/HarmonicCurveFitter.java  |  2 +-
 .../leastsquares/LevenbergMarquardtOptimizer.java  |  6 +--
 .../math4/legacy/linear/AbstractFieldMatrix.java   | 14 +++---
 .../math4/legacy/linear/AbstractRealMatrix.java    | 14 +++---
 .../math4/legacy/linear/Array2DRowFieldMatrix.java |  2 +-
 .../math4/legacy/linear/Array2DRowRealMatrix.java  |  2 +-
 .../math4/legacy/linear/ArrayFieldVector.java      |  4 +-
 .../math4/legacy/linear/BlockFieldMatrix.java      |  8 ++--
 .../math4/legacy/linear/BlockRealMatrix.java       |  8 ++--
 .../math4/legacy/linear/ConjugateGradient.java     |  4 +-
 .../math4/legacy/linear/FieldLUDecomposition.java  |  6 +--
 .../math4/legacy/linear/LUDecomposition.java       |  6 +--
 .../commons/math4/legacy/linear/MatrixUtils.java   |  4 +-
 .../commons/math4/legacy/linear/RealVector.java    |  4 +-
 .../math4/legacy/linear/SparseFieldVector.java     |  4 +-
 .../apache/commons/math4/legacy/linear/SymmLQ.java |  4 +-
 .../clustering/ElkanKMeansPlusPlusClusterer.java   | 18 ++++----
 .../math4/legacy/ode/ContinuousOutputModel.java    |  4 +-
 .../commons/math4/legacy/ode/JacobianMatrices.java |  4 +-
 .../math4/legacy/ode/events/EventState.java        | 16 +++----
 .../ode/nonstiff/AdaptiveStepsizeIntegrator.java   |  8 ++--
 .../ClassicalRungeKuttaStepInterpolator.java       |  2 +-
 .../nonstiff/DormandPrince54StepInterpolator.java  |  2 +-
 .../nonstiff/DormandPrince853StepInterpolator.java |  2 +-
 .../legacy/ode/nonstiff/EulerStepInterpolator.java |  2 +-
 .../legacy/ode/nonstiff/GillStepInterpolator.java  |  2 +-
 .../ode/nonstiff/GraggBulirschStoerIntegrator.java | 54 +++++++++++-----------
 .../GraggBulirschStoerStepInterpolator.java        |  2 +-
 .../ode/nonstiff/HighamHall54StepInterpolator.java |  2 +-
 .../ode/nonstiff/LutherStepInterpolator.java       |  2 +-
 .../ode/nonstiff/MidpointStepInterpolator.java     |  2 +-
 .../nonstiff/ThreeEighthesStepInterpolator.java    |  2 +-
 .../optim/linear/LinearObjectiveFunction.java      |  2 +-
 .../math4/legacy/optim/linear/SimplexTableau.java  | 18 ++++----
 .../scalar/MultivariateFunctionPenaltyAdapter.java |  2 +-
 .../commons/math4/legacy/special/BesselJ.java      |  9 ++--
 .../math4/legacy/stat/inference/ChiSquareTest.java |  4 +-
 .../commons/math4/legacy/stat/inference/GTest.java |  2 +-
 .../stat/inference/KolmogorovSmirnovTest.java      |  2 +-
 .../AbstractMultipleLinearRegression.java          |  2 +-
 .../legacy/stat/regression/SimpleRegression.java   |  2 +-
 .../commons/math4/legacy/util/CompositeFormat.java |  6 +--
 .../solvers/BaseSecantSolverAbstractTest.java      |  2 +-
 .../legacy/linear/BiDiagonalTransformerTest.java   |  4 +-
 .../math4/legacy/linear/BlockFieldMatrixTest.java  |  2 +-
 .../math4/legacy/linear/BlockRealMatrixTest.java   |  2 +-
 .../legacy/linear/TriDiagonalTransformerTest.java  |  2 +-
 .../math4/legacy/ode/TestFieldProblem3.java        |  2 +-
 .../commons/math4/legacy/ode/TestProblem3.java     |  2 +-
 .../checkstyle/checkstyle-suppressions-legacy.xml  | 15 ++++++
 60 files changed, 173 insertions(+), 159 deletions(-)

diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/DerivativeStructure.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/DerivativeStructure.java
index 0b2fd9120..d4a3b56dd 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/DerivativeStructure.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/differentiation/DerivativeStructure.java
@@ -1140,8 +1140,8 @@ public class DerivativeStructure implements RealFieldElement<DerivativeStructure
 
         if (other instanceof DerivativeStructure) {
             final DerivativeStructure rhs = (DerivativeStructure)other;
-            return (getFreeParameters() == rhs.getFreeParameters()) &&
-                   (getOrder() == rhs.getOrder()) &&
+            return getFreeParameters() == rhs.getFreeParameters() &&
+                   getOrder() == rhs.getOrder() &&
                    MathArrays.equals(data, rhs.data);
         }
 
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/integration/MidPointIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/integration/MidPointIntegrator.java
index 8065dd038..eb4910bad 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/integration/MidPointIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/integration/MidPointIntegrator.java
@@ -155,7 +155,7 @@ public class MidPointIntegrator extends BaseAbstractUnivariateIntegrator {
                 final double delta = JdkMath.abs(t - oldt);
                 final double rLimit =
                         getRelativeAccuracy() * (JdkMath.abs(oldt) + JdkMath.abs(t)) * 0.5;
-                if ((delta <= rLimit) || (delta <= getAbsoluteAccuracy())) {
+                if (delta <= rLimit || delta <= getAbsoluteAccuracy()) {
                     return t;
                 }
             }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/integration/RombergIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/integration/RombergIntegrator.java
index a18cb1883..73fa19f36 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/integration/RombergIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/integration/RombergIntegrator.java
@@ -122,7 +122,7 @@ public class RombergIntegrator extends BaseAbstractUnivariateIntegrator {
             if (i >= getMinimalIterationCount()) {
                 final double delta  = JdkMath.abs(s - olds);
                 final double rLimit = getRelativeAccuracy() * (JdkMath.abs(olds) + JdkMath.abs(s)) * 0.5;
-                if ((delta <= rLimit) || (delta <= getAbsoluteAccuracy())) {
+                if (delta <= rLimit || delta <= getAbsoluteAccuracy()) {
                     return s;
                 }
             }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/integration/TrapezoidIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/integration/TrapezoidIntegrator.java
index 1fea13a00..5a8a263b4 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/integration/TrapezoidIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/integration/TrapezoidIntegrator.java
@@ -149,7 +149,7 @@ public class TrapezoidIntegrator extends BaseAbstractUnivariateIntegrator {
                 final double delta = JdkMath.abs(t - oldt);
                 final double rLimit =
                     getRelativeAccuracy() * (JdkMath.abs(oldt) + JdkMath.abs(t)) * 0.5;
-                if ((delta <= rLimit) || (delta <= getAbsoluteAccuracy())) {
+                if (delta <= rLimit || delta <= getAbsoluteAccuracy()) {
                     return t;
                 }
             }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/polynomials/PolynomialFunction.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/polynomials/PolynomialFunction.java
index e9614af92..31c29a400 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/polynomials/PolynomialFunction.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/polynomials/PolynomialFunction.java
@@ -63,7 +63,7 @@ public class PolynomialFunction implements UnivariateDifferentiableFunction {
         if (n == 0) {
             throw new NoDataException(LocalizedFormats.EMPTY_POLYNOMIALS_COEFFICIENTS_ARRAY);
         }
-        while ((n > 1) && (c[n - 1] == 0)) {
+        while (n > 1 && c[n - 1] == 0) {
             --n;
         }
         this.coefficients = new double[n];
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/polynomials/PolynomialsUtils.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/polynomials/PolynomialsUtils.java
index 65f8134bc..b8c422ff3 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/polynomials/PolynomialsUtils.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/polynomials/PolynomialsUtils.java
@@ -301,7 +301,7 @@ public final class PolynomialsUtils {
             }
 
             final JacobiKey otherK = (JacobiKey) key;
-            return (v == otherK.v) && (w == otherK.w);
+            return v == otherK.v && w == otherK.w;
         }
     }
 
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/BracketingNthOrderBrentSolver.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/BracketingNthOrderBrentSolver.java
index 9ab59164f..5d8040ec0 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/BracketingNthOrderBrentSolver.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/BracketingNthOrderBrentSolver.java
@@ -210,7 +210,7 @@ public class BracketingNthOrderBrentSolver
             // check convergence of bracketing interval
             final double xTol = getAbsoluteAccuracy() +
                                 getRelativeAccuracy() * JdkMath.max(JdkMath.abs(xA), JdkMath.abs(xB));
-            if (((xB - xA) <= xTol) || (JdkMath.max(absYA, absYB) < getFunctionValueAccuracy())) {
+            if (xB - xA <= xTol || JdkMath.max(absYA, absYB) < getFunctionValueAccuracy()) {
                 switch (allowed) {
                 case ANY_SIDE :
                     return absYA < absYB ? xA : xB;
@@ -257,7 +257,7 @@ public class BracketingNthOrderBrentSolver
                 System.arraycopy(x, start, tmpX, start, end - start);
                 nextX = guessX(targetY, tmpX, y, start, end);
 
-                if (!((nextX > xA) && (nextX < xB))) {
+                if (!(nextX > xA && nextX < xB)) {
                     // the guessed root is not strictly inside of the tightest bracketing interval
 
                     // the guessed root is either not strictly inside the interval or it
@@ -274,7 +274,7 @@ public class BracketingNthOrderBrentSolver
                     // we need to do one more attempt
                     nextX = Double.NaN;
                 }
-            } while (Double.isNaN(nextX) && (end - start > 1));
+            } while (Double.isNaN(nextX) && end - start > 1);
 
             if (Double.isNaN(nextX)) {
                 // fall back to bisection
@@ -291,7 +291,7 @@ public class BracketingNthOrderBrentSolver
                 return nextX;
             }
 
-            if ((nbPoints > 2) && (end - start != nbPoints)) {
+            if (nbPoints > 2 && end - start != nbPoints) {
 
                 // we have been forced to ignore some points to keep bracketing,
                 // they are probably too far from the root, drop them from now on
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/FieldBracketingNthOrderBrentSolver.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/FieldBracketingNthOrderBrentSolver.java
index 31d973c14..87f787062 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/FieldBracketingNthOrderBrentSolver.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/FieldBracketingNthOrderBrentSolver.java
@@ -318,7 +318,7 @@ public class FieldBracketingNthOrderBrentSolver<T extends RealFieldElement<T>>
                 System.arraycopy(x, start, tmpX, start, end - start);
                 nextX = guessX(targetY, tmpX, y, start, end);
 
-                if (!((nextX.subtract(xA).getReal() > 0) && (nextX.subtract(xB).getReal() < 0))) {
+                if (!(nextX.subtract(xA).getReal() > 0 && nextX.subtract(xB).getReal() < 0)) {
                     // the guessed root is not strictly inside of the tightest bracketing interval
 
                     // the guessed root is either not strictly inside the interval or it
@@ -335,7 +335,7 @@ public class FieldBracketingNthOrderBrentSolver<T extends RealFieldElement<T>>
                     // we need to do one more attempt
                     nextX = nan;
                 }
-            } while (Double.isNaN(nextX.getReal()) && (end - start > 1));
+            } while (Double.isNaN(nextX.getReal()) && end - start > 1);
 
             if (Double.isNaN(nextX.getReal())) {
                 // fall back to bisection
@@ -353,7 +353,7 @@ public class FieldBracketingNthOrderBrentSolver<T extends RealFieldElement<T>>
                 return nextX;
             }
 
-            if ((nbPoints > 2) && (end - start != nbPoints)) {
+            if (nbPoints > 2 && end - start != nbPoints) {
 
                 // we have been forced to ignore some points to keep bracketing,
                 // they are probably too far from the root, drop them from now on
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/LaguerreSolver.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/LaguerreSolver.java
index 24afe0b7f..00ffaa8cd 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/LaguerreSolver.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/LaguerreSolver.java
@@ -242,8 +242,8 @@ public class LaguerreSolver extends AbstractPolynomialSolver {
         public boolean isRoot(double min, double max, Complex z) {
             if (isSequence(min, z.getReal(), max)) {
                 double tolerance = JdkMath.max(getRelativeAccuracy() * z.abs(), getAbsoluteAccuracy());
-                return (JdkMath.abs(z.getImaginary()) <= tolerance) ||
-                     (z.abs() <= getFunctionValueAccuracy());
+                return JdkMath.abs(z.getImaginary()) <= tolerance ||
+                     z.abs() <= getFunctionValueAccuracy();
             }
             return false;
         }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/UnivariateSolverUtils.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/UnivariateSolverUtils.java
index f6c9234f5..a4cb5e009 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/UnivariateSolverUtils.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/solvers/UnivariateSolverUtils.java
@@ -314,7 +314,7 @@ public final class UnivariateSolverUtils {
         double delta = 0;
 
         for (int numIterations = 0;
-             (numIterations < maximumIterations) && (a > lowerBound || b < upperBound);
+             numIterations < maximumIterations && (a > lowerBound || b < upperBound);
              ++numIterations) {
 
             final double previousA  = a;
@@ -398,7 +398,7 @@ public final class UnivariateSolverUtils {
     public static boolean isSequence(final double start,
                                      final double mid,
                                      final double end) {
-        return (start < mid) && (mid < end);
+        return start < mid && mid < end;
     }
 
     /**
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/HarmonicCurveFitter.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/HarmonicCurveFitter.java
index 08a3d107b..e0a42c7db 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/HarmonicCurveFitter.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/HarmonicCurveFitter.java
@@ -259,7 +259,7 @@ public final class HarmonicCurveFitter extends SimpleCurveFitter {
             double c1 = sy2 * sxz - sxy * syz;
             double c2 = sxy * sxz - sx2 * syz;
             double c3 = sx2 * sy2 - sxy * sxy;
-            if ((c1 / c2 < 0) || (c2 / c3 < 0)) {
+            if (c1 / c2 < 0 || c2 / c3 < 0) {
                 final int last = observations.length - 1;
                 // Range of the observations, assuming that the
                 // observations are sorted.
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/leastsquares/LevenbergMarquardtOptimizer.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/leastsquares/LevenbergMarquardtOptimizer.java
index a1f37bd06..c0751be8d 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/leastsquares/LevenbergMarquardtOptimizer.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/fitting/leastsquares/LevenbergMarquardtOptimizer.java
@@ -484,12 +484,12 @@ public class LevenbergMarquardtOptimizer implements LeastSquaresOptimizer {
                 if (ratio <= 0.25) {
                     double tmp =
                         (actRed < 0) ? (0.5 * dirDer / (dirDer + 0.5 * actRed)) : 0.5;
-                        if ((0.1 * currentCost >= previousCost) || (tmp < 0.1)) {
+                        if (0.1 * currentCost >= previousCost || tmp < 0.1) {
                             tmp = 0.1;
                         }
                         delta = tmp * JdkMath.min(delta, 10.0 * lmNorm);
                         lmPar /= tmp;
-                } else if ((lmPar == 0) || (ratio >= 0.75)) {
+                } else if (lmPar == 0 || ratio >= 0.75) {
                     delta = 2 * lmNorm;
                     lmPar *= 0.5;
                 }
@@ -885,7 +885,7 @@ public class LevenbergMarquardtOptimizer implements LeastSquaresOptimizer {
         // singular, then obtain a least squares solution
         int nSing = solvedCols;
         for (int j = 0; j < solvedCols; ++j) {
-            if ((lmDiag[j] == 0) && (nSing == solvedCols)) {
+            if (lmDiag[j] == 0 && nSing == solvedCols) {
                 nSing = j;
             }
             if (nSing < solvedCols) {
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/AbstractFieldMatrix.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/AbstractFieldMatrix.java
index 635d97060..dba9df559 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/AbstractFieldMatrix.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/AbstractFieldMatrix.java
@@ -367,7 +367,7 @@ public abstract class AbstractFieldMatrix<T extends FieldElement<T>>
         checkSubMatrixIndex(startRow, endRow, startColumn, endColumn);
         final int rowsCount    = endRow + 1 - startRow;
         final int columnsCount = endColumn + 1 - startColumn;
-        if ((destination.length < rowsCount) || (destination[0].length < columnsCount)) {
+        if (destination.length < rowsCount || destination[0].length < columnsCount) {
             throw new MatrixDimensionMismatchException(destination.length,
                                                        destination[0].length,
                                                        rowsCount,
@@ -407,8 +407,8 @@ public abstract class AbstractFieldMatrix<T extends FieldElement<T>>
         NullArgumentException, OutOfRangeException {
         // safety checks
         checkSubMatrixIndex(selectedRows, selectedColumns);
-        if ((destination.length < selectedRows.length) ||
-            (destination[0].length < selectedColumns.length)) {
+        if (destination.length < selectedRows.length ||
+            destination[0].length < selectedColumns.length) {
             throw new MatrixDimensionMismatchException(destination.length,
                                                        destination[0].length,
                                                        selectedRows.length,
@@ -480,8 +480,8 @@ public abstract class AbstractFieldMatrix<T extends FieldElement<T>>
         throws OutOfRangeException, MatrixDimensionMismatchException {
         checkRowIndex(row);
         final int nCols = getColumnDimension();
-        if ((matrix.getRowDimension() != 1) ||
-            (matrix.getColumnDimension() != nCols)) {
+        if (matrix.getRowDimension() != 1 ||
+            matrix.getColumnDimension() != nCols) {
             throw new MatrixDimensionMismatchException(matrix.getRowDimension(),
                                                        matrix.getColumnDimension(),
                                                        1, nCols);
@@ -512,8 +512,8 @@ public abstract class AbstractFieldMatrix<T extends FieldElement<T>>
         throws OutOfRangeException, MatrixDimensionMismatchException {
         checkColumnIndex(column);
         final int nRows = getRowDimension();
-        if ((matrix.getRowDimension() != nRows) ||
-            (matrix.getColumnDimension() != 1)) {
+        if (matrix.getRowDimension() != nRows ||
+            matrix.getColumnDimension() != 1) {
             throw new MatrixDimensionMismatchException(matrix.getRowDimension(),
                                                        matrix.getColumnDimension(),
                                                        nRows, 1);
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/AbstractRealMatrix.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/AbstractRealMatrix.java
index 5feb7e507..2f7e07366 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/AbstractRealMatrix.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/AbstractRealMatrix.java
@@ -364,7 +364,7 @@ public abstract class AbstractRealMatrix
         MatrixUtils.checkSubMatrixIndex(this, startRow, endRow, startColumn, endColumn);
         final int rowsCount    = endRow + 1 - startRow;
         final int columnsCount = endColumn + 1 - startColumn;
-        if ((destination.length < rowsCount) || (destination[0].length < columnsCount)) {
+        if (destination.length < rowsCount || destination[0].length < columnsCount) {
             throw new MatrixDimensionMismatchException(destination.length, destination[0].length,
                                                        rowsCount, columnsCount);
         }
@@ -409,8 +409,8 @@ public abstract class AbstractRealMatrix
         MatrixDimensionMismatchException {
         MatrixUtils.checkSubMatrixIndex(this, selectedRows, selectedColumns);
         final int nCols = selectedColumns.length;
-        if ((destination.length < selectedRows.length) ||
-            (destination[0].length < nCols)) {
+        if (destination.length < selectedRows.length ||
+            destination[0].length < nCols) {
             throw new MatrixDimensionMismatchException(destination.length, destination[0].length,
                                                        selectedRows.length, selectedColumns.length);
         }
@@ -480,8 +480,8 @@ public abstract class AbstractRealMatrix
         throws OutOfRangeException, MatrixDimensionMismatchException {
         MatrixUtils.checkRowIndex(this, row);
         final int nCols = getColumnDimension();
-        if ((matrix.getRowDimension() != 1) ||
-            (matrix.getColumnDimension() != nCols)) {
+        if (matrix.getRowDimension() != 1 ||
+            matrix.getColumnDimension() != nCols) {
             throw new MatrixDimensionMismatchException(matrix.getRowDimension(),
                                                        matrix.getColumnDimension(),
                                                        1, nCols);
@@ -511,8 +511,8 @@ public abstract class AbstractRealMatrix
         throws OutOfRangeException, MatrixDimensionMismatchException {
         MatrixUtils.checkColumnIndex(this, column);
         final int nRows = getRowDimension();
-        if ((matrix.getRowDimension() != nRows) ||
-            (matrix.getColumnDimension() != 1)) {
+        if (matrix.getRowDimension() != nRows ||
+            matrix.getColumnDimension() != 1) {
             throw new MatrixDimensionMismatchException(matrix.getRowDimension(),
                                                        matrix.getColumnDimension(),
                                                        nRows, 1);
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/Array2DRowFieldMatrix.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/Array2DRowFieldMatrix.java
index df6f56832..d10d82ed9 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/Array2DRowFieldMatrix.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/Array2DRowFieldMatrix.java
@@ -403,7 +403,7 @@ public class Array2DRowFieldMatrix<T extends FieldElement<T>>
     /** {@inheritDoc} */
     @Override
     public int getColumnDimension() {
-        return ((data == null) || (data[0] == null)) ? 0 : data[0].length;
+        return (data == null || data[0] == null) ? 0 : data[0].length;
     }
 
     /** {@inheritDoc} */
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/Array2DRowRealMatrix.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/Array2DRowRealMatrix.java
index b7f42fe69..e690201b1 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/Array2DRowRealMatrix.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/Array2DRowRealMatrix.java
@@ -338,7 +338,7 @@ public class Array2DRowRealMatrix extends AbstractRealMatrix implements Serializ
     /** {@inheritDoc} */
     @Override
     public int getColumnDimension() {
-        return ((data == null) || (data[0] == null)) ? 0 : data[0].length;
+        return (data == null || data[0] == null) ? 0 : data[0].length;
     }
 
     /** {@inheritDoc} */
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/ArrayFieldVector.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/ArrayFieldVector.java
index 4ff9a6f12..d7c5f6d8f 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/ArrayFieldVector.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/ArrayFieldVector.java
@@ -1105,11 +1105,11 @@ public class ArrayFieldVector<T extends FieldElement<T>> implements FieldVector<
     private void checkIndices(final int start, final int end)
         throws NumberIsTooSmallException, OutOfRangeException {
         final int dim = getDimension();
-        if ((start < 0) || (start >= dim)) {
+        if (start < 0 || start >= dim) {
             throw new OutOfRangeException(LocalizedFormats.INDEX, start, 0,
                                           dim - 1);
         }
-        if ((end < 0) || (end >= dim)) {
+        if (end < 0 || end >= dim) {
             throw new OutOfRangeException(LocalizedFormats.INDEX, end, 0,
                                           dim - 1);
         }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/BlockFieldMatrix.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/BlockFieldMatrix.java
index b98fb2aec..d13a57eb2 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/BlockFieldMatrix.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/BlockFieldMatrix.java
@@ -879,8 +879,8 @@ public class BlockFieldMatrix<T extends FieldElement<T>> extends AbstractFieldMa
         throws MatrixDimensionMismatchException, OutOfRangeException {
         checkRowIndex(row);
         final int nCols = getColumnDimension();
-        if ((matrix.getRowDimension() != 1) ||
-            (matrix.getColumnDimension() != nCols)) {
+        if (matrix.getRowDimension() != 1 ||
+            matrix.getColumnDimension() != nCols) {
             throw new MatrixDimensionMismatchException(matrix.getRowDimension(),
                                                        matrix.getColumnDimension(),
                                                        1, nCols);
@@ -963,8 +963,8 @@ public class BlockFieldMatrix<T extends FieldElement<T>> extends AbstractFieldMa
         throws MatrixDimensionMismatchException, OutOfRangeException {
         checkColumnIndex(column);
         final int nRows = getRowDimension();
-        if ((matrix.getRowDimension() != nRows) ||
-            (matrix.getColumnDimension() != 1)) {
+        if (matrix.getRowDimension() != nRows ||
+            matrix.getColumnDimension() != 1) {
             throw new MatrixDimensionMismatchException(matrix.getRowDimension(),
                                                        matrix.getColumnDimension(),
                                                        nRows, 1);
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/BlockRealMatrix.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/BlockRealMatrix.java
index cc5ce88f1..d176db670 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/BlockRealMatrix.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/BlockRealMatrix.java
@@ -890,8 +890,8 @@ public class BlockRealMatrix extends AbstractRealMatrix implements Serializable
         throws OutOfRangeException, MatrixDimensionMismatchException {
         MatrixUtils.checkRowIndex(this, row);
         final int nCols = getColumnDimension();
-        if ((matrix.getRowDimension() != 1) ||
-            (matrix.getColumnDimension() != nCols)) {
+        if (matrix.getRowDimension() != 1 ||
+            matrix.getColumnDimension() != nCols) {
             throw new MatrixDimensionMismatchException(matrix.getRowDimension(),
                                                        matrix.getColumnDimension(),
                                                        1, nCols);
@@ -974,8 +974,8 @@ public class BlockRealMatrix extends AbstractRealMatrix implements Serializable
         throws OutOfRangeException, MatrixDimensionMismatchException {
         MatrixUtils.checkColumnIndex(this, column);
         final int nRows = getRowDimension();
-        if ((matrix.getRowDimension() != nRows) ||
-            (matrix.getColumnDimension() != 1)) {
+        if (matrix.getRowDimension() != nRows ||
+            matrix.getColumnDimension() != 1) {
             throw new MatrixDimensionMismatchException(matrix.getRowDimension(),
                                                        matrix.getColumnDimension(),
                                                        nRows, 1);
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/ConjugateGradient.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/ConjugateGradient.java
index ed987e9b0..42479bf85 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/ConjugateGradient.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/ConjugateGradient.java
@@ -193,7 +193,7 @@ public class ConjugateGradient
                 z = m.operate(r);
             }
             final double rhoNext = r.dotProduct(z);
-            if (check && (rhoNext <= 0.)) {
+            if (check && rhoNext <= 0) {
                 final NonPositiveDefiniteOperatorException e;
                 e = new NonPositiveDefiniteOperatorException();
                 final ExceptionContext context = e.getContext();
@@ -208,7 +208,7 @@ public class ConjugateGradient
             }
             q = a.operate(p);
             final double pq = p.dotProduct(q);
-            if (check && (pq <= 0.)) {
+            if (check && pq <= 0) {
                 final NonPositiveDefiniteOperatorException e;
                 e = new NonPositiveDefiniteOperatorException();
                 final ExceptionContext context = e.getContext();
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/FieldLUDecomposition.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/FieldLUDecomposition.java
index 5a64854b9..a93dd6b9e 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/FieldLUDecomposition.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/FieldLUDecomposition.java
@@ -168,7 +168,7 @@ public class FieldLUDecomposition<T extends FieldElement<T>> {
      * @return the L matrix (or null if decomposed matrix is singular)
      */
     public FieldMatrix<T> getL() {
-        if ((cachedL == null) && !singular) {
+        if (cachedL == null && !singular) {
             final int m = pivot.length;
             cachedL = new Array2DRowFieldMatrix<>(field, m, m);
             for (int i = 0; i < m; ++i) {
@@ -188,7 +188,7 @@ public class FieldLUDecomposition<T extends FieldElement<T>> {
      * @return the U matrix (or null if decomposed matrix is singular)
      */
     public FieldMatrix<T> getU() {
-        if ((cachedU == null) && !singular) {
+        if (cachedU == null && !singular) {
             final int m = pivot.length;
             cachedU = new Array2DRowFieldMatrix<>(field, m, m);
             for (int i = 0; i < m; ++i) {
@@ -211,7 +211,7 @@ public class FieldLUDecomposition<T extends FieldElement<T>> {
      * @see #getPivot()
      */
     public FieldMatrix<T> getP() {
-        if ((cachedP == null) && !singular) {
+        if (cachedP == null && !singular) {
             final int m = pivot.length;
             cachedP = new Array2DRowFieldMatrix<>(field, m, m);
             for (int i = 0; i < m; ++i) {
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/LUDecomposition.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/LUDecomposition.java
index f2e170a23..b2360462f 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/LUDecomposition.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/LUDecomposition.java
@@ -169,7 +169,7 @@ public class LUDecomposition {
      * @return the L matrix (or null if decomposed matrix is singular)
      */
     public RealMatrix getL() {
-        if ((cachedL == null) && !singular) {
+        if (cachedL == null && !singular) {
             final int m = pivot.length;
             cachedL = MatrixUtils.createRealMatrix(m, m);
             for (int i = 0; i < m; ++i) {
@@ -189,7 +189,7 @@ public class LUDecomposition {
      * @return the U matrix (or null if decomposed matrix is singular)
      */
     public RealMatrix getU() {
-        if ((cachedU == null) && !singular) {
+        if (cachedU == null && !singular) {
             final int m = pivot.length;
             cachedU = MatrixUtils.createRealMatrix(m, m);
             for (int i = 0; i < m; ++i) {
@@ -212,7 +212,7 @@ public class LUDecomposition {
      * @see #getPivot()
      */
     public RealMatrix getP() {
-        if ((cachedP == null) && !singular) {
+        if (cachedP == null && !singular) {
             final int m = pivot.length;
             cachedP = MatrixUtils.createRealMatrix(m, m);
             for (int i = 0; i < m; ++i) {
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/MatrixUtils.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/MatrixUtils.java
index a7436c475..7c03e70ea 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/MatrixUtils.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/MatrixUtils.java
@@ -830,7 +830,7 @@ public final class MatrixUtils {
     public static void solveLowerTriangularSystem(RealMatrix rm, RealVector b)
         throws DimensionMismatchException, MathArithmeticException,
         NonSquareMatrixException {
-        if ((rm == null) || (b == null) || ( rm.getRowDimension() != b.getDimension())) {
+        if (rm == null || b == null || rm.getRowDimension() != b.getDimension()) {
             throw new DimensionMismatchException(
                     (rm == null) ? 0 : rm.getRowDimension(),
                     (b == null) ? 0 : b.getDimension());
@@ -875,7 +875,7 @@ public final class MatrixUtils {
     public static void solveUpperTriangularSystem(RealMatrix rm, RealVector b)
         throws DimensionMismatchException, MathArithmeticException,
         NonSquareMatrixException {
-        if ((rm == null) || (b == null) || ( rm.getRowDimension() != b.getDimension())) {
+        if (rm == null || b == null || rm.getRowDimension() != b.getDimension()) {
             throw new DimensionMismatchException(
                     (rm == null) ? 0 : rm.getRowDimension(),
                     (b == null) ? 0 : b.getDimension());
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/RealVector.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/RealVector.java
index e581b2ae5..1675b6bd7 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/RealVector.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/RealVector.java
@@ -205,11 +205,11 @@ public abstract class RealVector {
     protected void checkIndices(final int start, final int end)
         throws NumberIsTooSmallException, OutOfRangeException {
         final int dim = getDimension();
-        if ((start < 0) || (start >= dim)) {
+        if (start < 0 || start >= dim) {
             throw new OutOfRangeException(LocalizedFormats.INDEX, start, 0,
                                           dim - 1);
         }
-        if ((end < 0) || (end >= dim)) {
+        if (end < 0 || end >= dim) {
             throw new OutOfRangeException(LocalizedFormats.INDEX, end, 0,
                                           dim - 1);
         }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/SparseFieldVector.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/SparseFieldVector.java
index e6dd04b7f..8c0516437 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/SparseFieldVector.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/SparseFieldVector.java
@@ -540,11 +540,11 @@ public class SparseFieldVector<T extends FieldElement<T>> implements FieldVector
     private void checkIndices(final int start, final int end)
         throws NumberIsTooSmallException, OutOfRangeException {
         final int dim = getDimension();
-        if ((start < 0) || (start >= dim)) {
+        if (start < 0 || start >= dim) {
             throw new OutOfRangeException(LocalizedFormats.INDEX, start, 0,
                                           dim - 1);
         }
-        if ((end < 0) || (end >= dim)) {
+        if (end < 0 || end >= dim) {
             throw new OutOfRangeException(LocalizedFormats.INDEX, end, 0,
                                           dim - 1);
         }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/SymmLQ.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/SymmLQ.java
index cf1127cb8..dab79aff5 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/SymmLQ.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/linear/SymmLQ.java
@@ -546,7 +546,7 @@ public class SymmLQ
              */
             this.r1 = this.b.copy();
             this.y = this.m == null ? this.b.copy() : this.m.operate(this.r1);
-            if ((this.m != null) && this.check) {
+            if (this.m != null && this.check) {
                 checkSymmetry(this.m, this.r1, this.y, this.m.operate(this.y));
             }
 
@@ -789,7 +789,7 @@ public class SymmLQ
                 throw new SingularOperatorException();
             }
             rnorm = JdkMath.min(cgnorm, lqnorm);
-            hasConverged = (cgnorm <= epsx) || (cgnorm <= epsr);
+            hasConverged = cgnorm <= epsx || cgnorm <= epsr;
         }
 
         /**
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/ElkanKMeansPlusPlusClusterer.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/ElkanKMeansPlusPlusClusterer.java
index e5c28ec8e..5fb892fd9 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/ElkanKMeansPlusPlusClusterer.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/ElkanKMeansPlusPlusClusterer.java
@@ -338,15 +338,15 @@ public class ElkanKMeansPlusPlusClusterer<T extends Clusterable>
      * @param c index of the cluster
      * @return true if conditions above satisfied false otherwise
      */
-    private boolean isSkipNext(int partitions[],
-                               double[] u,
-                               double[][] l,
-                               double[][] dcc,
-                               int xi,
-                               int c) {
-        return (c == partitions[xi]) ||
-                (u[xi] <= l[xi][c]) ||
-                (u[xi] <= dcc[partitions[xi]][c]);
+    private static boolean isSkipNext(int partitions[],
+                                      double[] u,
+                                      double[][] l,
+                                      double[][] dcc,
+                                      int xi,
+                                      int c) {
+        return c == partitions[xi] ||
+               u[xi] <= l[xi][c] ||
+               u[xi] <= dcc[partitions[xi]][c];
     }
 
     /**
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ContinuousOutputModel.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ContinuousOutputModel.java
index d5363fc0b..9287e983d 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ContinuousOutputModel.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/ContinuousOutputModel.java
@@ -293,7 +293,7 @@ public void handleStep(final StepInterpolator interpolator, final boolean isLast
         final StepInterpolator sMed = steps.get(iMed);
         final double tMed = 0.5 * (sMed.getPreviousTime() + sMed.getCurrentTime());
 
-        if ((JdkMath.abs(tMed - tMin) < 1e-6) || (JdkMath.abs(tMax - tMed) < 1e-6)) {
+        if (JdkMath.abs(tMed - tMin) < 1e-6 || JdkMath.abs(tMax - tMed) < 1e-6) {
           // too close to the bounds, we estimate using a simple dichotomy
           index = iMed;
         } else {
@@ -325,7 +325,7 @@ public void handleStep(final StepInterpolator interpolator, final boolean isLast
 
       // now the table slice is very small, we perform an iterative search
       index = iMin;
-      while ((index <= iMax) && (locatePoint(time, steps.get(index)) > 0)) {
+      while (index <= iMax && locatePoint(time, steps.get(index)) > 0) {
         ++index;
       }
 
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/JacobianMatrices.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/JacobianMatrices.java
index eafab4d8b..8116840e4 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/JacobianMatrices.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/JacobianMatrices.java
@@ -347,7 +347,7 @@ public class JacobianMatrices {
             throws MaxCountExceededException, DimensionMismatchException {
 
             // Lazy initialization
-            if (dirtyParameter && (paramDim != 0)) {
+            if (dirtyParameter && paramDim != 0) {
                 jacobianProviders.add(new ParameterJacobianWrapper(jode, pode, selectedParameters));
                 dirtyParameter = false;
             }
@@ -380,7 +380,7 @@ public class JacobianMatrices {
                 int startIndex = stateDim * stateDim;
                 for (ParameterConfiguration param: selectedParameters) {
                     boolean found = false;
-                    for (int k = 0 ; (!found) && (k < jacobianProviders.size()); ++k) {
+                    for (int k = 0 ; !found && k < jacobianProviders.size(); ++k) {
                         final ParameterJacobianProvider provider = jacobianProviders.get(k);
                         if (provider.isSupported(param.getParameterName())) {
                             provider.computeParameterJacobian(t, y, yDot,
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/EventState.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/EventState.java
index 4ee8e1ffb..c505c90b7 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/EventState.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/events/EventState.java
@@ -284,9 +284,9 @@ public class EventState {
                                                                    baseRoot, tb, ta, AllowedSolution.LEFT_SIDE);
                     }
 
-                    if ((!Double.isNaN(previousEventTime)) &&
-                        (JdkMath.abs(root - ta) <= convergence) &&
-                        (JdkMath.abs(root - previousEventTime) <= convergence)) {
+                    if (!Double.isNaN(previousEventTime) &&
+                        JdkMath.abs(root - ta) <= convergence &&
+                        JdkMath.abs(root - previousEventTime) <= convergence) {
                         // we have either found nothing or found (again ?) a past event,
                         // retry the substep excluding this value, and taking care to have the
                         // required sign in case the g function is noisy around its zero and
@@ -308,7 +308,7 @@ public class EventState {
                             return true;
                         }
                     } else if (Double.isNaN(previousEventTime) ||
-                               (JdkMath.abs(previousEventTime - root) > convergence)) {
+                               JdkMath.abs(previousEventTime - root) > convergence) {
                         pendingEventTime = root;
                         pendingEvent = true;
                         return true;
@@ -354,7 +354,7 @@ public class EventState {
         t0 = t;
         g0 = handler.g(t, y);
 
-        if (pendingEvent && (JdkMath.abs(pendingEventTime - t) <= convergence)) {
+        if (pendingEvent && JdkMath.abs(pendingEventTime - t) <= convergence) {
             // force the sign to its value "just after the event"
             previousEventTime = t;
             g0Positive        = increasing;
@@ -382,7 +382,7 @@ public class EventState {
      */
     public boolean reset(final double t, final double[] y) {
 
-        if (!(pendingEvent && (JdkMath.abs(pendingEventTime - t) <= convergence))) {
+        if (!(pendingEvent && JdkMath.abs(pendingEventTime - t) <= convergence)) {
             return false;
         }
 
@@ -392,8 +392,8 @@ public class EventState {
         pendingEvent      = false;
         pendingEventTime  = Double.NaN;
 
-        return (nextAction == EventHandler.Action.RESET_STATE) ||
-               (nextAction == EventHandler.Action.RESET_DERIVATIVES);
+        return nextAction == EventHandler.Action.RESET_STATE ||
+               nextAction == EventHandler.Action.RESET_DERIVATIVES;
     }
 
     /** Local wrapper to propagate exceptions. */
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdaptiveStepsizeIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdaptiveStepsizeIntegrator.java
index f567be643..63338fb20 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdaptiveStepsizeIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/AdaptiveStepsizeIntegrator.java
@@ -201,7 +201,7 @@ public abstract class AdaptiveStepsizeIntegrator
    * ignore the value and compute the initial step size by itself)
    */
   public void setInitialStepSize(final double initialStepSize) {
-    if ((initialStepSize < minStep) || (initialStepSize > maxStep)) {
+    if (initialStepSize < minStep || initialStepSize > maxStep) {
       initialStep = -1.0;
     } else {
       initialStep = initialStepSize;
@@ -217,11 +217,11 @@ public abstract class AdaptiveStepsizeIntegrator
 
       mainSetDimension = equations.getPrimaryMapper().getDimension();
 
-      if ((vecAbsoluteTolerance != null) && (vecAbsoluteTolerance.length != mainSetDimension)) {
+      if (vecAbsoluteTolerance != null && vecAbsoluteTolerance.length != mainSetDimension) {
           throw new DimensionMismatchException(mainSetDimension, vecAbsoluteTolerance.length);
       }
 
-      if ((vecRelativeTolerance != null) && (vecRelativeTolerance.length != mainSetDimension)) {
+      if (vecRelativeTolerance != null && vecRelativeTolerance.length != mainSetDimension) {
           throw new DimensionMismatchException(mainSetDimension, vecRelativeTolerance.length);
       }
   }
@@ -261,7 +261,7 @@ public abstract class AdaptiveStepsizeIntegrator
       yDotOnScale2 += ratio * ratio;
     }
 
-    double h = ((yOnScale2 < 1.0e-10) || (yDotOnScale2 < 1.0e-10)) ?
+    double h = (yOnScale2 < 1.0e-10 || yDotOnScale2 < 1.0e-10) ?
                1.0e-6 : (0.01 * JdkMath.sqrt(yOnScale2 / yDotOnScale2));
     if (! forward) {
       h = -h;
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ClassicalRungeKuttaStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ClassicalRungeKuttaStepInterpolator.java
index 104fb6cd0..a7f95cb1f 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ClassicalRungeKuttaStepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ClassicalRungeKuttaStepInterpolator.java
@@ -98,7 +98,7 @@ class ClassicalRungeKuttaStepInterpolator
         final double coeffDot1     = oneMinusTheta * oneMinus2Theta;
         final double coeffDot23    = 2 * theta * oneMinusTheta;
         final double coeffDot4     = -theta * oneMinus2Theta;
-        if ((previousState != null) && (theta <= 0.5)) {
+        if (previousState != null && theta <= 0.5) {
             final double fourTheta2     = 4 * theta * theta;
             final double s             = theta * h / 6.0;
             final double coeff1        = s * ( 6 - 9 * theta + fourTheta2);
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince54StepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince54StepInterpolator.java
index 698d7c211..9bad2e2ef 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince54StepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince54StepInterpolator.java
@@ -202,7 +202,7 @@ class DormandPrince54StepInterpolator
     final double dot2 = 1 - twoTheta;
     final double dot3 = theta * (2 - 3 * theta);
     final double dot4 = twoTheta * (1 + theta * (twoTheta - 3));
-    if ((previousState != null) && (theta <= 0.5)) {
+    if (previousState != null && theta <= 0.5) {
         for (int i = 0; i < interpolatedState.length; ++i) {
             interpolatedState[i] =
                     previousState[i] + theta * h * (v1[i] + eta * (v2[i] + theta * (v3[i] + eta * v4[i])));
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince853StepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince853StepInterpolator.java
index 2acdbb838..1ecded0b7 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince853StepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/DormandPrince853StepInterpolator.java
@@ -366,7 +366,7 @@ class DormandPrince853StepInterpolator
     final double dot5 = theta2 * (3 + theta * (-12 + theta * (15 - 6 * theta)));
     final double dot6 = theta2 * theta * (4 + theta * (-15 + theta * (18 - 7 * theta)));
 
-    if ((previousState != null) && (theta <= 0.5)) {
+    if (previousState != null && theta <= 0.5) {
         for (int i = 0; i < interpolatedState.length; ++i) {
             interpolatedState[i] = previousState[i] +
                     theta * h * (v[0][i] +
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/EulerStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/EulerStepInterpolator.java
index 0bdcd4709..cb004408b 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/EulerStepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/EulerStepInterpolator.java
@@ -84,7 +84,7 @@ class EulerStepInterpolator
   @Override
   protected void computeInterpolatedStateAndDerivatives(final double theta,
                                           final double oneMinusThetaH) {
-      if ((previousState != null) && (theta <= 0.5)) {
+      if (previousState != null && theta <= 0.5) {
           for (int i = 0; i < interpolatedState.length; ++i) {
               interpolatedState[i] = previousState[i] + theta * h * yDotK[0][i];
           }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GillStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GillStepInterpolator.java
index 80c2a6919..0c14d565d 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GillStepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GillStepInterpolator.java
@@ -109,7 +109,7 @@ class GillStepInterpolator
     final double coeffDot3  = cDot23  * ONE_PLUS_INV_SQRT_2;
     final double coeffDot4  = theta * (twoTheta - 1);
 
-    if ((previousState != null) && (theta <= 0.5)) {
+    if (previousState != null && theta <= 0.5) {
         final double s         = theta * h / 6.0;
         final double c23       = s * (6 * theta - fourTheta2);
         final double coeff1    = s * (6 - 9 * theta + fourTheta2);
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GraggBulirschStoerIntegrator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GraggBulirschStoerIntegrator.java
index 254032af8..d73cc36b3 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GraggBulirschStoerIntegrator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GraggBulirschStoerIntegrator.java
@@ -224,7 +224,7 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
     this.maxIter     = (maxNumIter   <= 0) ? 2 : maxNumIter;
     this.maxChecks   = (maxNumChecks <= 0) ? 1 : maxNumChecks;
 
-    if ((stepsizeReductionFactor < 0.0001) || (stepsizeReductionFactor > 0.9999)) {
+    if (stepsizeReductionFactor < 0.0001 || stepsizeReductionFactor > 0.9999) {
       this.stabilityReduction = 0.5;
     } else {
       this.stabilityReduction = stepsizeReductionFactor;
@@ -258,25 +258,25 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
   public void setControlFactors(final double control1, final double control2,
                                 final double control3, final double control4) {
 
-    if ((control1 < 0.0001) || (control1 > 0.9999)) {
+    if (control1 < 0.0001 || control1 > 0.9999) {
       this.stepControl1 = 0.65;
     } else {
       this.stepControl1 = control1;
     }
 
-    if ((control2 < 0.0001) || (control2 > 0.9999)) {
+    if (control2 < 0.0001 || control2 > 0.9999) {
       this.stepControl2 = 0.94;
     } else {
       this.stepControl2 = control2;
     }
 
-    if ((control3 < 0.0001) || (control3 > 0.9999)) {
+    if (control3 < 0.0001 || control3 > 0.9999) {
       this.stepControl3 = 0.02;
     } else {
       this.stepControl3 = control3;
     }
 
-    if ((control4 < 1.0001) || (control4 > 999.9)) {
+    if (control4 < 1.0001 || control4 > 999.9) {
       this.stepControl4 = 4.0;
     } else {
       this.stepControl4 = control4;
@@ -309,17 +309,17 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
   public void setOrderControl(final int maximalOrder,
                               final double control1, final double control2) {
 
-    if ((maximalOrder <= 6) || (maximalOrder % 2 != 0)) {
+    if (maximalOrder <= 6 || maximalOrder % 2 != 0) {
       this.maxOrder = 18;
     }
 
-    if ((control1 < 0.0001) || (control1 > 0.9999)) {
+    if (control1 < 0.0001 || control1 > 0.9999) {
       this.orderControl1 = 0.8;
     } else {
       this.orderControl1 = control1;
     }
 
-    if ((control2 < 0.0001) || (control2 > 0.9999)) {
+    if (control2 < 0.0001 || control2 > 0.9999) {
       this.orderControl2 = 0.9;
     } else {
       this.orderControl2 = control2;
@@ -358,7 +358,7 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
 
     final int size = maxOrder / 2;
 
-    if ((sequence == null) || (sequence.length != size)) {
+    if (sequence == null || sequence.length != size) {
       // all arrays should be reallocated with the right size
       sequence        = new int[size];
       costPerStep     = new int[size];
@@ -404,7 +404,7 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
 
     this.useInterpolationError = useInterpolationErrorForControl;
 
-    if ((mudifControlParameter <= 0) || (mudifControlParameter >= 7)) {
+    if (mudifControlParameter <= 0 || mudifControlParameter >= 7) {
       this.mudif = 4;
     } else {
       this.mudif = mudifControlParameter;
@@ -483,7 +483,7 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
       computeDerivatives(t, yEnd, f[j+1]);
 
       // stability check
-      if (performTest && (j <= maxChecks) && (k < maxIter)) {
+      if (performTest && j <= maxChecks && k < maxIter) {
         double initialNorm = 0.0;
         for (int l = 0; l < scale.length; ++l) {
           final double ratio = f[0][l] / scale[l];
@@ -676,7 +676,7 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
             }
             error = JdkMath.sqrt(error / mainSetDimension);
 
-            if ((error > 1.0e15) || ((k > 1) && (error > maxError))) {
+            if (error > 1.0e15 || (k > 1 && error > maxError)) {
               // error is too big, we reduce the global step
               hNew   = JdkMath.abs(filterStep(stepSize * stabilityReduction, forward, false));
               reject = true;
@@ -697,7 +697,7 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
               switch (k - targetIter) {
 
               case -1 :
-                if ((targetIter > 1) && ! previousRejected) {
+                if (targetIter > 1 && !previousRejected) {
 
                   // check if we can stop iterations now
                   if (error <= 1.0) {
@@ -715,9 +715,9 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
                       reject = true;
                       loop   = false;
                       targetIter = k;
-                      if ((targetIter > 1) &&
-                          (costPerTimeUnit[targetIter-1] <
-                           orderControl1 * costPerTimeUnit[targetIter])) {
+                      if (targetIter > 1 &&
+                          costPerTimeUnit[targetIter-1] <
+                          orderControl1 * costPerTimeUnit[targetIter]) {
                         --targetIter;
                       }
                       hNew = optimalStep[targetIter];
@@ -740,9 +740,9 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
                     // we reject the step immediately
                     reject = true;
                     loop = false;
-                    if ((targetIter > 1) &&
-                        (costPerTimeUnit[targetIter-1] <
-                         orderControl1 * costPerTimeUnit[targetIter])) {
+                    if (targetIter > 1 &&
+                        costPerTimeUnit[targetIter-1] <
+                        orderControl1 * costPerTimeUnit[targetIter]) {
                       --targetIter;
                     }
                     hNew = optimalStep[targetIter];
@@ -753,9 +753,9 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
               case 1 :
                 if (error > 1.0) {
                   reject = true;
-                  if ((targetIter > 1) &&
-                      (costPerTimeUnit[targetIter-1] <
-                       orderControl1 * costPerTimeUnit[targetIter])) {
+                  if (targetIter > 1 &&
+                      costPerTimeUnit[targetIter-1] <
+                      orderControl1 * costPerTimeUnit[targetIter]) {
                     --targetIter;
                   }
                   hNew = optimalStep[targetIter];
@@ -764,7 +764,7 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
                 break;
 
               default :
-                if ((firstTime || isLastStep) && (error <= 1.0)) {
+                if ((firstTime || isLastStep) && error <= 1.0) {
                   loop = false;
                 }
                 break;
@@ -868,8 +868,8 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
           }
         } else {
           optimalIter = k - 1;
-          if ((k > 2) &&
-              (costPerTimeUnit[k-2] < orderControl1 * costPerTimeUnit[k-1])) {
+          if (k > 2 &&
+              costPerTimeUnit[k-2] < orderControl1 * costPerTimeUnit[k-1]) {
             optimalIter = k - 2;
           }
           if (costPerTimeUnit[k] < orderControl2 * costPerTimeUnit[optimalIter]) {
@@ -887,8 +887,8 @@ public class GraggBulirschStoerIntegrator extends AdaptiveStepsizeIntegrator {
           if (optimalIter <= k) {
             hNew = optimalStep[optimalIter];
           } else {
-            if ((k < targetIter) &&
-                (costPerTimeUnit[k] < orderControl2 * costPerTimeUnit[k-1])) {
+            if (k < targetIter &&
+                costPerTimeUnit[k] < orderControl2 * costPerTimeUnit[k-1]) {
               hNew = filterStep(optimalStep[k] * costPerStep[optimalIter+1] / costPerStep[k],
                                forward, false);
             } else {
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GraggBulirschStoerStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GraggBulirschStoerStepInterpolator.java
index 4950b0309..83ec8e512 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GraggBulirschStoerStepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/GraggBulirschStoerStepInterpolator.java
@@ -239,7 +239,7 @@ class GraggBulirschStoerStepInterpolator
    */
   public void computeCoefficients(final int mu, final double h) {
 
-    if ((polynomials == null) || (polynomials.length <= (mu + 4))) {
+    if (polynomials == null || polynomials.length <= (mu + 4)) {
       resetTables(mu + 4);
     }
 
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/HighamHall54StepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/HighamHall54StepInterpolator.java
index a5f50a965..527682894 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/HighamHall54StepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/HighamHall54StepInterpolator.java
@@ -79,7 +79,7 @@ class HighamHall54StepInterpolator
     final double bDot4 = theta * (375.0/16.0 + theta * (-625.0/8.0 + 125.0/2.0 * theta));
     final double bDot5 = theta * 5.0/8.0 * (2 * theta - 1);
 
-    if ((previousState != null) && (theta <= 0.5)) {
+    if (previousState != null && theta <= 0.5) {
         final double hTheta = h * theta;
         final double b0 = hTheta * (1.0 + theta * (-15.0/4.0  + theta * (16.0/3.0 - 5.0/2.0 * theta)));
         final double b2 = hTheta * (      theta * (459.0/32.0 + theta * (-243.0/8.0 + theta * 135.0/8.0)));
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/LutherStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/LutherStepInterpolator.java
index 31e607d72..c081b4bf7 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/LutherStepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/LutherStepInterpolator.java
@@ -129,7 +129,7 @@ class LutherStepInterpolator extends RungeKuttaStepInterpolator {
         final double coeffDot6 =      theta * ((833 - 343 * Q) / 150.0 + theta * ((-637 + 357 * Q) / 30.0 + theta * ((392 - 287 * Q) / 15.0 + theta * (-49 + 49 * Q) /  5.0)));
         final double coeffDot7 =      theta * (   3            /   5.0 + theta * (   -3                   + theta *     3));
 
-        if ((previousState != null) && (theta <= 0.5)) {
+        if (previousState != null && theta <= 0.5) {
 
             final double coeff1    =  1 + theta * ( -27            /   5.0 + theta * (   12                   + theta * ( -47            /  4.0 + theta *   21           /  5.0)));
             final double coeff2    =  0;
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/MidpointStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/MidpointStepInterpolator.java
index f5a618236..81081e647 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/MidpointStepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/MidpointStepInterpolator.java
@@ -90,7 +90,7 @@ class MidpointStepInterpolator
     final double coeffDot2 = 2 * theta;
     final double coeffDot1 = 1 - coeffDot2;
 
-    if ((previousState != null) && (theta <= 0.5)) {
+    if (previousState != null && theta <= 0.5) {
         final double coeff1    = theta * oneMinusThetaH;
         final double coeff2    = theta * theta * h;
         for (int i = 0; i < interpolatedState.length; ++i) {
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ThreeEighthesStepInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ThreeEighthesStepInterpolator.java
index ff577a3ae..95cfbe0fb 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ThreeEighthesStepInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/ThreeEighthesStepInterpolator.java
@@ -102,7 +102,7 @@ class ThreeEighthesStepInterpolator
       final double coeffDot2  = coeffDot3 * (5 - 6 * theta);
       final double coeffDot4  = coeffDot3 * (2 * theta - 1);
 
-      if ((previousState != null) && (theta <= 0.5)) {
+      if (previousState != null && theta <= 0.5) {
           final double s          = theta * h / 8.0;
           final double fourTheta2 = 4 * theta * theta;
           final double coeff1     = s * (8 - 15 * theta + 2 * fourTheta2);
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/linear/LinearObjectiveFunction.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/linear/LinearObjectiveFunction.java
index 53ee6c9a3..ca117d521 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/linear/LinearObjectiveFunction.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/linear/LinearObjectiveFunction.java
@@ -105,7 +105,7 @@ public class LinearObjectiveFunction
         }
         if (other instanceof LinearObjectiveFunction) {
             LinearObjectiveFunction rhs = (LinearObjectiveFunction) other;
-          return (constantTerm == rhs.constantTerm) && coefficients.equals(rhs.coefficients);
+          return constantTerm == rhs.constantTerm && coefficients.equals(rhs.coefficients);
         }
 
         return false;
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/linear/SimplexTableau.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/linear/SimplexTableau.java
index 26b0d5298..6bf68f937 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/linear/SimplexTableau.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/linear/SimplexTableau.java
@@ -288,8 +288,8 @@ class SimplexTableau {
             }
 
             // artificial variables
-            if ((constraint.getRelationship() == Relationship.EQ) ||
-                (constraint.getRelationship() == Relationship.GEQ)) {
+            if (constraint.getRelationship() == Relationship.EQ ||
+                constraint.getRelationship() == Relationship.GEQ) {
                 matrix.setEntry(0, getArtificialVariableOffset() + artificialVar, 1);
                 matrix.setEntry(row, getArtificialVariableOffset() + artificialVar++, 1);
                 matrix.setRowVector(0, matrix.getRowVector(0).subtract(matrix.getRowVector(row)));
@@ -546,7 +546,7 @@ class SimplexTableau {
         Integer row = null;
         for (int i = 0; i < getHeight(); i++) {
             final double entry = getEntry(i, col);
-            if (Precision.equals(entry, 1d, maxUlps) && (row == null)) {
+            if (Precision.equals(entry, 1d, maxUlps) && row == null) {
                 row = i;
             } else if (!Precision.equals(entry, 0d, maxUlps)) {
                 return null;
@@ -854,12 +854,12 @@ class SimplexTableau {
 
       if (other instanceof SimplexTableau) {
           SimplexTableau rhs = (SimplexTableau) other;
-          return (restrictToNonNegative  == rhs.restrictToNonNegative) &&
-                 (numDecisionVariables   == rhs.numDecisionVariables) &&
-                 (numSlackVariables      == rhs.numSlackVariables) &&
-                 (numArtificialVariables == rhs.numArtificialVariables) &&
-                 (epsilon                == rhs.epsilon) &&
-                 (maxUlps                == rhs.maxUlps) &&
+          return restrictToNonNegative  == rhs.restrictToNonNegative &&
+                 numDecisionVariables   == rhs.numDecisionVariables &&
+                 numSlackVariables      == rhs.numSlackVariables &&
+                 numArtificialVariables == rhs.numArtificialVariables &&
+                 epsilon                == rhs.epsilon &&
+                 maxUlps                == rhs.maxUlps &&
                  f.equals(rhs.f) &&
                  constraints.equals(rhs.constraints) &&
                  tableau.equals(rhs.tableau);
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/MultivariateFunctionPenaltyAdapter.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/MultivariateFunctionPenaltyAdapter.java
index bbeea7ea4..470de0dba 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/MultivariateFunctionPenaltyAdapter.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/MultivariateFunctionPenaltyAdapter.java
@@ -162,7 +162,7 @@ public class MultivariateFunctionPenaltyAdapter
     public double value(double[] point) {
 
         for (int i = 0; i < scale.length; ++i) {
-            if ((point[i] < lower[i]) || (point[i] > upper[i])) {
+            if (point[i] < lower[i] || point[i] > upper[i]) {
                 // bound violation starting at this component
                 double sum = 0;
                 for (int j = i; j < scale.length; ++j) {
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/special/BesselJ.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/special/BesselJ.java
index f0941f6a0..05906c082 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/special/BesselJ.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/special/BesselJ.java
@@ -254,8 +254,7 @@ public class BesselJ
         // Check for out of range arguments.
         // ---------------------------------------------------------------------
         final int magx = (int) x;
-        if ((nb > 0) && (x >= X_MIN) && (x <= X_MAX) && (alpha >= 0) &&
-            (alpha < 1)) {
+        if (nb > 0 && x >= X_MIN && x <= X_MAX && alpha >= 0 && alpha < 1) {
             // ---------------------------------------------------------------------
             // Initialize result array to zero.
             // ---------------------------------------------------------------------
@@ -291,7 +290,7 @@ public class BesselJ
                     tempb = -halfx * halfx;
                 }
                 b[0] = tempa + (tempa * tempb / alpem);
-                if ((x != 0) && (b[0] == 0)) {
+                if (x != 0 && b[0] == 0) {
                     ncalc = 0;
                 }
                 if (nb != 1) {
@@ -313,13 +312,13 @@ public class BesselJ
                                 tempa = 0;
                             }
                             b[n] = tempa + (tempa * tempb / alpem);
-                            if ((b[n] == 0) && (ncalc > n)) {
+                            if (b[n] == 0 && ncalc > n) {
                                 ncalc = n;
                             }
                         }
                     }
                 }
-            } else if ((x > 25.0) && (nb <= magx + 1)) {
+            } else if (x > 25.0 && nb <= magx + 1) {
                 // ---------------------------------------------------------------------
                 // Asymptotic series for X > 25
                 // ---------------------------------------------------------------------
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/ChiSquareTest.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/ChiSquareTest.java
index ab1bee3ae..eef09933f 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/ChiSquareTest.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/ChiSquareTest.java
@@ -204,7 +204,7 @@ public class ChiSquareTest {
         throws NotPositiveException, NotStrictlyPositiveException,
         DimensionMismatchException, OutOfRangeException, MaxCountExceededException {
 
-        if ((alpha <= 0) || (alpha > 0.5)) {
+        if (alpha <= 0 || alpha > 0.5) {
             throw new OutOfRangeException(LocalizedFormats.OUT_OF_BOUND_SIGNIFICANCE_LEVEL,
                                           alpha, 0, 0.5);
         }
@@ -382,7 +382,7 @@ public class ChiSquareTest {
         throws NullArgumentException, DimensionMismatchException,
         NotPositiveException, OutOfRangeException, MaxCountExceededException {
 
-        if ((alpha <= 0) || (alpha > 0.5)) {
+        if (alpha <= 0 || alpha > 0.5) {
             throw new OutOfRangeException(LocalizedFormats.OUT_OF_BOUND_SIGNIFICANCE_LEVEL,
                                           alpha, 0, 0.5);
         }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/GTest.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/GTest.java
index 27dd913fd..42273e625 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/GTest.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/GTest.java
@@ -238,7 +238,7 @@ public class GTest {
             throws NotPositiveException, NotStrictlyPositiveException,
             DimensionMismatchException, OutOfRangeException, MaxCountExceededException {
 
-        if ((alpha <= 0) || (alpha > 0.5)) {
+        if (alpha <= 0 || alpha > 0.5) {
             throw new OutOfRangeException(LocalizedFormats.OUT_OF_BOUND_SIGNIFICANCE_LEVEL,
                     alpha, 0, 0.5);
         }
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/KolmogorovSmirnovTest.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/KolmogorovSmirnovTest.java
index 05d7706ac..21b98100b 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/KolmogorovSmirnovTest.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/inference/KolmogorovSmirnovTest.java
@@ -337,7 +337,7 @@ public class KolmogorovSmirnovTest {
      * @throws NullArgumentException if {@code data} is null
      */
     public boolean kolmogorovSmirnovTest(ContinuousDistribution distribution, double[] data, double alpha) {
-        if ((alpha <= 0) || (alpha > 0.5)) {
+        if (alpha <= 0 || alpha > 0.5) {
             throw new OutOfRangeException(LocalizedFormats.OUT_OF_BOUND_SIGNIFICANCE_LEVEL, alpha, 0, 0.5);
         }
         return kolmogorovSmirnovTest(distribution, data) < alpha;
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/AbstractMultipleLinearRegression.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/AbstractMultipleLinearRegression.java
index 387bd7126..c23e7dbc3 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/AbstractMultipleLinearRegression.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/AbstractMultipleLinearRegression.java
@@ -220,7 +220,7 @@ public abstract class AbstractMultipleLinearRegression implements
      * is not larger than the number of columns + 1
      */
     protected void validateSampleData(double[][] x, double[] y) throws MathIllegalArgumentException {
-        if ((x == null) || (y == null)) {
+        if (x == null || y == null) {
             throw new NullArgumentException();
         }
         if (x.length != y.length) {
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/SimpleRegression.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/SimpleRegression.java
index 5c609c729..ada0c3b2a 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/SimpleRegression.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/regression/SimpleRegression.java
@@ -289,7 +289,7 @@ public class SimpleRegression implements UpdatingMultipleLinearRegression {
      */
     @Override
     public void addObservations(final double[][] x,final double[] y) throws ModelSpecificationException {
-        if ((x == null) || (y == null) || (x.length != y.length)) {
+        if (x == null || y == null || x.length != y.length) {
             throw new ModelSpecificationException(
                   LocalizedFormats.DIMENSIONS_MISMATCH_SIMPLE,
                   (x == null) ? 0 : x.length,
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/util/CompositeFormat.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/util/CompositeFormat.java
index 65bd1bcc0..1390dc1a1 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/util/CompositeFormat.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/util/CompositeFormat.java
@@ -172,9 +172,9 @@ public final class CompositeFormat {
 
         final int startIndex = pos.getIndex();
         final int endIndex = startIndex + expected.length();
-        if ((startIndex >= source.length()) ||
-            (endIndex > source.length()) ||
-            (source.substring(startIndex, endIndex).compareTo(expected) != 0)) {
+        if (startIndex >= source.length() ||
+            endIndex > source.length() ||
+            source.substring(startIndex, endIndex).compareTo(expected) != 0) {
             // set index back to start, error index should be the start index
             pos.setIndex(startIndex);
             pos.setErrorIndex(startIndex);
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/solvers/BaseSecantSolverAbstractTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/solvers/BaseSecantSolverAbstractTest.java
index 59cacb58b..f1f320c31 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/solvers/BaseSecantSolverAbstractTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/solvers/BaseSecantSolverAbstractTest.java
@@ -243,7 +243,7 @@ public abstract class BaseSecantSolverAbstractTest {
             return bracketing.solve(100, f, left, right, allowedSolution);
         } catch (ClassCastException cce) {
             double baseRoot = solver.solve(maxEval, f, left, right);
-            if ((baseRoot <= left) || (baseRoot >= right)) {
+            if (baseRoot <= left || baseRoot >= right) {
                 // the solution slipped out of interval
                 return Double.NaN;
             }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BiDiagonalTransformerTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BiDiagonalTransformerTest.java
index 2e6e0eadb..4d8c3086c 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BiDiagonalTransformerTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BiDiagonalTransformerTest.java
@@ -103,11 +103,11 @@ public class BiDiagonalTransformerTest {
         for (int i = 0; i < rows; ++i) {
             for (int j = 0; j < cols; ++j) {
                 if (rows < cols) {
-                    if ((i < j) || (i > j + 1)) {
+                    if (i < j || i > j + 1) {
                         Assert.assertEquals(0, m.getEntry(i, j), 1.0e-16);
                     }
                 } else {
-                    if ((i < j - 1) || (i > j)) {
+                    if (i < j - 1 || i > j) {
                         Assert.assertEquals(0, m.getEntry(i, j), 1.0e-16);
                     }
                 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BlockFieldMatrixTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BlockFieldMatrixTest.java
index 13b54cd3d..ecba48e83 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BlockFieldMatrixTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BlockFieldMatrixTest.java
@@ -656,7 +656,7 @@ public final class BlockFieldMatrixTest {
         m.setSubMatrix(sub.getData(), 2, 2);
         for (int i = 0; i < n; ++i) {
             for (int j = 0; j < n; ++j) {
-                if ((i < 2) || (i > n - 3) || (j < 2) || (j > n - 3)) {
+                if (i < 2 || i > n - 3 || j < 2 || j > n - 3) {
                     Assert.assertEquals(Dfp25.of(0), m.getEntry(i, j));
                 } else {
                     Assert.assertEquals(Dfp25.of(1), m.getEntry(i, j));
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BlockRealMatrixTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BlockRealMatrixTest.java
index 1a2db5faa..942567721 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BlockRealMatrixTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/BlockRealMatrixTest.java
@@ -569,7 +569,7 @@ public final class BlockRealMatrixTest {
         m.setSubMatrix(sub.getData(), 2, 2);
         for (int i = 0; i < n; ++i) {
             for (int j = 0; j < n; ++j) {
-                if ((i < 2) || (i > n - 3) || (j < 2) || (j > n - 3)) {
+                if (i < 2 || i > n - 3 || j < 2 || j > n - 3) {
                     Assert.assertEquals(0.0, m.getEntry(i, j), 0.0);
                 } else {
                     Assert.assertEquals(1.0, m.getEntry(i, j), 0.0);
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/TriDiagonalTransformerTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/TriDiagonalTransformerTest.java
index a8e35b00a..b983c6e9b 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/TriDiagonalTransformerTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/TriDiagonalTransformerTest.java
@@ -114,7 +114,7 @@ public class TriDiagonalTransformerTest {
         final int cols = m.getColumnDimension();
         for (int i = 0; i < rows; ++i) {
             for (int j = 0; j < cols; ++j) {
-                if ((i < j - 1) || (i > j + 1)) {
+                if (i < j - 1 || i > j + 1) {
                     Assert.assertEquals(0, m.getEntry(i, j), 1.0e-16);
                 }
             }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblem3.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblem3.java
index b92978643..352d395f7 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblem3.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestFieldProblem3.java
@@ -98,7 +98,7 @@ extends TestFieldProblemAbstract<T> {
         T E = t;
         T d = convert(0);
         T corr = convert(999.0);
-        for (int i = 0; (i < 50) && (corr.abs().getReal() > 1.0e-12); ++i) {
+        for (int i = 0; i < 50 && corr.abs().getReal() > 1.0e-12; ++i) {
             T f2  = e.multiply(E.sin());
             T f0  = d.subtract(f2);
             T f1  = e.multiply(E.cos()).subtract(1).negate();
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblem3.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblem3.java
index a15053ad1..5769ae468 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblem3.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/TestProblem3.java
@@ -88,7 +88,7 @@ public class TestProblem3
     double E = t;
     double d = 0;
     double corr = 999.0;
-    for (int i = 0; (i < 50) && (JdkMath.abs(corr) > 1.0e-12); ++i) {
+    for (int i = 0; i < 50 && JdkMath.abs(corr) > 1.0e-12; ++i) {
       double f2  = e * JdkMath.sin(E);
       double f0  = d - f2;
       double f1  = 1 - e * JdkMath.cos(E);
diff --git a/src/main/resources/checkstyle/checkstyle-suppressions-legacy.xml b/src/main/resources/checkstyle/checkstyle-suppressions-legacy.xml
index 1735adf5e..041435200 100644
--- a/src/main/resources/checkstyle/checkstyle-suppressions-legacy.xml
+++ b/src/main/resources/checkstyle/checkstyle-suppressions-legacy.xml
@@ -38,6 +38,21 @@
   <suppress checks="LocalFinalVariableName" files=".*[/\\]SingularValueDecomposition.java" />
   <suppress checks="LocalFinalVariableName" files=".*[/\\]gauss[/\\]Legendre.*" />
 
+  <!-- Sometimes parentheses can help readability -->
+  <suppress checks="UnnecessaryParentheses" files=".*[/\\]MullerSolver\.java$" lines="177-179" />
+  <suppress checks="UnnecessaryParentheses" files=".*[/\\]UnivariateSolverUtils\.java$" lines="123,387" />
+  <suppress checks="UnnecessaryParentheses" files=".*[/\\]SparseGradient\.java$" lines="385,396" />
+  <suppress checks="UnnecessaryParentheses" files=".*[/\\]DerivativeStructure\.java$" lines="468,481" />
+  <suppress checks="UnnecessaryParentheses" files=".*[/\\]SimpleCurveFitter\.java$" lines="321-322" />
+  <suppress checks="UnnecessaryParentheses" files=".*[/\\]LevenbergMarquardtOptimizer\.java$" lines="527,741" />
+  <suppress checks="UnnecessaryParentheses" files=".*[/\\]EnumeratedDistribution\.java$" lines="128-129" />
+  <suppress checks="UnnecessaryParentheses" files=".*[/\\]SimpleRegression\.java$" lines="823" />
+  <suppress checks="UnnecessaryParentheses" files=".*[/\\]MillerUpdatingRegression\.java$" lines="172-173" />
+  <suppress checks="UnnecessaryParentheses" files=".*[/\\]GraggBulirschStoerIntegrator\.java$" lines="638-639,679,767" />
+  <suppress checks="UnnecessaryParentheses" files=".*[/\\]MultiDirectionalTransform\.java$" lines="94" />
+  <suppress checks="UnnecessaryParentheses" files=".*[/\\]NelderMeadTransform\.java$" lines="109" />
+  <suppress checks="UnnecessaryParentheses" files=".*[/\\]BaseMultiStartMultivariateOptimizer\.java$" lines="190" />
+
   <!-- Be more lenient on tests. -->
   <suppress checks="Javadoc" files=".*[/\\]test[/\\].*" />
   <suppress checks="MultipleStringLiterals" files=".*[/\\]test[/\\].*" />


[commons-math] 15/23: Reorder properties to match commons RNG parent.

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit 7b18e4f6765f0853b88edbc0fc802484f9b22769
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Oct 13 12:59:51 2022 +0100

    Reorder properties to match commons RNG parent.
    
    Update commons.module.name to commons.automatic.module.name
---
 commons-math-core/pom.xml             |  2 +-
 commons-math-legacy-core/pom.xml      |  2 +-
 commons-math-legacy-exception/pom.xml |  2 +-
 commons-math-legacy/pom.xml           |  2 +-
 commons-math-neuralnet/pom.xml        |  2 +-
 commons-math-transform/pom.xml        |  2 +-
 pom.xml                               | 31 +++++++++++++++++--------------
 7 files changed, 23 insertions(+), 20 deletions(-)

diff --git a/commons-math-core/pom.xml b/commons-math-core/pom.xml
index ab98b3405..aaeb68e3c 100644
--- a/commons-math-core/pom.xml
+++ b/commons-math-core/pom.xml
@@ -33,7 +33,7 @@
 
   <properties>
     <!-- The Java Module System Name -->
-    <commons.module.name>org.apache.commons.math4.core</commons.module.name>
+    <commons.automatic.module.name>org.apache.commons.math4.core</commons.automatic.module.name>
     <!-- This value must reflect the current name of the base package. -->
     <commons.osgi.symbolicName>org.apache.commons.math4.core</commons.osgi.symbolicName>
     <!-- OSGi -->
diff --git a/commons-math-legacy-core/pom.xml b/commons-math-legacy-core/pom.xml
index 759734d64..04b039e2e 100644
--- a/commons-math-legacy-core/pom.xml
+++ b/commons-math-legacy-core/pom.xml
@@ -33,7 +33,7 @@
 
   <properties>
     <!-- The Java Module System Name -->
-    <commons.module.name>org.apache.commons.math4.legacy.core</commons.module.name>
+    <commons.automatic.module.name>org.apache.commons.math4.legacy.core</commons.automatic.module.name>
     <!-- This value must reflect the current name of the base package. -->
     <commons.osgi.symbolicName>org.apache.commons.math4.legacy.core</commons.osgi.symbolicName>
     <!-- OSGi -->
diff --git a/commons-math-legacy-exception/pom.xml b/commons-math-legacy-exception/pom.xml
index c34bfea71..6be98481a 100644
--- a/commons-math-legacy-exception/pom.xml
+++ b/commons-math-legacy-exception/pom.xml
@@ -33,7 +33,7 @@
 
   <properties>
     <!-- The Java Module System Name -->
-    <commons.module.name>org.apache.commons.math4.legacy.exception</commons.module.name>
+    <commons.automatic.module.name>org.apache.commons.math4.legacy.exception</commons.automatic.module.name>
     <!-- This value must reflect the current name of the base package. -->
     <commons.osgi.symbolicName>org.apache.commons.math4.legacy.exception</commons.osgi.symbolicName>
     <!-- OSGi -->
diff --git a/commons-math-legacy/pom.xml b/commons-math-legacy/pom.xml
index 630e38bf5..66673454f 100644
--- a/commons-math-legacy/pom.xml
+++ b/commons-math-legacy/pom.xml
@@ -33,7 +33,7 @@
 
   <properties>
     <!-- The Java Module System Name -->
-    <commons.module.name>org.apache.commons.math4.legacy</commons.module.name>
+    <commons.automatic.module.name>org.apache.commons.math4.legacy</commons.automatic.module.name>
     <!-- This value must reflect the current name of the base package. -->
     <commons.osgi.symbolicName>org.apache.commons.math4.legacy</commons.osgi.symbolicName>
     <!-- OSGi -->
diff --git a/commons-math-neuralnet/pom.xml b/commons-math-neuralnet/pom.xml
index 86498a3d4..914d00796 100644
--- a/commons-math-neuralnet/pom.xml
+++ b/commons-math-neuralnet/pom.xml
@@ -33,7 +33,7 @@
 
   <properties>
     <!-- The Java Module System Name -->
-    <commons.module.name>org.apache.commons.math4.neuralnet</commons.module.name>
+    <commons.automatic.module.name>org.apache.commons.math4.neuralnet</commons.automatic.module.name>
     <!-- This value must reflect the current name of the base package. -->
     <commons.osgi.symbolicName>org.apache.commons.math4.neuralnet</commons.osgi.symbolicName>
     <!-- OSGi -->
diff --git a/commons-math-transform/pom.xml b/commons-math-transform/pom.xml
index ae76e4a30..4f0cad171 100644
--- a/commons-math-transform/pom.xml
+++ b/commons-math-transform/pom.xml
@@ -33,7 +33,7 @@
 
   <properties>
     <!-- The Java Module System Name -->
-    <commons.module.name>org.apache.commons.math4.transform</commons.module.name>
+    <commons.automatic.module.name>org.apache.commons.math4.transform</commons.automatic.module.name>
     <!-- This value must reflect the current name of the base package. -->
     <commons.osgi.symbolicName>org.apache.commons.math4.transform</commons.osgi.symbolicName>
     <!-- OSGi -->
diff --git a/pom.xml b/pom.xml
index 3c6c98994..469c0aad1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -40,18 +40,18 @@
          name of the base package evolves with major release numbers
          (see "commons.osgi.symbolicName", below). -->
     <commons.componentid>math</commons.componentid>
-    <!-- The Java Module System Name -->
-    <commons.module.name>org.apache.commons.math4</commons.module.name>
+    <!-- OSGi -->
     <!-- This value must reflect the current name of the base package. -->
     <commons.osgi.symbolicName>org.apache.commons.math4</commons.osgi.symbolicName>
-    <!-- OSGi -->
     <commons.osgi.export>org.apache.commons.math4</commons.osgi.export>
+    <!-- The Java Module System Name -->
+    <commons.automatic.module.name>org.apache.commons.math4</commons.automatic.module.name>
     <!-- This flag should only be true in the dist-archive module. -->
     <commons.release.isDistModule>false</commons.release.isDistModule>
     <!-- do not use snapshot suffix here -->
     <commons.release.version>4.0</commons.release.version>
-    <commons.release.desc>(requires Java 8+)</commons.release.desc>
     <commons.rc.version>RC1</commons.rc.version>
+    <commons.release.desc>(requires Java 8+)</commons.release.desc>
     <commons.binary.suffix>-bin</commons.binary.suffix>
 
     <commons.jira.id>MATH</commons.jira.id>
@@ -71,16 +71,16 @@
     <!-- Multi-module support fixed in commons-parent 55 -->
     <cyclonedx.skip>true</cyclonedx.skip>
 
-    <!-- Increase from commons-parent -->
-    <commons.jacoco.methodRatio>1.00</commons.jacoco.methodRatio>
-    <!-- Set to true when coverage goals are achieved -->
-    <commons.jacoco.haltOnFailure>false</commons.jacoco.haltOnFailure>
-
     <!-- Fix to avoid JXR 3.0.0 forking the lifecycle phase 'compile' during site report
        jxr:aggregate. If compile is forked, the dist-archive build fails when attempting
        to collect the artifacts from other modules. -->
     <commons.jxr.version>2.5</commons.jxr.version>
 
+    <!-- Increase from commons-parent -->
+    <commons.jacoco.methodRatio>1.00</commons.jacoco.methodRatio>
+    <!-- Set to true when coverage goals are achieved -->
+    <commons.jacoco.haltOnFailure>false</commons.jacoco.haltOnFailure>
+
     <commons.site.path>math</commons.site.path>
     <commons.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-math</commons.scmPubUrl>
     <commons.scmPubCheckoutDirectory>site-content</commons.scmPubCheckoutDirectory>
@@ -90,10 +90,6 @@
     <math.jgit.buildnumber.version>1.2.10</math.jgit.buildnumber.version>
     <implementation.build>${git.revision}; ${maven.build.timestamp}</implementation.build>
 
-    <!-- Workaround to avoid the SVN site checkout in all modules.
-         This flag should be deactivated by child modules. -->
-    <perform.site.checkout>true</perform.site.checkout>
-
     <!--
         Override so that "mvn commons:download-page" will generates a web page
         referring to the files created by the "dist-archive" module.
@@ -102,7 +98,13 @@
     <commons.release.name>commons-math4-${project.version}</commons.release.name>
     <!-- Java8+ requires additional Javadoc qualifier for scripts such as MathJax -->
     <allowscript.javadoc.qualifier>--allow-script-in-comments</allowscript.javadoc.qualifier>
+    <!-- Check for all javadoc errors -->
     <doclint.javadoc.qualifier>-Xdoclint:all</doclint.javadoc.qualifier>
+
+    <!-- Workaround to avoid the SVN site checkout in all modules.
+         This flag should be deactivated by child modules. -->
+    <perform.site.checkout>true</perform.site.checkout>
+
   </properties>
 
   <modules> <!-- Do not change the ordering of the 4 blocks below. -->
@@ -435,7 +437,8 @@
         <configuration>
           <archive combine.children="append">
             <manifestEntries>
-              <Automatic-Module-Name>${commons.module.name}</Automatic-Module-Name>
+              <!-- Java 9 -->
+              <Automatic-Module-Name>${commons.automatic.module.name}</Automatic-Module-Name>
             </manifestEntries>
           </archive>
         </configuration>


[commons-math] 23/23: Use mvn for README contributing build goal

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit b72c0945a60ec5b1279c0a770faadfa157aa9acf
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Oct 13 13:37:45 2022 +0100

    Use mvn for README contributing build goal
---
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 0330cdc8f..cad8b9d7f 100644
--- a/README.md
+++ b/README.md
@@ -95,7 +95,7 @@ There are some guidelines which will make applying PRs easier for us:
 + No tabs! Please use spaces for indentation.
 + Respect the code style.
 + Create minimal diffs - disable on save actions like reformat source code or organize imports. If you feel the source code should be reformatted create a separate PR for this change.
-+ Provide JUnit tests for your changes and make sure your changes don't break any existing tests by running ```mvn clean test```.
++ Provide JUnit tests for your changes and make sure your changes don't break any existing tests by running ```mvn```.
 
 If you plan to contribute on a regular basis, please consider filing a [contributor license agreement](https://www.apache.org/licenses/#clas).
 You can learn more about contributing via GitHub in our [contribution guidelines](CONTRIBUTING.md).


[commons-math] 08/23: Drop junit 5.7.2 for 5.9.0 in commons parent

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit 8d4381b75a333fc2609aea806aa07484c23c82c9
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Oct 13 11:44:05 2022 +0100

    Drop junit 5.7.2 for 5.9.0 in commons parent
---
 pom.xml | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/pom.xml b/pom.xml
index 012f0721b..9af24ced8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -69,7 +69,6 @@
     <math.commons.geometry.version>1.0</math.commons.geometry.version>
     <math.commons.statistics.version>1.0-SNAPSHOT</math.commons.statistics.version>
     <math.commons.math3.version>3.6.1</math.commons.math3.version>
-    <math.junit5.version>5.7.2</math.junit5.version>
     <math.surefire.version>3.0.0-M5</math.surefire.version>
     <math.antrun.version>1.8</math.antrun.version>
     <!-- Workaround to avoid duplicating config files. -->
@@ -266,14 +265,12 @@
     <dependency>
       <groupId>org.junit.jupiter</groupId>
       <artifactId>junit-jupiter</artifactId>
-      <version>${math.junit5.version}</version>
       <scope>test</scope>
     </dependency>
 
     <dependency>
       <groupId>org.junit.vintage</groupId>
       <artifactId>junit-vintage-engine</artifactId>
-      <version>${math.junit5.version}</version>
       <scope>test</scope>
     </dependency>
 


[commons-math] 18/23: Remove redundant properties and dependency management

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit c20a450060a768c97cf2d739a1b4f15b39d87759
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Oct 13 13:12:24 2022 +0100

    Remove redundant properties and dependency management
---
 commons-math-examples/pom.xml | 28 +++-------------------------
 1 file changed, 3 insertions(+), 25 deletions(-)

diff --git a/commons-math-examples/pom.xml b/commons-math-examples/pom.xml
index b4ef6e47a..ae8844873 100644
--- a/commons-math-examples/pom.xml
+++ b/commons-math-examples/pom.xml
@@ -48,16 +48,12 @@
     <math.parent.dir>${basedir}/..</math.parent.dir>
     <math.jira.component>examples</math.jira.component>
 
-    <math.version>4.0-SNAPSHOT</math.version>
-    <math.picocli.version>3.9.5</math.picocli.version>
-    <math.rng.version>1.4</math.rng.version>
-    <math.geometry.version>1.0</math.geometry.version>
     <math.imaging.version>1.0-alpha3</math.imaging.version>
+    <math.picocli.version>3.9.5</math.picocli.version>
 
     <!-- Disable JApiCmp failures (but keep the report). The examples API is allowed to change. -->
     <commons.japicmp.breakBuildOnBinaryIncompatibleModifications>false</commons.japicmp.breakBuildOnBinaryIncompatibleModifications>
     <commons.japicmp.breakBuildOnSourceIncompatibleModifications>false</commons.japicmp.breakBuildOnSourceIncompatibleModifications>
-    <math.jira.component>examples</math.jira.component>
   </properties>
 
   <dependencyManagement>
@@ -66,31 +62,13 @@
       <dependency>
         <groupId>org.apache.commons</groupId>
         <artifactId>commons-math4-neuralnet</artifactId>
-        <version>${math.version}</version>
+        <version>${project.version}</version>
       </dependency>
 
       <dependency>
         <groupId>org.apache.commons</groupId>
         <artifactId>commons-math4-legacy</artifactId>
-        <version>${math.version}</version>
-      </dependency>
-
-      <dependency>
-        <groupId>org.apache.commons</groupId>
-        <artifactId>commons-rng-client-api</artifactId>
-        <version>${math.rng.version}</version>
-      </dependency>
-
-      <dependency>
-        <groupId>org.apache.commons</groupId>
-        <artifactId>commons-rng-simple</artifactId>
-        <version>${math.rng.version}</version>
-      </dependency>
-
-      <dependency>
-        <groupId>org.apache.commons</groupId>
-        <artifactId>commons-geometry-euclidean</artifactId>
-        <version>${math.geometry.version}</version>
+        <version>${project.version}</version>
       </dependency>
 
       <dependency>


[commons-math] 14/23: Remove javadoc links added by commons parent

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit cff0c9b4b43a8e89bcef66146495414d2e1af43e
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Oct 13 12:48:27 2022 +0100

    Remove javadoc links added by commons parent
---
 pom.xml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/pom.xml b/pom.xml
index b904ec3bd..3c6c98994 100644
--- a/pom.xml
+++ b/pom.xml
@@ -421,6 +421,10 @@
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-javadoc-plugin</artifactId>
         <configuration>
+          <!-- Java API links configured in commons-parent create redirect warnings on JDK 17.
+            The links are not required as detectJavaApiLink=true (default). -->
+          <links combine.self="override">
+          </links>
           <!--  Enable MathJax -->
           <additionalOptions>${doclint.javadoc.qualifier} ${allowscript.javadoc.qualifier} -header '&lt;script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/${math.mathjax.version}/MathJax.js?config=TeX-AMS-MML_HTMLorMML"&gt;&lt;/script&gt;'</additionalOptions>
         </configuration>
@@ -551,6 +555,10 @@
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-javadoc-plugin</artifactId>
         <configuration>
+          <!-- Java API links configured in commons-parent create redirect warnings on JDK 17.
+            The links are not required as detectJavaApiLink=true (default). -->
+          <links combine.self="override">
+          </links>
           <!--  Enable MathJax -->
           <additionalOptions>${doclint.javadoc.qualifier} ${allowscript.javadoc.qualifier} -header '&lt;script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/${math.mathjax.version}/MathJax.js?config=TeX-AMS-MML_HTMLorMML"&gt;&lt;/script&gt;'</additionalOptions>
         </configuration>


[commons-math] 03/23: Update fixed seed test

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit bc9e8bd272585861c2779941d044e89179d240da
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Oct 13 11:00:09 2022 +0100

    Update fixed seed test
    
    Use random seed and allow test reruns to pass the sampler.
---
 .../legacy/distribution/EnumeratedRealDistributionTest.java    | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/distribution/EnumeratedRealDistributionTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/distribution/EnumeratedRealDistributionTest.java
index a386e4dca..6e3455a04 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/distribution/EnumeratedRealDistributionTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/distribution/EnumeratedRealDistributionTest.java
@@ -169,7 +169,7 @@ public class EnumeratedRealDistributionTest {
     public void testSample() {
         final int n = 1000000;
         final ContinuousDistribution.Sampler sampler =
-            testDistribution.createSampler(RandomSource.WELL_1024_A.create(-123456789));
+            testDistribution.createSampler(RandomSource.XO_RO_SHI_RO_128_PP.create());
         final double[] samples = AbstractRealDistribution.sample(n, sampler);
         Assert.assertEquals(n, samples.length);
         double sum = 0;
@@ -178,10 +178,10 @@ public class EnumeratedRealDistributionTest {
             sum += samples[i];
             sumOfSquares += samples[i] * samples[i];
         }
-        Assert.assertEquals(testDistribution.getMean(),
-                sum / n, 1e-2);
-        Assert.assertEquals(testDistribution.getVariance(),
-                sumOfSquares / n - JdkMath.pow(sum / n, 2), 1e-2);
+        final double mean = testDistribution.getMean();
+        Assert.assertEquals("Mean", mean, sum / n, mean * 1e-2);
+        final double var = testDistribution.getVariance();
+        Assert.assertEquals("Variance", var, sumOfSquares / n - JdkMath.pow(sum / n, 2), var * 1e-2);
     }
 
     @Test


[commons-math] 06/23: Remove trailing whitespace

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit 5a8234a2fe145818a1867b2531533120cf991894
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Oct 13 11:38:37 2022 +0100

    Remove trailing whitespace
---
 .../interpolation/LoessInterpolatorTest.java       |  2 +-
 .../legacy/analysis/solvers/MullerSolverTest.java  |  2 +-
 .../math4/legacy/optim/SimplePointCheckerTest.java |  2 +-
 .../MultivariateFunctionPenaltyAdapterTest.java    |  4 +-
 .../commons/math4/legacy/stat/FrequencyTest.java   |  6 +-
 .../descriptive/rank/PSquarePercentileTest.java    |  2 +-
 .../apache/commons/math4/neuralnet/Network.java    |  2 +-
 src/changes/changes.xml                            | 92 +++++++++++-----------
 .../resources/checkstyle/checkstyle-legacy.xml     |  2 +-
 src/site/site.xml                                  |  4 +-
 src/site/xdoc/developers.xml                       | 32 ++++----
 src/site/xdoc/index.xml                            |  4 +-
 src/site/xdoc/mail-lists.xml                       | 12 +--
 src/site/xdoc/proposal.xml                         | 30 +++----
 src/site/xdoc/userguide/analysis.xml               | 14 ++--
 src/site/xdoc/userguide/complex.xml                |  2 +-
 src/site/xdoc/userguide/exceptions.xml             |  2 +-
 src/site/xdoc/userguide/filter.xml                 | 30 +++----
 src/site/xdoc/userguide/fraction.xml               |  6 +-
 src/site/xdoc/userguide/genetics.xml               | 28 +++----
 src/site/xdoc/userguide/geometry.xml               |  2 +-
 src/site/xdoc/userguide/index.xml                  | 36 ++++-----
 src/site/xdoc/userguide/linear.xml                 | 14 ++--
 src/site/xdoc/userguide/ml.xml                     | 24 +++---
 src/site/xdoc/userguide/ode.xml                    |  4 +-
 src/site/xdoc/userguide/optimization.xml           |  2 +-
 src/site/xdoc/userguide/overview.xml               | 30 +++----
 src/site/xdoc/userguide/random.xml                 |  4 +-
 src/site/xdoc/userguide/special.xml                |  6 +-
 src/site/xdoc/userguide/stat.xml                   | 78 +++++++++---------
 src/site/xdoc/userguide/transform.xml              |  2 +-
 src/site/xdoc/userguide/utilities.xml              | 28 +++----
 .../userguide/ClusterAlgorithmComparison.java      | 52 ++++++------
 .../commons/math4/userguide/ExampleUtils.java      | 10 +--
 .../math4/userguide/FastMathTestPerformance.java   |  6 +-
 .../LowDiscrepancyGeneratorComparison.java         | 44 +++++------
 .../math4/userguide/filter/CannonballExample.java  | 50 ++++++------
 .../userguide/filter/ConstantVoltageExample.java   | 36 ++++-----
 .../userguide/genetics/HelloWorldExample.java      | 16 ++--
 .../userguide/genetics/ImageEvolutionExample.java  | 16 ++--
 .../commons/math4/userguide/genetics/Polygon.java  | 14 ++--
 .../userguide/genetics/PolygonChromosome.java      |  4 +-
 .../userguide/genetics/RandomPolygonMutation.java  |  4 +-
 src/userguide/pom.xml                              |  6 +-
 44 files changed, 383 insertions(+), 383 deletions(-)

diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/interpolation/LoessInterpolatorTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/interpolation/LoessInterpolatorTest.java
index 61aa3f1b8..dd7f6fbb8 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/interpolation/LoessInterpolatorTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/interpolation/LoessInterpolatorTest.java
@@ -322,7 +322,7 @@ public class LoessInterpolatorTest {
             Assert.assertEquals(yref[i], res[i], delta);
         }
     }
-        
+
     private void generateSineData(double[] xval, double[] yval, double xnoise, double ynoise) {
         double dx = 2 * JdkMath.PI / xval.length;
         double x = 0;
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/solvers/MullerSolverTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/solvers/MullerSolverTest.java
index 40f26ce49..52380cfcb 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/solvers/MullerSolverTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/solvers/MullerSolverTest.java
@@ -109,7 +109,7 @@ public final class MullerSolverTest {
         UnivariateFunction f = new Expm1();
         UnivariateSolver solver = new MullerSolver();
         double min;
-        double max; 
+        double max;
         double expected;
         double result;
         double tolerance;
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/optim/SimplePointCheckerTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/optim/SimplePointCheckerTest.java
index e231655b0..b13df8e9f 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/optim/SimplePointCheckerTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/optim/SimplePointCheckerTest.java
@@ -23,7 +23,7 @@ import org.junit.Assert;
 public class SimplePointCheckerTest {
     @Test(expected=NotStrictlyPositiveException.class)
     public void testIterationCheckPrecondition() {
-        new SimplePointChecker<PointValuePair>(1e-1, 1e-2, 0);
+        new SimplePointChecker<>(1e-1, 1e-2, 0);
     }
 
     @Test
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/MultivariateFunctionPenaltyAdapterTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/MultivariateFunctionPenaltyAdapterTest.java
index 889aba907..a37baab43 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/MultivariateFunctionPenaltyAdapterTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/MultivariateFunctionPenaltyAdapterTest.java
@@ -83,7 +83,7 @@ public class MultivariateFunctionPenaltyAdapterTest {
                                                       biQuadratic.getUpper(),
                                                       1000.0, new double[] { 100.0, 100.0 });
 
-        SimplexOptimizer optimizer = new SimplexOptimizer(new SimplePointChecker<PointValuePair>(1.0e-11, 1.0e-20));
+        SimplexOptimizer optimizer = new SimplexOptimizer(new SimplePointChecker<>(1.0e-11, 1.0e-20));
 
         final PointValuePair optimum
             = optimizer.optimize(new MaxEval(600),
@@ -133,7 +133,7 @@ public class MultivariateFunctionPenaltyAdapterTest {
                                                        biQuadratic.getUpper(),
                                                        1000.0, new double[] { 100.0, 100.0 });
 
-        SimplexOptimizer optimizer = new SimplexOptimizer(new SimplePointChecker<>(1.0e-10, 1.0e-20));
+        SimplexOptimizer optimizer = new SimplexOptimizer(new SimplePointChecker<PointValuePair>(1.0e-10, 1.0e-20));
 
         final PointValuePair optimum
             = optimizer.optimize(new MaxEval(400),
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/stat/FrequencyTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/stat/FrequencyTest.java
index 6b957db7e..30f7f329e 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/stat/FrequencyTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/stat/FrequencyTest.java
@@ -86,7 +86,7 @@ public final class FrequencyTest {
         Assert.assertEquals("-2 cum pct", 0, fInteger.getCumPct(-2), TOLERANCE);
         Assert.assertEquals("10 cum pct", 1, fInteger.getCumPct(10), TOLERANCE);
 
-        fString = new Frequency<String>(String.CASE_INSENSITIVE_ORDER);
+        fString = new Frequency<>(String.CASE_INSENSITIVE_ORDER);
         fString.addValue("one");
         fString.addValue("One");
         fString.addValue("oNe");
@@ -260,10 +260,10 @@ public final class FrequencyTest {
         Assert.assertEquals(1, f.getCount(ONE_LONG));
         Assert.assertEquals(0, f.getCount(TWO_LONG));
 
-        Frequency<Long> g = new Frequency<>();
+        Frequency<Long> g = new Frequency<Long>();
         g.addValue(TWO_LONG);
 
-        Frequency<Long> h = new Frequency<>();
+        Frequency<Long> h = new Frequency<Long>();
         h.addValue(THREE_LONG);
 
         List<Frequency<Long>> coll = new ArrayList<>();
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/stat/descriptive/rank/PSquarePercentileTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/stat/descriptive/rank/PSquarePercentileTest.java
index fe399c8e5..cd2687fbb 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/stat/descriptive/rank/PSquarePercentileTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/stat/descriptive/rank/PSquarePercentileTest.java
@@ -387,7 +387,7 @@ public class PSquarePercentileTest extends
 
     @Test(expected = MathIllegalArgumentException.class)
     public void testInitial() {
-        PSquarePercentile.newMarkers(new ArrayList<Double>(), 0.5);
+        PSquarePercentile.newMarkers(new ArrayList<>(), 0.5);
         Assert.fail();
     }
 
diff --git a/commons-math-neuralnet/src/main/java/org/apache/commons/math4/neuralnet/Network.java b/commons-math-neuralnet/src/main/java/org/apache/commons/math4/neuralnet/Network.java
index b01826147..38b33567e 100644
--- a/commons-math-neuralnet/src/main/java/org/apache/commons/math4/neuralnet/Network.java
+++ b/commons-math-neuralnet/src/main/java/org/apache/commons/math4/neuralnet/Network.java
@@ -183,7 +183,7 @@ public class Network
         }
 
         neuronMap.put(id, new Neuron(id, features.clone()));
-        linkMap.put(id, new HashSet<Long>());
+        linkMap.put(id, new HashSet<>());
 
         if (id > nextId.get()) {
             nextId.set(id);
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index fdff0ca37..44d534a8f 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -36,7 +36,7 @@ The <action> type attribute can be add,update,fix,remove.
 -->
 
 <!-- NOTE:
-The description attribute entries below are specially formatted 
+The description attribute entries below are specially formatted
 so as to improve the layout of the generated text release notes.
 
 The parsing process removes all line feeds, replacing them with a single space.
@@ -477,7 +477,7 @@ Caveat:
       <action dev="tn" type="add" issue="MATH-1039" due-to="Aleksei Dievskii">
         Added logDensity(double) to RealDistribution and logProbability(int)
         to IntegerDistribution interface. The implementations have already been
-        updated in release 3.3. 
+        updated in release 3.3.
       </action>
       <action dev="tn" type="update" issue="MATH-1155">
         WELL type pseudo-random number generators have been refactored:
@@ -577,7 +577,7 @@ Users are encouraged to upgrade to this version as this release not
         Fixed potential race condition in PolynomialUtils#buildPolynomial in
         case polynomials are generated from multiple threads. Furthermore, the
         synchronization is now performed on the coefficient list instead of the class.
-      </action>    
+      </action>
       <action dev="psteitz" type="update" issue="MATH-1246">
         Added bootstrap method to KolmogorovSmirnov test.
       </action>
@@ -599,7 +599,7 @@ Users are encouraged to upgrade to this version as this release not
       </action>
       <action dev="tn" type="fix" issue="MATH-1283" due-to="Jean Noel Delavalade">
         Fixed "Gamma#gamma(double)" for negative values smaller than -20.
-      </action>    
+      </action>
       <action dev="tn" type="fix" issue="MATH-1237" due-to="Ken Williams">
         Fixed javadoc of methods {floorDiv,floorMod} in class "FastMath".
       </action>
@@ -697,7 +697,7 @@ Users are encouraged to upgrade to this version as this release not
       </action>
       <action dev="psteitz" type="fix" issue="MATH-1245">
         Fixed error in computing discrete distribution of D statistics for small-sample
-        2-sample Kolmogorov-Smirnov tests. Error was causing incorrect p-values returned 
+        2-sample Kolmogorov-Smirnov tests. Error was causing incorrect p-values returned
         by exactP and monteCarloP methods (used by default for small, mid-size samples).
       </action>
       <action dev="erans" type="update" issue="MATH-1243">
@@ -719,16 +719,16 @@ Users are encouraged to upgrade to this version as this release not
       <action dev="tn" type="fix" issue="MATH-1242" due-to="Otmar Ertl">
         Improved performance to calculate the two-sample Kolmogorov-Smirnov test
         via monte carlo simulation ("KolmogorovSmirnovTets#monteCarloP(...)").
-      </action>    
+      </action>
       <action dev="tn" type="fix" issue="MATH-1241" due-to="Aleksei Dievskii">
         A "StackOverflowException" was thrown when passing Double.NaN or infinity
         to "Gamma#digamma(double)" or "Gamma#trigamma(double)". Now the input value
         is propagated to the output if it is not a real number.
-      </action>    
+      </action>
       <action dev="tn" type="fix" issue="MATH-1232" due-to="Otmar Ertl">
         Improved performance of calculating the two-sample Kolmogorov-Smirnov
         test statistic.
-      </action>    
+      </action>
       <action dev="luc" type="fix" issue="MATH-1232">
         Fixed error message for unknown parameter name in ODE.
       </action>
@@ -738,7 +738,7 @@ Users are encouraged to upgrade to this version as this release not
       <action dev="tn" type="fix">
         Fix potential branching errors in "FastMath#pow(double, double)" when
         passing special values, i.e. infinity, due to erroneous JIT optimization.
-      </action>    
+      </action>
       <action dev="luc" type="fix" issue="MATH-1118" >
         Fixed equals/hashcode contract failure for Dfp.
       </action>
@@ -751,27 +751,27 @@ Users are encouraged to upgrade to this version as this release not
       <action dev="tn" type="fix" issue="MATH-1197">
         Computation of 2-sample Kolmogorov-Smirnov statistic in case of ties
         was not correct.
-      </action>    
+      </action>
     </release>
 
     <release version="3.5" date="2015-04-17" description="
 This is a minor release: It combines bug fixes and new features.
  Changes to existing features were made in a backwards-compatible
  way such as to allow drop-in replacement of the v3.4.1 JAR file.
-  
+
 Most notable among the new features are:
  getQuadraticMean method added to DescriptiveStatistics SummaryStatistics
  which calculates the root mean square, and a way to build polyhedrons sets
  from list of vertices and the facets they belong too. There have been
  numerous bug fixes. See below for a full list.
-  
+
 The minimum version of the Java platform required to compile and use
  Apache Commons Math is Java 5.
-  
+
 Users are encouraged to upgrade to this version as this release not
  only includes bug fixes but also deprecates numerous classes and
  methods that will be deleted from the next major release (4.0).
-  
+
   Caveat:
   1. The implementation of the BOBYQA optimization algorithm is in alpha
   state (cf. MATH-621): Many code paths are untested, and we are looking
@@ -783,26 +783,26 @@ Users are encouraged to upgrade to this version as this release not
       <action dev="luc" type="fix" issue="MATH-1195">
         Moved FastMathTestPerformance out of the main test tree, as is is
         a benchmark rather than a test.
-      </action>    
+      </action>
       <action dev="luc" type="add">
         Added a way to build polyhedrons sets from a list of vertices and
         facets specified using vertices indices.
-      </action>    
+      </action>
       <action dev="psteitz" type="update" issue="MATH-1213">
         Added Laguerre complex solve methods taking maxEval parameters.
       </action>
       <action dev="luc" type="fix" issue="MATH-1191">
         Fixed ignored method parameters in QRDecomposition protected methods.
-      </action>    
+      </action>
       <action dev="luc" type="fix" issue="MATH-1211" due-to="Mike Zimmerman">
         Fixed wrong selection of line/polyhedron intersection point.
-      </action>    
+      </action>
       <action dev="luc" type="fix" issue="MATH-1162">
         Improved fix for corner cases in BSP-tree merging, when cut sub-hyperplanes vanish.
-      </action>    
+      </action>
       <action dev="tn" type="fix" issue="MATH-1209" due-to="Jonathan Ogilvie">
         Fixed link to algorithm description in "PoissonDistribution#sample()".
-      </action>    
+      </action>
       <action dev="psteitz" type="fix" issue="MATH-1208">
         EmpiricalDistribution cumulativeProbability can return NaN when evaluated within a constant bin.
       </action>
@@ -835,7 +835,7 @@ This is a maintenance release: It fixes issue MATH-1188.
 This is a minor release: It combines bug fixes and new features.
  Changes to existing features were made in a backwards-compatible
  way such as to allow drop-in replacement of the v3.3 JAR file.
-  
+
 Most notable among the new features are:
  new distributions (Gumbel, Laplace, Logistic, Nakagami), and
  improvements on percentiles algorithms (better handling for NaNs
@@ -844,14 +844,14 @@ Most notable among the new features are:
  implementations added. There have been numerous bug fixes and
  several improvements on performances or robustness. See below
  for a full list.
-  
+
 The minimum version of the Java platform required to compile and use
  Apache Commons Math is Java 5.
-  
+
 Users are encouraged to upgrade to this version as this release not
  only includes bug fixes but also deprecates numerous classes and
  methods that will be deleted from the next major release (4.0).
-  
+
   Caveat:
   1. The implementation of the BOBYQA optimization algorithm is in alpha
   state (cf. MATH-621): Many code paths are untested, and we are looking
@@ -870,7 +870,7 @@ Users are encouraged to upgrade to this version as this release not
       </action>
       <action dev="psteitz" type="fix" issue="MATH-1181">
         Fixed integer overflow in KolmogorovSmirnovTest causing 2-sample test
-        to use exact method when the product of the sample sizes exceeds 
+        to use exact method when the product of the sample sizes exceeds
         Integer.MAX_VALUE, resulting in effectively hung execution.
       </action>
       <action dev="erans" type="add" issue="MATH-1180">
@@ -896,14 +896,14 @@ Users are encouraged to upgrade to this version as this release not
       </action>
       <action dev="luc" type="update" >
         Spurious vertices in the middle of otherwise straight edges are now
-        filtered out when rebuilding polygons boundaries from BSP trees. 
+        filtered out when rebuilding polygons boundaries from BSP trees.
       </action>
       <action dev="luc" type="fix" issue="MATH-1174" >
         Fixed a problem with too thin polygons considered to have infinite size.
       </action>
       <action dev="luc" type="add" >
         Boundary attributes in regions now provides the BSP tree nodes that
-        were used to split the sub-hyperplane forming the boundary part of the facet. 
+        were used to split the sub-hyperplane forming the boundary part of the facet.
       </action>
       <action dev="luc" type="fix" issue="MATH-1162" >
         Fixed a problem with vanishing cut sub-hyperplanes during BSP tree merging.
@@ -999,7 +999,7 @@ Users are encouraged to upgrade to this version as this release not
         Added lazy evaluation to "LeastSquaresFactory" (in "o.a.c.m.fitting.leastsquares")
         to avoid evaluating the model when the optimization algorithm does not actually
         require it.
-      </action> 
+      </action>
      <action dev="luc" type="fix" issue="MATH-1127">
         Fixed overflow in Precision.equals with ulps (both double and float versions).
       </action>
@@ -1019,20 +1019,20 @@ Users are encouraged to upgrade to this version as this release not
 This is a minor release: It combines bug fixes and new features.
  Changes to existing features were made in a backwards-compatible
  way such as to allow drop-in replacement of the v3.x JAR file.
-  
+
 Most notable among the new features are:
  Framework for creating artificial neural nets, self organizing feature maps,
  computational geometry algorithms (convex hull, enclosing ball), performance
  improvements of the linear simplex solver, refactoring of curve fitters,
  low-discrepancy random generators (sobol, halton), least-squares fitting.
-  
+
 The minimum version of the Java platform required to compile and use
  Commons Math is Java 5.
-  
+
 Users are encouraged to upgrade to this version as this release not
  only includes bug fixes but also deprecates numerous classes and
  methods that will be deleted from the next major release (4.0).
-  
+
   Caveat:
   1. The implementation of the BOBYQA optimization algorithm is in alpha
   state (cf. MATH-621): Many code paths are untested, and we are looking
@@ -1043,7 +1043,7 @@ Users are encouraged to upgrade to this version as this release not
   3. A few methods/constructors in the package o.a.c.m.geometry.partitioning
   have changed their signature in a non backwards-compatible way. The respective
   classes are intended to be package private only and are not supposed to be
-  used for other purposes. 
+  used for other purposes.
 ">
       <action dev="tn" type="add" issue="MATH-1110" due-to="Edward Segall">
         Added new constructor to "OLSMultipleLinearRegression" to be able
@@ -1397,7 +1397,7 @@ Users are encouraged to upgrade to this version as this release not
         "o.a.c.m.analysis.integration.gauss").
       </action>
       <action dev="erans" type="update" issue="MATH-995">
-        Documented limitation of "IterativeLegendreGaussIntegrator" (added 
+        Documented limitation of "IterativeLegendreGaussIntegrator" (added
         warning about potential wrong usage).
       </action>
       <action dev="erans" type="fix" issue="MATH-993">
@@ -1448,7 +1448,7 @@ Users are encouraged to upgrade to this version as this release not
 This is a minor release: It combines bug fixes and new features.
  Changes to existing features were made in a backwards-compatible
  way such as to allow drop-in replacement of the v3.1[.1] JAR file.
-  
+
 Most notable among the new features are: Framework for automatic
  differentiation, Lévy distribution, prime numbers, enumerated
  distributions, real field allowing to use several algorithms
@@ -1456,14 +1456,14 @@ Most notable among the new features are: Framework for automatic
  classes (high accuracy or automatic differentiation), spherical
  coordinates with gradients and Hessians, reorganized clustering
  package with different distance implementations.
-  
+
 The minimum version of the Java platform required to compile and use
  Commons Math is Java 5.
-  
+
 Users are encouraged to upgrade to this version as this release not
  only includes bug fixes but also deprecates numerous classes and
  methods that will be deleted from the next major release (4.0).
-  
+
   Caveat:
   1. The implementation of the BOBYQA optimization algorithm is in alpha
   state (cf. MATH-621): Many code paths are untested, and we are looking
@@ -1601,17 +1601,17 @@ Users are encouraged to upgrade to this version as this release not
       </action>
       <action dev="luc" type="add" >
         Added RealFieldElement interface to represent anything that is
-        real number like, implemented by both Decimal64, Dfp and DerivativeStructure.  
+        real number like, implemented by both Decimal64, Dfp and DerivativeStructure.
       </action>
       <action dev="luc" type="add" >
-        Added partial derivatives computation for 3D vectors and rotations.  
+        Added partial derivatives computation for 3D vectors and rotations.
       </action>
       <action dev="luc" type="fix" issue="MATH-935" >
         Fixed DerivativeStructure.atan2 for special cases when both arguments are +/-0.
       </action>
       <action dev="luc" type="add" >
         Added accurate linear combination of DerivativeStructure instances,
-        avoiding cancellation.  
+        avoiding cancellation.
       </action>
       <action dev="erans" type="update" issue="MATH-933">
         Throw "MathUnsupportedOperationException" from optimizers that do
@@ -1626,7 +1626,7 @@ Users are encouraged to upgrade to this version as this release not
         Greater efficiency in "UnitSphereRandomVectorGenerator".
       </action>
       <action dev="tn" type="fix" issue="MATH-930">
-        Improved class javadoc wrt convergence criteria and added 
+        Improved class javadoc wrt convergence criteria and added
         additional constructors to override the default epsilon and cut-off
         values in class "SimplexSolver".
       </action>
@@ -1653,7 +1653,7 @@ This is a point release: It fixes a bug that renders version 3.1 unusable
 This is a minor release: It combines bug fixes and new features.
   Changes to existing features were made in a backwards-compatible
   way such as to allow drop-in replacement of the v3.0 JAR file.
-  
+
   Most notable among the new features are: Framework for automatic
   differentiation, multivariate mixture model distribution, quaternions,
   Gauss integration framework, Hermite polynomial interpolation,
@@ -1661,13 +1661,13 @@ This is a minor release: It combines bug fixes and new features.
   Most notable among the changes are: Greatly improved precision in
   the implementation of the Gamma and Beta special functions, optimizers
   API, deprecation of the sparse vector implementation.
-  
+
   The minimal version of the Java platform required to compile and use
   Commons Math is Java 5.
   Users are encouraged to upgrade to this version as this release not
   only includes bug fixes but also deprecates numerous classes and
   methods that will be deleted from the next major release (4.0).
-  
+
   Caveat:
   1. The implementation of the BOBYQA optimization algorithm is in alpha
   state (cf. MATH-621): Many code paths are untested, and we are looking
@@ -2026,7 +2026,7 @@ Caveat:
 for volunteers to improve the code readability, robustness and performance
 and to extend the unit tests suite.
 2. A few methods in the FastMath class are in fact slower that their
-counterpart in either Math or StrictMath (cf. MATH-740). 
+counterpart in either Math or StrictMath (cf. MATH-740).
 ">
       <action dev="mikl" type="add" issue="MATH-431">
         Added statistical hypothesis tests "MannWhitneyUTest" and
diff --git a/src/main/resources/checkstyle/checkstyle-legacy.xml b/src/main/resources/checkstyle/checkstyle-legacy.xml
index f0bf52412..0ce070fb1 100644
--- a/src/main/resources/checkstyle/checkstyle-legacy.xml
+++ b/src/main/resources/checkstyle/checkstyle-legacy.xml
@@ -160,7 +160,7 @@
     <module name="EmptyStatement" />
     <module name="EqualsHashCode" />
     <!-- Method parameters and local variables should not hide fields, except in constructors and setters -->
-    <!-- 
+    <!--
     <module name="HiddenField">
         <property name="ignoreConstructorParameter" value="true" />
         <property name="ignoreSetter" value="true" />
diff --git a/src/site/site.xml b/src/site/site.xml
index eef7e9337..973ef2d9b 100644
--- a/src/site/site.xml
+++ b/src/site/site.xml
@@ -50,9 +50,9 @@
       <item name="Javadoc (2.2 release)"
          href="http://commons.apache.org/math/javadocs/api-2.2/index.html"/>
       <item name="Issue Tracking" href="/issue-tracking.html"/>
-      <item name="Source Repository (current)" 
+      <item name="Source Repository (current)"
          href="http://gitbox.apache.org/repos/asf/commons-math.git"/>
-      <item name="Wiki"  
+      <item name="Wiki"
             href="http://wiki.apache.org/commons/Math"/>
       <item name="Developers Guide" href="/developers.html"/>
       <item name="Proposal" href="/proposal.html"/>
diff --git a/src/site/xdoc/developers.xml b/src/site/xdoc/developers.xml
index 4d5d80596..25b4fbfff 100644
--- a/src/site/xdoc/developers.xml
+++ b/src/site/xdoc/developers.xml
@@ -15,7 +15,7 @@
    See the License for the specific language governing permissions and
    limitations under the License.
   -->
-  
+
 <document>
  <properties>
   <title>Developers Guide</title>
@@ -43,7 +43,7 @@
     <p>
     <ol>
         <li>Start by reviewing the overall objectives stated in the
-            <a href="proposal.html">proposal</a> upon which the project is 
+            <a href="proposal.html">proposal</a> upon which the project is
             founded.
         </li>
         <li>Download the Commons Math source code.  Follow the instructions
@@ -57,8 +57,8 @@
         read-write access.
         </li>
         <li>Like most commons components, Commons Math uses Apache Maven as our
-            build tool. The sources can also be built using Ant (a working 
-            Ant build.xml is included in the top level project directory). 
+            build tool. The sources can also be built using Ant (a working
+            Ant build.xml is included in the top level project directory).
             To build Commons Math using Maven, you can follow the instructions for
             <a href="http://maven.apache.org/run-maven/index.html">Building a
             project with Maven</a>. Launch Maven from the top-level directory
@@ -72,7 +72,7 @@
             on the <a href="http://wiki.apache.org/commons/MathWishList">
             Math Wish List Wiki Page.</a>
         </li>
-        <li>Be sure to join the commons-dev and commons-user 
+        <li>Be sure to join the commons-dev and commons-user
             <a href="mail-lists.html">
             email lists</a> and use them appropriately (make sure the string
             "[math]" starts the Subject line of all your postings).
@@ -81,15 +81,15 @@
         <li>
             <a href="https://issues.apache.org/jira/secure/Signup!default.jspa">
             Setup an account on JIRA</a> and use it to submit patches and
-            identify bugs. Read the 
+            identify bugs. Read the
             <a href="https://issues.apache.org/bugwritinghelp.html">
             directions</a> for submitting bugs and search the database to
-            determine if an issue exists or has already been dealt with.        
+            determine if an issue exists or has already been dealt with.
             <p>
               See the <a href="http://commons.apache.org/math/issue-tracking.html">
               Commons Math Issue Tracking Page</a> for more information on how to
               search for or submit bugs or enhancement requests.
-            </p>     
+            </p>
         <li>
           Generating patches: The requested format for generating patches is
           the Unified Diff format, which can be easily generated using the git
@@ -105,7 +105,7 @@
     <p>
      Follow the steps below when making suggestions for additions or
      enhancements to Commons Math. This will make it easier for the community
-     to comment on your ideas and for the committers to keep track of them. 
+     to comment on your ideas and for the committers to keep track of them.
      Thanks in advance!
      <ol>
        <li>Start with a post to the commons-dev mailing list, with [math] at
@@ -122,7 +122,7 @@
          useful</li>
        </ul></li>
        <li>Assuming a generally favorable response to the idea on commons-dev,
-       the next step is to add an entry to the 
+       the next step is to add an entry to the
        <a href="http://wiki.apache.org/commons/MathWishList">Math Wish
        List</a> corresponding to the idea.  Include a reference to the
        discussion thread. </li>
@@ -139,7 +139,7 @@
        ticket if a patch goes more than a few days with no comment or commit.
        </li>
       </ol>
-    </p>   
+    </p>
    </subsection>
    <subsection name='Coding Style'>
     <p>
@@ -191,7 +191,7 @@
       formulas and escape special characters.</li>
      <li>
       Implementations <i>should</i> use standard algorithms and
-      references or full descriptions of all algorithms <i>should</i> be 
+      references or full descriptions of all algorithms <i>should</i> be
       provided.</li>
      <li>
       Additions and enhancements <i>should</i> include updates to the User
@@ -232,11 +232,11 @@
       impossible to specify because of numerical properties of the method.
       If a solver fails to find a root or a quadrature method fails to converge
       for a given set of parameters, <i>unless those parameters violate the
-      advertised preconditions</i> it is not appropriate to throw 
+      advertised preconditions</i> it is not appropriate to throw
       MathIllegalArgumentException.</li>
       <li>
       State information included in exception messages <i>must</i> be available
-      in exception properties - i.e., successful handling or reporting of 
+      in exception properties - i.e., successful handling or reporting of
       Commons Math exceptions must not require parsing exception messages.</li>
      </ul>
    </subsection>
@@ -259,7 +259,7 @@
       All new source file submissions <i>must</i> include the Apache Software
       License in a comment that begins the file </li>
      <li>
-      All contributions must comply with the terms of the Apache 
+      All contributions must comply with the terms of the Apache
       <a href="http://www.apache.org/licenses/cla.pdf">Contributor License
       Agreement (CLA)</a></li>
      <li>
@@ -271,7 +271,7 @@
      <li>
        References to source materials covered by restrictive proprietary
        licenses should be avoided.  In particular, contributions should not
-       implement or include references to algorithms in 
+       implement or include references to algorithms in
        <a href="http://www.nr.com/">Numerical Recipes (NR)</a>.
        Any questions about copyright or patent issues should be raised on
        the commons-dev mailing list before contributing or committing code.
diff --git a/src/site/xdoc/index.xml b/src/site/xdoc/index.xml
index 11c1a2bc2..3e81ce6da 100644
--- a/src/site/xdoc/index.xml
+++ b/src/site/xdoc/index.xml
@@ -16,7 +16,7 @@
    See the License for the specific language governing permissions and
    limitations under the License.
   -->
-  
+
 <document>
 
  <properties>
@@ -65,7 +65,7 @@
   <section name="Download Math">
    <subsection name="Releases">
     <p>
-      Download the 
+      Download the
       <a href="http://commons.apache.org/math/download_math.cgi">
       Latest Release</a> of Commons Math.
     </p>
diff --git a/src/site/xdoc/mail-lists.xml b/src/site/xdoc/mail-lists.xml
index 14feb4060..221186814 100644
--- a/src/site/xdoc/mail-lists.xml
+++ b/src/site/xdoc/mail-lists.xml
@@ -48,7 +48,7 @@ limitations under the License.
 
     <section name="Overview">
       <p>
-        <a href="index.html">Commons Math</a> shares mailing lists with all the other 
+        <a href="index.html">Commons Math</a> shares mailing lists with all the other
         <a href="http://commons.apache.org/components.html">Commons Components</a>.
         To make it easier for people to only read messages related to components they are interested in,
         the convention in Commons is to prefix the subject line of messages with the component's name,
@@ -68,8 +68,8 @@ limitations under the License.
       </p>
       <p>
         <strong>Note:</strong> please don't send patches or attachments to any of the mailing lists.
-        Patches are best handled via the <a href="issue-tracking.html">Issue Tracking</a> system. 
-        Otherwise, please upload the file to a public server and include the URL in the mail. 
+        Patches are best handled via the <a href="issue-tracking.html">Issue Tracking</a> system.
+        Otherwise, please upload the file to a public server and include the URL in the mail.
       </p>
     </section>
 
@@ -185,10 +185,10 @@ limitations under the License.
             General announcements of Apache project releases.
             <br /><br />
           </td>
-          <td><a class="externalLink" href="mailto:announce-subscribe@apache.org">Subscribe</a></td> 
-          <td><a class="externalLink" href="mailto:announce-unsubscribe@apache.org">Unsubscribe</a></td> 
+          <td><a class="externalLink" href="mailto:announce-subscribe@apache.org">Subscribe</a></td>
+          <td><a class="externalLink" href="mailto:announce-unsubscribe@apache.org">Unsubscribe</a></td>
           <td><i>read only</i></td>
-          <td><a class="externalLink" href="https://mail-archives.apache.org/mod_mbox/www-announce/">mail-archives.apache.org</a></td> 
+          <td><a class="externalLink" href="https://mail-archives.apache.org/mod_mbox/www-announce/">mail-archives.apache.org</a></td>
           <td><a class="externalLink" href="http://markmail.org/list/org.apache.announce/">markmail.org</a><br />
               <a class="externalLink" href="http://old.nabble.com/Apache-News-and-Announce-f109.html">old.nabble.com</a><br />
               <a class="externalLink" href="http://www.mail-archive.com/announce@apache.org/">www.mail-archive.com</a><br />
diff --git a/src/site/xdoc/proposal.xml b/src/site/xdoc/proposal.xml
index d277c5b87..9b4050cac 100644
--- a/src/site/xdoc/proposal.xml
+++ b/src/site/xdoc/proposal.xml
@@ -16,7 +16,7 @@
    See the License for the specific language governing permissions and
    limitations under the License.
   -->
-  
+
 <document>
 
   <properties>
@@ -29,40 +29,40 @@
     <section name='Proposal for math Package'>
 
     <subsection name='(0) Rationale'>
-<p>The Java programming language and the math extensions in commons-lang provide implementations 
-for only the most basic mathematical algorithms. Routine development tasks such as computing 
-basic statistics or solving a system of linear equations require components not available in java 
+<p>The Java programming language and the math extensions in commons-lang provide implementations
+for only the most basic mathematical algorithms. Routine development tasks such as computing
+basic statistics or solving a system of linear equations require components not available in java
 or commons-lang.</p>
 
-<p>Most basic mathematical or statistical algorithms are available in open source implementations, 
-but to assemble a simple set of capabilities one has to use multiple libraries, many of which have 
-more restrictive licensing terms than the ASF. In addition, many of the best open source 
-implementations (e.g. the R statistical package) are either not available in Java or require large 
+<p>Most basic mathematical or statistical algorithms are available in open source implementations,
+but to assemble a simple set of capabilities one has to use multiple libraries, many of which have
+more restrictive licensing terms than the ASF. In addition, many of the best open source
+implementations (e.g. the R statistical package) are either not available in Java or require large
 support libraries and/or external dependencies to work.</p>
 
-<p>A commons-math community will provide a productive environment for aggregation, testing and 
+<p>A commons-math community will provide a productive environment for aggregation, testing and
 support of efficient Java implementations of commonly used mathematical and statistical algorithms.</p>
 
     </subsection>
 
     <subsection name='(1) Scope of the Package'>
 
-<p>The Math project shall create and maintain a library of lightweight, self-contained mathematics 
-and statistics components addressing the most common practical problems not immediately available in 
+<p>The Math project shall create and maintain a library of lightweight, self-contained mathematics
+and statistics components addressing the most common practical problems not immediately available in
 the Java programming language or commons-lang. The guiding principles for commons-math will be:
 
 <ol>
 <li>Real-world application use cases determine priority</li>
-<li>Emphasis on small, easily integrated components rather than large libraries with complex 
+<li>Emphasis on small, easily integrated components rather than large libraries with complex
 dependencies</li>
 <li>All algorithms are fully documented and follow generally accepted best practices</li>
-<li>In situations where multiple standard algorithms exist, use the Strategy pattern to support 
+<li>In situations where multiple standard algorithms exist, use the Strategy pattern to support
 multiple implementations</li>
 <li>Limited dependencies. No external dependencies beyond Commons components and the JDK</li>
 </ol>
 </p>
     </subsection>
-    
+
     <subsection name='(1.5) Interaction With Other Packages'>
 
 <p><em>math</em> relies only on standard JDK 1.2 (or later) APIs for
@@ -75,7 +75,7 @@ developers of the component.</p>
     </subsection>
     <subsection name='(2) Initial Source of the Package'>
 
-<p>The initial codebase will consist of implementations of basic statistical algorithms such 
+<p>The initial codebase will consist of implementations of basic statistical algorithms such
 as the following:
 <ul>
 <li>Simple univariate statistics (mean, standard deviation, n, confidence intervals)</li>
diff --git a/src/site/xdoc/userguide/analysis.xml b/src/site/xdoc/userguide/analysis.xml
index 3165f4fb0..81da13ea6 100644
--- a/src/site/xdoc/userguide/analysis.xml
+++ b/src/site/xdoc/userguide/analysis.xml
@@ -16,7 +16,7 @@
    See the License for the specific language governing permissions and
    limitations under the License.
   -->
-  
+
 <?xml-stylesheet type="text/xsl" href="./xdoc.xsl"?>
 <document url="analysis.html">
   <properties>
@@ -215,7 +215,7 @@
           This may again result in roots way off the true value, without
           indication.  There is not much a generic algorithm can do if
           ill-conditioned problems are met.  A way around this is to transform
-          the problem in order to get a better conditioned function.  Proper 
+          the problem in order to get a better conditioned function.  Proper
           selection of a root-finding algorithm and its configuration parameters
           requires knowledge of the analytical properties of the function under
           analysis and numerical analysis techniques.  Users are encouraged
@@ -339,7 +339,7 @@ double c = UnivariateSolverUtils.forceSide(100, function,
                  +0.0001, the value may be decreased.  For computing roots
                 much larger in absolute value than 100, the default absolute
                 accuracy may never be reached because the given relative
-                accuracy is reached first.  
+                accuracy is reached first.
               </td>
             </tr>
               <tr>
@@ -375,7 +375,7 @@ double c = UnivariateSolverUtils.forceSide(100, function,
         <p>
           A <a href="../apidocs/org/apache/commons/math4/analysis/interpolation/UnivariateInterpolator.html">
           UnivariateInterpolator</a> is used to find a univariate real-valued
-          function <code>f</code> which for a given set of ordered pairs 
+          function <code>f</code> which for a given set of ordered pairs
           (<code>x<sub>i</sub></code>,<code>y<sub>i</sub></code>) yields
           <code>f(x<sub>i</sub>)=y<sub>i</sub></code> to the best accuracy possible. The result
           is provided as an object implementing the <a
@@ -387,7 +387,7 @@ double c = UnivariateSolverUtils.forceSide(100, function,
           interpolation algorithm is more determined by the kind of the interpolated function
           rather than the set of points to interpolate.
           There aren't currently any accuracy controls either, as interpolation
-          accuracy is in general determined by the algorithm. 
+          accuracy is in general determined by the algorithm.
         </p>
         <p>Typical usage:</p>
         <source>double x[] = { 0.0, 1.0, 2.0 };
@@ -405,7 +405,7 @@ System.out println("f(" + interpolationX + ") = " + interpolatedY);</source>
           is continuous, smooth and can be differentiated twice.  The second
           derivative is continuous but not smooth.  The x values passed to the
           interpolator must be ordered in ascending order.  It is not valid to
-          evaluate the function for values outside the range 
+          evaluate the function for values outside the range
           <code>x<sub>0</sub></code>..<code>x<sub>N</sub></code>.
         </p>
         <p>
@@ -525,7 +525,7 @@ System.out.println("interpolation polynomial: " + interpolator.getPolynomials()[
           trapezoid method</a></li>
           <li><a href="../apidocs/org/apache/commons/math4/analysis/integration/LegendreGaussIntegrator.html">
           Legendre-Gauss method</a></li>
-          </ul>      
+          </ul>
         </p>
       </subsection>
       <subsection name="4.6 Polynomials" href="polynomials">
diff --git a/src/site/xdoc/userguide/complex.xml b/src/site/xdoc/userguide/complex.xml
index 7367dd5b8..d2193ad32 100644
--- a/src/site/xdoc/userguide/complex.xml
+++ b/src/site/xdoc/userguide/complex.xml
@@ -16,7 +16,7 @@
    See the License for the specific language governing permissions and
    limitations under the License.
   -->
-  
+
 <?xml-stylesheet type="text/xsl" href="./xdoc.xsl"?>
 <document url="stat.html">
   <properties>
diff --git a/src/site/xdoc/userguide/exceptions.xml b/src/site/xdoc/userguide/exceptions.xml
index 4376116fb..0cd1af168 100644
--- a/src/site/xdoc/userguide/exceptions.xml
+++ b/src/site/xdoc/userguide/exceptions.xml
@@ -16,7 +16,7 @@
    See the License for the specific language governing permissions and
    limitations under the License.
   -->
-  
+
 <?xml-stylesheet type="text/xsl" href="./xdoc.xsl"?>
 <document url="exceptions.html">
   <properties>
diff --git a/src/site/xdoc/userguide/filter.xml b/src/site/xdoc/userguide/filter.xml
index b298953b3..3d3e1cd3c 100644
--- a/src/site/xdoc/userguide/filter.xml
+++ b/src/site/xdoc/userguide/filter.xml
@@ -7,16 +7,16 @@
     The ASF licenses this file to You under the Apache License, Version 2.0
     (the "License"); you may not use this file except in compliance with
     the License.  You may obtain a copy of the License at
-   
+
          http://www.apache.org/licenses/LICENSE-2.0
-   
+
     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
   -->
-  
+
 <?xml-stylesheet type="text/xsl" href="./xdoc.xsl"?>
 <document url="filter.html">
   <properties>
@@ -34,11 +34,11 @@
           <a href="../apidocs/org/apache/commons/math4/filter/KalmanFilter.html">
           KalmanFilter</a> provides a discrete-time filter to estimate
           a stochastic linear process.</p>
-          
+
         <p>A Kalman filter is initialized with a <a href="../apidocs/org/apache/commons/math4/filter/ProcessModel.html">
           ProcessModel</a> and a <a href="../apidocs/org/apache/commons/math4/filter/MeasurementModel.html">
-          MeasurementModel</a>, which contain the corresponding transformation and noise covariance matrices. 
-          The parameter names used in the respective models correspond to the following names commonly used 
+          MeasurementModel</a>, which contain the corresponding transformation and noise covariance matrices.
+          The parameter names used in the respective models correspond to the following names commonly used
           in the mathematical literature:
         <ul>
              <li>A - state transition matrix</li>
@@ -52,7 +52,7 @@
         <p>
         <dl>
           <dt>Initialization</dt>
-          <dd> The following code will create a Kalman filter using the provided 
+          <dd> The following code will create a Kalman filter using the provided
           DefaultMeasurementModel and DefaultProcessModel classes. To support dynamically changing
           process and measurement noises, simply implement your own models.
             <source>
@@ -74,7 +74,7 @@ KalmanFilter filter = new KalmanFilter(pm, mm);
             </source>
           </dd>
           <dt>Iteration</dt>
-          <dd>The following code illustrates how to perform the predict/correct cycle:  
+          <dd>The following code illustrates how to perform the predict/correct cycle:
           <source>
 for (;;) {
    // predict the state estimate one time-step ahead
@@ -86,15 +86,15 @@ for (;;) {
 
    // correct the state estimate with the latest measurement
    filter.correct(z);
-   
+
    double[] stateEstimate = filter.getStateEstimation();
    // do something with it
 }
           </source>
           </dd>
           <dt>Constant Voltage Example</dt>
-          <dd>The following example creates a Kalman filter for a static process: a system with a 
-          constant voltage as internal state. We observe this process with an artificially 
+          <dd>The following example creates a Kalman filter for a static process: a system with a
+          constant voltage as internal state. We observe this process with an artificially
           imposed measurement noise of 0.1V and assume an internal process noise of 1e-5V.
           <source>
 double constantVoltage = 10d;
@@ -118,7 +118,7 @@ RealMatrix R = new Array2DRowRealMatrix(new double[] { measurementNoise });
 
 ProcessModel pm = new DefaultProcessModel(A, B, Q, x, P0);
 MeasurementModel mm = new DefaultMeasurementModel(H, R);
-KalmanFilter filter = new KalmanFilter(pm, mm);  
+KalmanFilter filter = new KalmanFilter(pm, mm);
 
 // process and measurement noise vectors
 RealVector pNoise = new ArrayRealVector(1);
@@ -148,7 +148,7 @@ for (int i = 0; i &lt; 60; i++) {
           </source>
           </dd>
           <dt>Increasing Speed Vehicle Example</dt>
-          <dd>The following example creates a Kalman filter for a simple linear process: a 
+          <dd>The following example creates a Kalman filter for a simple linear process: a
           vehicle driving along a street with a velocity increasing at a constant rate. The process
           state is modeled as (position, velocity) and we only observe the position. A measurement
           noise of 10m is imposed on the simulated measurement.
@@ -217,9 +217,9 @@ for (int i = 0; i &lt; 60; i++) {
     double velocity = filter.getStateEstimation()[1];
 }
           </source>
-          </dd>          
+          </dd>
         </dl>
-        </p>        
+        </p>
       </subsection>
     </section>
   </body>
diff --git a/src/site/xdoc/userguide/fraction.xml b/src/site/xdoc/userguide/fraction.xml
index 6133cc4ee..3f736d904 100644
--- a/src/site/xdoc/userguide/fraction.xml
+++ b/src/site/xdoc/userguide/fraction.xml
@@ -7,16 +7,16 @@
     The ASF licenses this file to You under the Apache License, Version 2.0
     (the "License"); you may not use this file except in compliance with
     the License.  You may obtain a copy of the License at
-   
+
          http://www.apache.org/licenses/LICENSE-2.0
-   
+
     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
   -->
-  
+
 <?xml-stylesheet type="text/xsl" href="./xdoc.xsl"?>
 <document url="fraction.html">
   <properties>
diff --git a/src/site/xdoc/userguide/genetics.xml b/src/site/xdoc/userguide/genetics.xml
index 1455a8db4..8bba26e26 100644
--- a/src/site/xdoc/userguide/genetics.xml
+++ b/src/site/xdoc/userguide/genetics.xml
@@ -7,16 +7,16 @@
     The ASF licenses this file to You under the Apache License, Version 2.0
     (the "License"); you may not use this file except in compliance with
     the License.  You may obtain a copy of the License at
-   
+
          http://www.apache.org/licenses/LICENSE-2.0
-   
+
     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
   -->
-  
+
 <?xml-stylesheet type="text/xsl" href="./xdoc.xsl"?>
 <document url="genetics.html">
   <properties>
@@ -26,17 +26,17 @@
     <section name="16 Genetic Algorithms">
       <subsection name="16.1 Overview" href="overview">
         <p>
-          The genetics package provides a framework and implementations for 
+          The genetics package provides a framework and implementations for
           genetic algorithms.
         </p>
       </subsection>
       <subsection name="16.2 GA Framework">
       <p>
       <a href="../apidocs/org/apache/commons/math4/genetics/GeneticAlgorithm.html">
-      GeneticAlgorithm</a> provides an execution framework for Genetic Algorithms (GA).  
+      GeneticAlgorithm</a> provides an execution framework for Genetic Algorithms (GA).
       <a href="../apidocs/org/apache/commons/math4/genetics/Population.html">
       Populations,</a> consisting of <a href="../apidocs/org/apache/commons/math4/genetics/Chromosome.html">
-      Chromosomes</a> are evolved by the <code>GeneticAlgorithm</code> until a 
+      Chromosomes</a> are evolved by the <code>GeneticAlgorithm</code> until a
       <a href="../apidocs/org/apache/commons/math4/genetics/StoppingCondition.html">
       StoppingCondition</a> is reached. Evolution is determined by <a href="../apidocs/org/apache/commons/math4/genetics/SelectionPolicy.html">
       SelectionPolicy</a>, <a href="../apidocs/org/apache/commons/math4/genetics/MutationPolicy.html">
@@ -62,10 +62,10 @@
           <li>Loop until new generation is filled:</li>
           <ul><li>Apply configured <code>SelectionPolicy</code> to select a pair of parents
                  from <code>current</code></li>
-             <li>With probability = 
+             <li>With probability =
                  <a href="../apidocs/org/apache/commons/math4/genetics/GeneticAlgorithm.html#getCrossoverRate()">
                  getCrossoverRate()</a>, apply configured <code>CrossoverPolicy</code> to parents</li>
-             <li>With probability = 
+             <li>With probability =
                  <a href="../apidocs/org/apache/commons/math4/genetics/GeneticAlgorithm.html#getMutationRate()">
                  getMutationRate()</a>,
                  apply configured <code>MutationPolicy</code> to each of the offspring</li>
@@ -73,7 +73,7 @@
                  space permitting</li>
           </ul>
           <li>Return nextGeneration</li>
-         </ol>  
+         </ol>
       </p>
       </subsection>
       <subsection name="16.3 Implementation">
@@ -88,16 +88,16 @@ GeneticAlgorithm ga = new GeneticAlgorithm(
     0.10,
     new TournamentSelection(TOURNAMENT_ARITY)
 );
-        
+
 // initial population
 Population initial = getInitialPopulation();
-        
+
 // stopping condition
 StoppingCondition stopCond = new FixedGenerationCount(NUM_GENERATIONS);
-        
+
 // run the algorithm
 Population finalPopulation = ga.evolve(initial, stopCond);
-        
+
 // best chromosome from the final population
 Chromosome bestFinal = finalPopulation.getFittestChromosome();
         </source>
@@ -122,7 +122,7 @@ Chromosome bestFinal = finalPopulation.getFittestChromosome();
         <td>Each of the two selected chromosomes is selected based on an n-ary tournament -- this is done by drawing
         n random chromosomes without replacement from the population, and then selecting the fittest chromosome among them.</td></tr>
         </table><br/>
-        The algorithm starts with an <code>initial</code> population of <code>Chromosomes.</code> and executes until 
+        The algorithm starts with an <code>initial</code> population of <code>Chromosomes.</code> and executes until
         the specified <a href="../apidocs/org/apache/commons/math4/genetics/StoppingCondition.html">StoppingCondition</a>
         is reached.  In the example above, a
         <a href="../apidocs/org/apache/commons/math4/genetics/FixedGenerationCount.html">FixedGenerationCount</a>
diff --git a/src/site/xdoc/userguide/geometry.xml b/src/site/xdoc/userguide/geometry.xml
index 5feaf41ff..e033e7464 100644
--- a/src/site/xdoc/userguide/geometry.xml
+++ b/src/site/xdoc/userguide/geometry.xml
@@ -16,7 +16,7 @@
    See the License for the specific language governing permissions and
    limitations under the License.
   -->
-  
+
 <?xml-stylesheet type="text/xsl" href="./xdoc.xsl"?>
 <document url="geometry.html">
 
diff --git a/src/site/xdoc/userguide/index.xml b/src/site/xdoc/userguide/index.xml
index 0ad64fd6f..69c88e1f4 100644
--- a/src/site/xdoc/userguide/index.xml
+++ b/src/site/xdoc/userguide/index.xml
@@ -16,7 +16,7 @@
    See the License for the specific language governing permissions and
    limitations under the License.
   -->
-  
+
 <?xml-stylesheet type="text/xsl" href="./xdoc.xsl"?>
 <document url="index.html">
   <properties>
@@ -58,24 +58,24 @@
                 <li><a href="linear.html#a3.1_Overview">3.1 Overview</a></li>
                 <li><a href="linear.html#a3.2_Real_matrices">3.2 Real matrices</a></li>
                 <li><a href="linear.html#a3.3_Real_vectors">3.3 Real vectors</a></li>
-                <li><a href="linear.html#a3.4_Solving_linear_systems">3.4 Solving linear systems</a></li> 
+                <li><a href="linear.html#a3.4_Solving_linear_systems">3.4 Solving linear systems</a></li>
                 <li><a href="linear.html#a3.5_Eigenvalueseigenvectors_and_singular_valuessingular_vectors">3.5 Eigenvalues/eigenvectors and singular values/singular vectors</a></li>
                 <li><a href="linear.html#a3.6_Non-real_fields_complex_fractions_...">3.6 Non-real fields (complex, fractions ...)</a></li>
-                </ul></li>             
+                </ul></li>
             <li><a href="analysis.html">4. Numerical Analysis</a>
                 <ul>
                 <li><a href="analysis.html#a4.1_Overview">4.1 Overview</a></li>
-                <li><a href="analysis.html#a4.2_Error-handling">4.2 Error handling</a></li>                
-                <li><a href="analysis.html#a4.3_Root-finding">4.3 Root-finding</a></li>                
+                <li><a href="analysis.html#a4.2_Error-handling">4.2 Error handling</a></li>
+                <li><a href="analysis.html#a4.3_Root-finding">4.3 Root-finding</a></li>
                 <li><a href="analysis.html#a4.4_Interpolation">4.4 Interpolation</a></li>
                 <li><a href="analysis.html#a4.5_Integration">4.5 Integration</a></li>
                 <li><a href="analysis.html#a4.6_Polynomials">4.6 Polynomials</a></li>
                 <li><a href="analysis.html#a4.7_Differentiation">4.7 Differentiation</a></li>
-                </ul></li>     
+                </ul></li>
             <li><a href="special.html">5. Special Functions</a>
                 <ul>
                 <li><a href="special.html#a5.1_Overview">5.1 Overview</a></li>
-                </ul></li>   
+                </ul></li>
         <li><a href="utilities.html">6. Utilities</a>
                 <ul>
                 <li><a href="utilities.html#a6.1_Overview">6.1 Overview</a></li>
@@ -85,25 +85,25 @@
                 <li><a href="utilities.html#a6.5_binomial_coefficients_factorials_Stirling_numbers_and_other_common_math_functions">6.5 Binomial coefficients, factorials, Stirling numbers and other common math functions</a></li>
                 <li><a href="utilities.html#a6.6_fast_math">6.6 Fast mathematical functions</a></li>
                 <li><a href="utilities.html#a6.7_miscellaneous">6.7 Miscellaneous</a></li>
-                </ul></li>                                 
+                </ul></li>
         <li><a href="complex.html">7. Complex Numbers</a>
                 <ul>
                 <li><a href="complex.html#a7.1_Overview">7.1 Overview</a></li>
-                </ul></li>                                 
+                </ul></li>
         <li><a href="distribution.html">8. Probability Distributions</a>
                 <ul>
                 <li><a href="distribution.html#a8.1_Overview">8.1 Overview</a></li>
                 <li><a href="distribution.html#a8.2_Generating_data_like_an_input_file">8.2 Generating data 'like' an input file</a></li>
-                </ul></li>                                 
+                </ul></li>
         <li><a href="fraction.html">9. Fractions</a>
                 <ul>
                 <li><a href="fraction.html#a9.1_Overview">9.1 Overview</a></li>
-                </ul></li>                                 
+                </ul></li>
         <li><a href="transform.html">10. Transforms</a></li>
         <li><a href="geometry.html">11. Geometry</a>
                 <ul>
                 <li><a href="geometry.html#a11.1_Overview">11.1 Overview</a></li>
-                </ul></li>                                 
+                </ul></li>
         <li><a href="optimization.html">12. Optimization</a>
                 <ul>
                 <li><a href="optimization.html#a12.1_Overview">12.1 Overview</a></li>
@@ -111,7 +111,7 @@
                 <li><a href="optimization.html#a12.3_Linear_Programming">12.3 Linear Programming</a></li>
                 <li><a href="optimization.html#a12.4_Direct_Methods">12.4 Direct Methods</a></li>
                 <li><a href="optimization.html#a12.5_General_Case">12.5 General Case</a></li>
-                </ul></li>                                 
+                </ul></li>
         <li><a href="fitting.html">13. Curve Fitting</a>
           <ul>
             <li><a href="fitting.html#a13.1_Overview">13.1 Overview</a></li>
@@ -139,11 +139,11 @@
                 <li><a href="ode.html#a15.4_Available_Integrators">15.4 Available Integrators</a></li>
                 <li><a href="ode.html#a15.5_Derivatives">15.5 Derivatives</a></li>
                 </ul></li>
-        <li><a href="genetics.html">16. Genetic Algorithms</a>   
+        <li><a href="genetics.html">16. Genetic Algorithms</a>
                 <ul>
                 <li><a href="genetics.html#a16.1_Overview">16.1 Overview</a></li>
                 <li><a href="genetics.html#a16.2_GA_Framework">16.2 GA Framework</a></li>
-                <li><a href="genetics.html#a16.3_Implementation">16.3 Implementation and Examples</a></li>  
+                <li><a href="genetics.html#a16.3_Implementation">16.3 Implementation and Examples</a></li>
         </ul></li>
         <li><a href="filter.html">17. Filters</a>
           <ul>
@@ -157,7 +157,7 @@
             <li><a href="ml.html#clustering">18.2 Clustering algorithms and distance measures</a></li>
             <li><a href="ml.html#implementation">18.3 Implementation</a></li>
           </ul>
-        </li>        
+        </li>
         <li><a href="exceptions.html">19. Exceptions</a>
           <ul>
             <li><a href="exceptions.html#a19.1_Overview">19.1 Overview</a></li>
@@ -168,7 +168,7 @@
         </li>
         </ul>
       </section>
-    
+
   </body>
-  
+
 </document>
diff --git a/src/site/xdoc/userguide/linear.xml b/src/site/xdoc/userguide/linear.xml
index 6cad531bd..adaa5d04c 100644
--- a/src/site/xdoc/userguide/linear.xml
+++ b/src/site/xdoc/userguide/linear.xml
@@ -16,7 +16,7 @@
    See the License for the specific language governing permissions and
    limitations under the License.
   -->
-  
+
 <?xml-stylesheet type="text/xsl" href="./xdoc.xsl"?>
 <document url="linear.html">
 
@@ -37,7 +37,7 @@
       <subsection name="3.2 Real matrices" href="real_matrices">
         <p>
           The <a href="../apidocs/org/apache/commons/math4/linear/RealMatrix.html">
-          RealMatrix</a> interface represents a matrix with real numbers as 
+          RealMatrix</a> interface represents a matrix with real numbers as
           entries.  The following basic matrix operations are supported:
           <ul>
           <li>Matrix addition, subtraction, multiplication</li>
@@ -45,7 +45,7 @@
           <li>transpose</li>
           <li>Norm and Trace</li>
           <li>Operation on a vector</li>
-          </ul>   
+          </ul>
         </p>
         <p>
          Example:
@@ -85,7 +85,7 @@ RealMatrix pInverse = new LUDecomposition(p).getSolver().getInverse();
       <subsection name="3.3 Real vectors" href="real_vectors">
         <p>
           The <a href="../apidocs/org/apache/commons/math4/linear/RealVector.html">
-          RealVector</a> interface represents a vector with real numbers as 
+          RealVector</a> interface represents a vector with real numbers as
           entries.  The following basic matrix operations are supported:
           <ul>
           <li>Vector addition, subtraction</li>
@@ -136,7 +136,7 @@ RealVector constants = new ArrayRealVector(new double[] { 1, -2, 1 }, false);
 RealVector solution = solver.solve(constants);
           </source>
           The <code>solution</code> vector will contain values for x
-          (<code>solution.getEntry(0)</code>), y (<code>solution.getEntry(1)</code>), 
+          (<code>solution.getEntry(0)</code>), y (<code>solution.getEntry(1)</code>),
           and z (<code>solution.getEntry(2)</code>) that solve the system.
         </p>
         <p>
@@ -170,8 +170,8 @@ RealVector solution = solver.solve(constants);
           In this case, the solution will be provided also as an array of double.
         </p>
         <p>
-          It is possible to solve multiple systems with the same coefficient matrix 
-          in one method call.  To do this, create a matrix whose column vectors correspond 
+          It is possible to solve multiple systems with the same coefficient matrix
+          in one method call.  To do this, create a matrix whose column vectors correspond
           to the constant vectors for the systems to be solved and use <code>solve(RealMatrix),</code>
           which returns a matrix with column vectors representing the solutions.
         </p>
diff --git a/src/site/xdoc/userguide/ml.xml b/src/site/xdoc/userguide/ml.xml
index bc3f2c2e3..c529d9f5d 100644
--- a/src/site/xdoc/userguide/ml.xml
+++ b/src/site/xdoc/userguide/ml.xml
@@ -16,7 +16,7 @@
    See the License for the specific language governing permissions and
    limitations under the License.
   -->
-  
+
 <?xml-stylesheet type="text/xsl" href="./xdoc.xsl"?>
 <document url="ml.html">
 
@@ -39,10 +39,10 @@
           The following algorithms are available:
           <ul>
           <li><a href="../apidocs/org/apache/commons/math4/ml/clustering/KMeansPlusPlusClusterer.html">KMeans++</a>:
-          It is based on the well-known kMeans algorithm, but uses a different method for 
-          choosing the initial values (or "seeds") and thus avoids cases where KMeans sometimes 
-          results in poor clusterings. KMeans/KMeans++ clustering aims to partition n observations 
-          into k clusters in such that each point belongs to the cluster with the nearest center. 
+          It is based on the well-known kMeans algorithm, but uses a different method for
+          choosing the initial values (or "seeds") and thus avoids cases where KMeans sometimes
+          results in poor clusterings. KMeans/KMeans++ clustering aims to partition n observations
+          into k clusters in such that each point belongs to the cluster with the nearest center.
           </li>
           <li><a href="../apidocs/org/apache/commons/math4/ml/clustering/FuzzyKMeansClusterer.html">Fuzzy-KMeans</a>:
           A variation of the classical K-Means algorithm, with the major difference that a single
@@ -52,7 +52,7 @@
           slower than the original kMeans algorithm.
           </li>
           <li><a href="../apidocs/org/apache/commons/math4/ml/clustering/DBSCANClusterer.html">DBSCAN</a>:
-          Density-based spatial clustering of applications with noise (DBSCAN) finds a number of 
+          Density-based spatial clustering of applications with noise (DBSCAN) finds a number of
           clusters starting from the estimated density distribution of corresponding nodes. The
           main advantages over KMeans/KMeans++ are that DBSCAN does not require the specification
           of an initial number of clusters and can find arbitrarily shaped clusters.
@@ -114,18 +114,18 @@ public static class LocationWrapper implements Clusterable {
     }
 }
         </source>
-        Now we will create a list of these wrapper objects (one for each location), 
-        which serves as input to our clustering algorithm. 
+        Now we will create a list of these wrapper objects (one for each location),
+        which serves as input to our clustering algorithm.
         <source>
-// we have a list of our locations we want to cluster. create a      
+// we have a list of our locations we want to cluster. create a
 List&lt;Location&gt; locations = ...;
 List&lt;LocationWrapper&gt; clusterInput = new ArrayList&lt;LocationWrapper&gt;(locations.size());
 for (Location location : locations)
     clusterInput.add(new LocationWrapper(location));
         </source>
         Finally, we can apply our clustering algorithm and output the found clusters.
-        <source>       
-// initialize a new clustering algorithm. 
+        <source>
+// initialize a new clustering algorithm.
 // we use KMeans++ with 10 clusters and 10000 iterations maximum.
 // we did not specify a distance measure; the default (euclidean distance) is used.
 KMeansPlusPlusClusterer&lt;LocationWrapper&gt; clusterer = new KMeansPlusPlusClusterer&lt;LocationWrapper&gt;(10, 10000);
@@ -143,4 +143,4 @@ for (int i=0; i&lt;clusterResults.size(); i++) {
       </subsection>
   </section>
   </body>
-</document>
\ No newline at end of file
+</document>
diff --git a/src/site/xdoc/userguide/ode.xml b/src/site/xdoc/userguide/ode.xml
index a2fefc744..e7f41b92f 100644
--- a/src/site/xdoc/userguide/ode.xml
+++ b/src/site/xdoc/userguide/ode.xml
@@ -16,7 +16,7 @@
    See the License for the specific language governing permissions and
    limitations under the License.
   -->
-  
+
 <?xml-stylesheet type="text/xsl" href="./xdoc.xsl"?>
 <document url="ode.html">
 
@@ -152,7 +152,7 @@ dp853.integrate(ode, 0.0, y, 16.0, y); // now y contains final state at time t=1
 StepHandler stepHandler = new StepHandler() {
     public void init(double t0, double[] y0, double t) {
     }
-            
+
     public void handleStep(StepInterpolator interpolator, boolean isLast) {
         double   t = interpolator.getCurrentTime();
         double[] y = interpolator.getInterpolatedState();
diff --git a/src/site/xdoc/userguide/optimization.xml b/src/site/xdoc/userguide/optimization.xml
index 7790db15f..9827ba7cd 100644
--- a/src/site/xdoc/userguide/optimization.xml
+++ b/src/site/xdoc/userguide/optimization.xml
@@ -261,7 +261,7 @@
 
     We are looking to find the best parameters [a, b, c] for the quadratic function
     <b><code>f(x) = a x<sup>2</sup> + b x + c</code></b>.
-    The data set below was generated using [a = 8, b = 10, c = 16]. 
+    The data set below was generated using [a = 8, b = 10, c = 16].
     A random number between zero and one was added to each y value calculated.
 
     <table cellspacing="0" cellpadding="3">
diff --git a/src/site/xdoc/userguide/overview.xml b/src/site/xdoc/userguide/overview.xml
index eb8d8c18b..b02c73ebd 100644
--- a/src/site/xdoc/userguide/overview.xml
+++ b/src/site/xdoc/userguide/overview.xml
@@ -16,13 +16,13 @@
    See the License for the specific language governing permissions and
    limitations under the License.
   -->
-  
+
 <?xml-stylesheet type="text/xsl" href="./xdoc.xsl"?>
 <document>
   <properties>
     <title>User Guide - Overview</title>
   </properties>
-  
+
 <body>
 
 <section name="Overview">
@@ -32,22 +32,22 @@
     This guide is intended to help programmers quickly find what they need to develop
     solutions using Commons Math.  It also provides a supplement to the javadoc API documentation,
     providing a little more explanation of the mathematical objects and functions included
-    in the package.    
+    in the package.
     </p>
 </subsection>
 
 <subsection name="0.2 What's in commons-math" href="summary">
     <p>
-    Commons Math is made up of a small set of math/stat utilities addressing 
-    programming problems like the ones in the list below.  This list is not exhaustive, 
-    it's just meant to give a feel for the kinds of things that Commons Math provides.  
+    Commons Math is made up of a small set of math/stat utilities addressing
+    programming problems like the ones in the list below.  This list is not exhaustive,
+    it's just meant to give a feel for the kinds of things that Commons Math provides.
     <ul>
         <li>Computing means, variances and other summary statistics for a list of numbers</li>
         <li>Fitting a line to a set of data points using linear regression</li>
         <li>Fitting a curve to a set of data points</li>
         <li>Finding a smooth curve that passes through a collection of points (interpolation)</li>
         <li>Fitting a parametric model to a set of measurements using least-squares methods</li>
-        <li>Solving equations involving real-valued functions (i.e. root-finding)</li> 
+        <li>Solving equations involving real-valued functions (i.e. root-finding)</li>
         <li>Solving systems of linear equations</li>
         <li>Solving Ordinary Differential Equations</li>
         <li>Minimizing multi-dimensional functions</li>
@@ -57,13 +57,13 @@
         <li>Performing statistical significance tests</li>
         <li>Miscellaneous mathematical functions such as factorials, binomial
             coefficients and "special functions" (e.g. gamma, beta functions)</li>
-    </ul></p> 
+    </ul></p>
     <p>
-    We are actively seeking ideas for additional components that fit into the 
-    <a href="../index.html#summary">Commons Math vision</a> of a set of lightweight, 
+    We are actively seeking ideas for additional components that fit into the
+    <a href="../index.html#summary">Commons Math vision</a> of a set of lightweight,
     self-contained math/stat components useful for solving common programming problems.
-    Suggestions for new components or enhancements to existing functionality are always welcome! 
-    All feedback/suggestions for improvement should be sent to the 
+    Suggestions for new components or enhancements to existing functionality are always welcome!
+    All feedback/suggestions for improvement should be sent to the
     <a href="http://commons.apache.org/mail-lists.html">commons-dev mailing list</a> with
     [math] at the beginning of the subject line.
     </p>
@@ -96,15 +96,15 @@
 
 <subsection name="0.4 How interface contracts are specified in commons-math javadoc" href="contracts">
   <p>
-    You should always read the javadoc class and method comments carefully when using 
+    You should always read the javadoc class and method comments carefully when using
     Commons Math components in your programs.  The javadoc provides references to the algorithms
     that are used, usage notes about limitations, performance, etc. as well as interface contracts.
     Interface contracts are specified in terms of preconditions (what has to be true in order
-    for the method to return valid results), special values returned (e.g. Double.NaN) 
+    for the method to return valid results), special values returned (e.g. Double.NaN)
     or exceptions that may be thrown if the preconditions are not met, and definitions for returned
     values/objects or state changes.</p>
   <p>
-    When the actual parameters provided to a method or the internal state of an object 
+    When the actual parameters provided to a method or the internal state of an object
     make a computation meaningless, a
     <a href="../apidocs/org/apache/commons/math4/exception/MathIllegalArgumentException.html">
       MathIllegalArgumentException</a> or
diff --git a/src/site/xdoc/userguide/random.xml b/src/site/xdoc/userguide/random.xml
index cf683057a..4c84be284 100644
--- a/src/site/xdoc/userguide/random.xml
+++ b/src/site/xdoc/userguide/random.xml
@@ -16,7 +16,7 @@
    See the License for the specific language governing permissions and
    limitations under the License.
   -->
-  
+
 <?xml-stylesheet type="text/xsl" href="./xdoc.xsl"?>
 <document url="random.html">
 
@@ -74,7 +74,7 @@ import org.apache.commons.rng.RandomSource;
 
 // Import common PRNG interface and factory class that instantiates the PRNG.
 // Create (and possibly seed) a PRNG.
-long seed = 17399225432L; // Fixed seed means same results every time 
+long seed = 17399225432L; // Fixed seed means same results every time
 UniformRandomProvider rng = RandomSource.create(RandomSource.MT, seed);
 
 // Create a a factory of correlated vectors.
diff --git a/src/site/xdoc/userguide/special.xml b/src/site/xdoc/userguide/special.xml
index b724c0858..9aacef82c 100644
--- a/src/site/xdoc/userguide/special.xml
+++ b/src/site/xdoc/userguide/special.xml
@@ -7,16 +7,16 @@
     The ASF licenses this file to You under the Apache License, Version 2.0
     (the "License"); you may not use this file except in compliance with
     the License.  You may obtain a copy of the License at
-   
+
          http://www.apache.org/licenses/LICENSE-2.0
-   
+
     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
   -->
-  
+
 <?xml-stylesheet type="text/xsl" href="./xdoc.xsl"?>
 <document url="fraction.html">
   <properties>
diff --git a/src/site/xdoc/userguide/stat.xml b/src/site/xdoc/userguide/stat.xml
index c112c8b42..878962eb9 100644
--- a/src/site/xdoc/userguide/stat.xml
+++ b/src/site/xdoc/userguide/stat.xml
@@ -118,7 +118,7 @@
           </table>
         </p>
         <p>
-          <code>SummaryStatistics</code> can be aggregated using 
+          <code>SummaryStatistics</code> can be aggregated using
           <a href="../apidocs/org/apache/commons/math4/stat/descriptive/AggregateSummaryStatistics.html">
           AggregateSummaryStatistics.</a>  This class can be used to concurrently
           gather statistics for multiple datasets as well as for a combined sample
@@ -135,11 +135,11 @@
            is thread-safe.
            <a href="../apidocs/org/apache/commons/math4/stat/descriptive/SynchronizedDescriptiveStatistics.html">
            SynchronizedDescriptiveStatistics</a> and
-           <a href="../apidocs/org/apache/commons/math4/stat/descriptive/SynchronizedSummaryStatistics.html"> 
+           <a href="../apidocs/org/apache/commons/math4/stat/descriptive/SynchronizedSummaryStatistics.html">
            SynchronizedSummaryStatistics</a>, respectively, provide thread-safe
            versions for applications that require concurrent access to statistical
            aggregates by multiple threads.
-           <a href="../apidocs/org/apache/commons/math4/stat/descriptive/SynchronizedMultiVariateSummaryStatistics.html"> 
+           <a href="../apidocs/org/apache/commons/math4/stat/descriptive/SynchronizedMultiVariateSummaryStatistics.html">
            SynchronizedMultivariateSummaryStatistics</a> provides thread-safe
            <code>MultivariateSummaryStatistics.</code>
         </p>
@@ -239,14 +239,14 @@ DescriptiveStatistics stats = new SynchronizedDescriptiveStatistics();
         </dd>
         <dt>Compute statistics for multiple samples and overall statistics concurrently</dt>
         <br/>
-        <dd>There are two ways to do this using <code>AggregateSummaryStatistics.</code> 
+        <dd>There are two ways to do this using <code>AggregateSummaryStatistics.</code>
         The first is to use an <code>AggregateSummaryStatistics</code> instance
         to accumulate overall statistics contributed by <code>SummaryStatistics</code>
         instances created using
         <a href="../apidocs/org/apache/commons/math4/stat/descriptive/AggregateSummaryStatistics.html#createContributingStatistics()">
         AggregateSummaryStatistics.createContributingStatistics()</a>:
         <source>
-// Create a AggregateSummaryStatistics instance to accumulate the overall statistics 
+// Create a AggregateSummaryStatistics instance to accumulate the overall statistics
 // and AggregatingSummaryStatistics for the subsamples
 AggregateSummaryStatistics aggregate = new AggregateSummaryStatistics();
 SummaryStatistics setOneStats = aggregate.createContributingStatistics();
@@ -501,7 +501,7 @@ System.out.println(regression.getSlopeStdErr());
 System.out.println(regression.getInterceptStdErr() );
 // will return Double.NaN, since we constrained the parameter to zero
          </source>
-         Caution must be exercised when interpreting the slope when no constant is being estimated. The slope 
+         Caution must be exercised when interpreting the slope when no constant is being estimated. The slope
          may be biased.
          </dd>
 
@@ -520,12 +520,12 @@ System.out.println(regression.getInterceptStdErr() );
          </p>
          <p>
          where Y is an n-vector <b>regressand</b>, X is a [n,k] matrix whose k columns are called
-         <b>regressors</b>, b is k-vector of <b>regression parameters</b> and u is an n-vector 
+         <b>regressors</b>, b is k-vector of <b>regression parameters</b> and u is an n-vector
          of <b>error terms</b> or <b>residuals</b>.
          </p>
          <p>
           <a href="../apidocs/org/apache/commons/math4/stat/regression/OLSMultipleLinearRegression.html">
-          OLSMultipleLinearRegression</a> provides Ordinary Least Squares Regression, and 
+          OLSMultipleLinearRegression</a> provides Ordinary Least Squares Regression, and
           <a href="../apidocs/org/apache/commons/math4/stat/regression/GLSMultipleLinearRegression.html">
           GLSMultipleLinearRegression</a> implements Generalized Least Squares.  See the javadoc for these
           classes for details on the algorithms and formulas used.
@@ -535,9 +535,9 @@ System.out.println(regression.getInterceptStdErr() );
            the regressand (Y) value, followed by regressor values; or using a double[][] array with rows corresponding to
            observations. GLS models also require a double[][] array representing the covariance matrix of the error terms.  See
            <a href="../apidocs/org/apache/commons/math4/stat/regression/AbstractMultipleLinearRegression.html#newSampleData(double[], int, int)">
-           AbstractMultipleLinearRegression#newSampleData(double[],int,int)</a>,  
+           AbstractMultipleLinearRegression#newSampleData(double[],int,int)</a>,
            <a href="../apidocs/org/apache/commons/math4/stat/regression/OLSMultipleLinearRegression.html#newSampleData(double[], double[][])">
-           OLSMultipleLinearRegression#newSampleData(double[], double[][])</a> and 
+           OLSMultipleLinearRegression#newSampleData(double[], double[][])</a> and
            <a href="../apidocs/org/apache/commons/math4/stat/regression/GLSMultipleLinearRegression.html#newSampleData(double[], double[][], double[][])">
            GLSMultipleLinearRegression#newSampleData(double[],double[][],double[][])</a> for details.
          </p>
@@ -545,7 +545,7 @@ System.out.println(regression.getInterceptStdErr() );
            <strong>Usage Notes</strong>: <ul>
            <li> Data are validated when invoking any of the newSample, newX, newY or newCovariance methods and
            <code>IllegalArgumentException</code> is thrown when input data arrays do not have matching dimensions
-           or do not contain sufficient data to estimate the model. 
+           or do not contain sufficient data to estimate the model.
            </li>
            <li> By default, regression models are estimated with intercept terms.  In the notation above, this implies that the
            X matrix contains an initial row identically equal to 1.  X data supplied to the newX or newSample methods should not
@@ -568,13 +568,13 @@ x[1] = new double[]{2.0, 0, 0, 0, 0};
 x[2] = new double[]{0, 3.0, 0, 0, 0};
 x[3] = new double[]{0, 0, 4.0, 0, 0};
 x[4] = new double[]{0, 0, 0, 5.0, 0};
-x[5] = new double[]{0, 0, 0, 0, 6.0};          
+x[5] = new double[]{0, 0, 0, 0, 6.0};
 regression.newSampleData(y, x);
           </source>
           </dd>
           <dd>Get regression parameters and diagnostics:
          <source>
-double[] beta = regression.estimateRegressionParameters();       
+double[] beta = regression.estimateRegressionParameters();
 
 double[] residuals = regression.estimateResiduals();
 
@@ -599,7 +599,7 @@ x[1] = new double[]{2.0, 0, 0, 0, 0};
 x[2] = new double[]{0, 3.0, 0, 0, 0};
 x[3] = new double[]{0, 0, 4.0, 0, 0};
 x[4] = new double[]{0, 0, 0, 5.0, 0};
-x[5] = new double[]{0, 0, 0, 0, 6.0};          
+x[5] = new double[]{0, 0, 0, 0, 6.0};
 double[][] omega = new double[6][];
 omega[0] = new double[]{1.1, 0, 0, 0, 0, 0};
 omega[1] = new double[]{0, 2.2, 0, 0, 0, 0};
@@ -607,19 +607,19 @@ omega[2] = new double[]{0, 0, 3.3, 0, 0, 0};
 omega[3] = new double[]{0, 0, 0, 4.4, 0, 0};
 omega[4] = new double[]{0, 0, 0, 0, 5.5, 0};
 omega[5] = new double[]{0, 0, 0, 0, 0, 6.6};
-regression.newSampleData(y, x, omega); 
+regression.newSampleData(y, x, omega);
           </source>
           </dd>
          </dl>
         </p>
-      </subsection>    
+      </subsection>
       <subsection name="1.6 Rank transformations">
       <p>
          Some statistical algorithms require that input data be replaced by ranks.
          The <a href="../apidocs/org/apache/commons/math4/stat/ranking/package-summary.html">
          org.apache.commons.math4.stat.ranking</a> package provides rank transformation.
          <a href="../apidocs/org/apache/commons/math4/stat/ranking/RankingAlgorithm.html">
-         RankingAlgorithm</a> defines the interface for ranking.  
+         RankingAlgorithm</a> defines the interface for ranking.
          <a href="../apidocs/org/apache/commons/math4/stat/ranking/NaturalRanking.html">
          NaturalRanking</a> provides an implementation that has two configuration options.
          <ul>
@@ -640,7 +640,7 @@ double[] ranks = ranking.rank(exampleData);
          </source>
          results in <code>ranks</code> containing <code>{6, 5, 7, 8, 5, 9, 2, 2, 5}.</code>
          <source>
-new NaturalRanking(NaNStrategy.REMOVED,TiesStrategy.SEQUENTIAL).rank(exampleData);   
+new NaturalRanking(NaNStrategy.REMOVED,TiesStrategy.SEQUENTIAL).rank(exampleData);
          </source>
          returns <code>{5, 2, 6, 7, 3, 8, 1, 4}.</code>
       </p>
@@ -648,20 +648,20 @@ new NaturalRanking(NaNStrategy.REMOVED,TiesStrategy.SEQUENTIAL).rank(exampleData
         The default <code>NaNStrategy</code> is NaNStrategy.MAXIMAL.  This makes <code>NaN</code>
         values larger than any other value (including <code>Double.POSITIVE_INFINITY</code>). The
         default <code>TiesStrategy</code> is <code>TiesStrategy.AVERAGE,</code> which assigns tied
-        values the average of the ranks applicable to the sequence of ties.  See the 
+        values the average of the ranks applicable to the sequence of ties.  See the
         <a href="../apidocs/org/apache/commons/math4/stat/ranking/NaturalRanking.html">
         NaturalRanking</a> for more examples and <a href="../apidocs/org/apache/commons/math4/stat/ranking/TiesStrategy.html">
         TiesStrategy</a> and <a href="../apidocs/org/apache/commons/math4/stat/ranking/NaNStrategy.html">NaNStrategy</a>
         for details on these configuration options.
        </p>
-      </subsection>  
+      </subsection>
       <subsection name="1.7 Covariance and correlation">
         <p>
           The <a href="../apidocs/org/apache/commons/math4/stat/correlation/package-summary.html">
           org.apache.commons.math4.stat.correlation</a> package computes covariances
           and correlations for pairs of arrays or columns of a matrix.
           <a href="../apidocs/org/apache/commons/math4/stat/correlation/Covariance.html">
-          Covariance</a> computes covariances, 
+          Covariance</a> computes covariances,
           <a href="../apidocs/org/apache/commons/math4/stat/correlation/PearsonsCorrelation.html">
           PearsonsCorrelation</a> provides Pearson's Product-Moment correlation coefficients,
           <a href="../apidocs/org/apache/commons/math4/stat/correlation/SpearmansCorrelation.html">
@@ -676,10 +676,10 @@ new NaturalRanking(NaNStrategy.REMOVED,TiesStrategy.SEQUENTIAL).rank(exampleData
            Unbiased covariances are given by the formula <br/>
            <code>cov(X, Y) = sum [(x<sub>i</sub> - E(X))(y<sub>i</sub> - E(Y))] / (n - 1)</code>
            where <code>E(X)</code> is the mean of <code>X</code> and <code>E(Y)</code>
-           is the mean of the <code>Y</code> values. Non-bias-corrected estimates use 
+           is the mean of the <code>Y</code> values. Non-bias-corrected estimates use
            <code>n</code> in place of <code>n - 1.</code>  Whether or not covariances are
            bias-corrected is determined by the optional parameter, "biasCorrected," which
-           defaults to <code>true.</code>      
+           defaults to <code>true.</code>
           </li>
           <li>
           <a href="../apidocs/org/apache/commons/math4/stat/correlation/PearsonsCorrelation.html">
@@ -691,7 +691,7 @@ new NaturalRanking(NaNStrategy.REMOVED,TiesStrategy.SEQUENTIAL).rank(exampleData
           <li>
           <a href="../apidocs/org/apache/commons/math4/stat/correlation/SpearmansCorrelation.html">
           SpearmansCorrelation</a> applies a rank transformation to the input data and computes Pearson's
-          correlation on the ranked data.  The ranking algorithm is configurable. By default, 
+          correlation on the ranked data.  The ranking algorithm is configurable. By default,
           <a href="../apidocs/org/apache/commons/math4/stat/ranking/NaturalRanking.html">
           NaturalRanking</a> with default strategies for handling ties and NaN values is used.
           </li>
@@ -699,7 +699,7 @@ new NaturalRanking(NaNStrategy.REMOVED,TiesStrategy.SEQUENTIAL).rank(exampleData
           <a href="../apidocs/org/apache/commons/math4/stat/correlation/KendallsCorrelation.html">
           KendallsCorrelation</a> computes the association between two measured quantities. A tau test
           is a non-parametric hypothesis test for statistical dependence based on the tau coefficient.
-          </li> 
+          </li>
           </ul>
         </p>
         <p>
@@ -727,7 +727,7 @@ new Covariance().computeCovarianceMatrix(data)
           </source>
           The i-jth entry of the returned matrix is the unbiased covariance of the ith and jth
           columns of <code>data.</code> As above, to get non-bias-corrected covariances,
-          use 
+          use
          <source>
 computeCovarianceMatrix(data, false)
          </source>
@@ -750,7 +750,7 @@ new PearsonsCorrelation().correlation(x, y)
 new PearsonsCorrelation().computeCorrelationMatrix(data)
           </source>
           The i-jth entry of the returned matrix is the Pearson's product-moment correlation between the
-          ith and jth columns of <code>data.</code> 
+          ith and jth columns of <code>data.</code>
           </dd>
           <br/>
           <dt><strong>Pearson's correlation significance and standard errors</strong></dt>
@@ -768,7 +768,7 @@ correlation.getCorrelationStandardErrors();
           </source>
           The formula used to compute the standard error is <br/>
           <code>SE<sub>r</sub> = ((1 - r<sup>2</sup>) / (n - 2))<sup>1/2</sup></code><br/>
-           where <code>r</code> is the estimated correlation coefficient and 
+           where <code>r</code> is the estimated correlation coefficient and
           <code>n</code> is the number of observations in the source dataset.<br/><br/>
           <strong>p-values</strong> for the (2-sided) null hypotheses that elements of
           a correlation matrix are zero populate the RealMatrix returned by
@@ -780,9 +780,9 @@ correlation.getCorrelationPValues()
           a value with absolute value greater than or equal to <br/>
           <code>|r<sub>ij</sub>|((n - 2) / (1 - r<sub>ij</sub><sup>2</sup>))<sup>1/2</sup></code>,
           where <code>r<sub>ij</sub></code> is the estimated correlation between the ith and jth
-          columns of the source array or RealMatrix. This is sometimes referred to as the 
+          columns of the source array or RealMatrix. This is sometimes referred to as the
           <i>significance</i> of the coefficient.<br/><br/>
-          For example, if <code>data</code> is a RealMatrix with 2 columns and 10 rows, then 
+          For example, if <code>data</code> is a RealMatrix with 2 columns and 10 rows, then
           <source>
 new PearsonsCorrelation(data).getCorrelationPValues().getEntry(0,1)
           </source>
@@ -798,13 +798,13 @@ new PearsonsCorrelation(data).getCorrelationPValues().getEntry(0,1)
           <source>
 new SpearmansCorrelation().correlation(x, y)
           </source>
-          This is equivalent to 
+          This is equivalent to
           <source>
 RankingAlgorithm ranking = new NaturalRanking();
 new PearsonsCorrelation().correlation(ranking.rank(x), ranking.rank(y))
           </source>
           </dd>
-          <br/>     
+          <br/>
           <dt><strong>Kendalls's tau rank correlation coefficient</strong></dt>
           <br/>
           <dd>To compute the Kendall's tau rank correlation between two double arrays
@@ -823,7 +823,7 @@ new KendallsCorrelation().correlation(x, y)
           <a href="http://www.itl.nist.gov/div898/handbook/prc/section2/prc22.htm">
           Student's t</a>,
           <a href="http://www.itl.nist.gov/div898/handbook/eda/section3/eda35f.htm">
-          Chi-Square</a>, 
+          Chi-Square</a>,
           <a href="http://en.wikipedia.org/wiki/G-test">G Test</a>,
           <a href="http://www.itl.nist.gov/div898/handbook/prc/section4/prc43.htm">
           One-Way ANOVA</a>,
@@ -853,7 +853,7 @@ new KendallsCorrelation().correlation(x, y)
           <a href="../apidocs/org/apache/commons/math4/stat/inference/BinomialTest.html">
           BinomialTest</a> and
           <a href="../apidocs/org/apache/commons/math4/stat/inference/KolmogorovSmirnovTest.html">
-          KolmogorovSmirnovTest</a>.                  
+          KolmogorovSmirnovTest</a>.
           The <a href="../apidocs/org/apache/commons/math4/stat/inference/TestUtils.html">
           TestUtils</a> class provides static methods to get test instances or
           to compute test statistics directly.  The examples below all use the
@@ -891,7 +891,7 @@ new KendallsCorrelation().correlation(x, y)
           <li>The G test implementation provides two p-values:
            <code>gTest(expected, observed)</code>, which is the tail probability beyond
            <code>g(expected, observed)</code> in the ChiSquare distribution with degrees
-           of freedom one less than the common length of input arrays and 
+           of freedom one less than the common length of input arrays and
            <code>gTestIntrinsic(expected, observed)</code> which is the same tail
            probability computed using a ChiSquare distribution with one less degeree
            of freedom. </li>
@@ -908,9 +908,9 @@ new KendallsCorrelation().correlation(x, y)
            \(F_n\) is the empirical distribution of the \(n\) sample data points.  Both
            one-sample tests against a <code>RealDistribution</code> and two-sample tests
            (comparing two empirical distributions) are supported.  For one-sample tests,
-           the distribution of \(D_n\) is estimated using the method in 
+           the distribution of \(D_n\) is estimated using the method in
            <a href="http://www.jstatsoft.org/v08/i18/">Evaluating Kolmogorov's Distribution</a> by
-           George Marsaglia, Wai Wan Tsang, and Jingbo Wang, with quick decisions in some cases 
+           George Marsaglia, Wai Wan Tsang, and Jingbo Wang, with quick decisions in some cases
            for extreme values using the method described in
            <a href="http://www.jstatsoft.org/v39/i11/"> Computing the Two-Sided Kolmogorov-Smirnov
            Distribution</a> by Richard Simard and Pierre L'Ecuyer.  In the 2-sample case, estimation
@@ -1163,7 +1163,7 @@ System.out.println(TestUtils.gTestDataSetsComparison(obs1, obs2)); // p-value
           <source>
 new GTest().rootLogLikelihoodRatio(5, 1995, 0, 100000);
           </source>
-          returns the root log likelihood associated with the null hypothesis that A 
+          returns the root log likelihood associated with the null hypothesis that A
           and B are independent.
           </dd>
           <br/>
@@ -1219,7 +1219,7 @@ TestUtils.kolmogorovSmirnovStatistic(unitNormal, sample)
           <source>
 TestUtils.kolmogorovSmirnovStatistic(x, y)
           </source>
-          to compute the D-statistic and 
+          to compute the D-statistic and
           <source>
 TestUtils.kolmogorovSmirnovTest(x, y)
           </source>
diff --git a/src/site/xdoc/userguide/transform.xml b/src/site/xdoc/userguide/transform.xml
index c2ad9585f..e270bff23 100644
--- a/src/site/xdoc/userguide/transform.xml
+++ b/src/site/xdoc/userguide/transform.xml
@@ -16,7 +16,7 @@
    See the License for the specific language governing permissions and
    limitations under the License.
   -->
-  
+
 <?xml-stylesheet type="text/xsl" href="./xdoc.xsl"?>
 <document url="transform.html">
 
diff --git a/src/site/xdoc/userguide/utilities.xml b/src/site/xdoc/userguide/utilities.xml
index 89aad0eee..13c1180b5 100644
--- a/src/site/xdoc/userguide/utilities.xml
+++ b/src/site/xdoc/userguide/utilities.xml
@@ -16,7 +16,7 @@
    See the License for the specific language governing permissions and
    limitations under the License.
   -->
-  
+
 <?xml-stylesheet type="text/xsl" href="./xdoc.xsl"?>
 <document url="utilities.html">
 
@@ -39,14 +39,14 @@
 
 <subsection name="6.2 Double array utilities" href="arrays">
     <p>
-    To maintain statistics based on a "rolling" window of values, a resizable 
-    array implementation was developed and is provided for reuse in the 
+    To maintain statistics based on a "rolling" window of values, a resizable
+    array implementation was developed and is provided for reuse in the
     <code>util</code> package.  The core functionality provided is described in
-    the documentation for the interface, 
+    the documentation for the interface,
     <a href="../apidocs/org/apache/commons/math4/util/DoubleArray.html">
     DoubleArray</a>.  This interface adds one method,
-    <code>addElementRolling(double)</code> to basic list accessors. 
-    The <code>addElementRolling</code> method adds an element 
+    <code>addElementRolling(double)</code> to basic list accessors.
+    The <code>addElementRolling</code> method adds an element
     (the actual parameter) to the end of the list and removes the first element
      in the list.
     </p>
@@ -64,10 +64,10 @@
     the end needs to be created.  Both of these operations are handled
     automatically, with frequency / effect driven by the configuration
     properties <code>expansionMode</code>, <code>expansionFactor</code> and
-    <code>contractionCriteria.</code>  See 
+    <code>contractionCriteria.</code>  See
     <a href="../apidocs/org/apache/commons/math4/util/ResizableDoubleArray.html">
     ResizableDoubleArray</a>
-    for details. 
+    for details.
     </p>
 </subsection>
 
@@ -103,7 +103,7 @@
             default: return 6.0;
         }
     }
-    
+
     public double getB(int n, double x) {
         double y = (2.0 * n) - 1.0;
         return y * y;
@@ -129,7 +129,7 @@
             return n;
         }
     }
-    
+
     public double getB(int n, double x) {
         if (n % 2 == 0) {
             return -x;
@@ -151,17 +151,17 @@
     <a href="../apidocs/org/apache/commons/math4/util/ArithmeticUtils.html">ArithmeticUtils</a>
     utility class.  ArithmeticUtils currently includes methods to compute the following: <ul>
     <li>
-    Binomial coefficients -- "n choose k" available as an (exact) long value,  
+    Binomial coefficients -- "n choose k" available as an (exact) long value,
     <code>binomialCoefficient(int, int)</code> for small n, k; as a double,
     <code>binomialCoefficientDouble(int, int)</code> for larger values; and in
-    a "super-sized" version, <code>binomialCoefficientLog(int, int)</code> 
+    a "super-sized" version, <code>binomialCoefficientLog(int, int)</code>
     that returns the natural logarithm of the value.</li>
     <li>
     Stirling numbers of the second kind -- S(n,k) as an exact long value
     <code>stirlingS2(int, int)</code> for small n, k.</li>
     <li>
     Factorials -- like binomial coefficients, these are available as exact long
-    values, <code>factorial(int)</code>;  doubles, 
+    values, <code>factorial(int)</code>;  doubles,
     <code>factorialDouble(int)</code>; or logs, <code>factorialLog(int)</code>. </li>
     <li>
     Least common multiple and greatest common denominator functions.
@@ -186,7 +186,7 @@
     <p>
         FastMath speed is achieved by relying heavily on optimizing compilers to
         native code present in many JVM todays and use of large tables. Precomputed
-        literal arrays are provided in this class to speed up load time. These 
+        literal arrays are provided in this class to speed up load time. These
         precomputed tables are used in the default configuration, to improve speed
         even at first use of the class. If users prefer to compute the tables
         automatically at load time, they can change a compile-time constant. This will
diff --git a/src/userguide/java/org/apache/commons/math4/userguide/ClusterAlgorithmComparison.java b/src/userguide/java/org/apache/commons/math4/userguide/ClusterAlgorithmComparison.java
index 19232994b..9a9073da5 100644
--- a/src/userguide/java/org/apache/commons/math4/userguide/ClusterAlgorithmComparison.java
+++ b/src/userguide/java/org/apache/commons/math4/userguide/ClusterAlgorithmComparison.java
@@ -68,7 +68,7 @@ public class ClusterAlgorithmComparison {
         if (factor < 0 || factor > 1) {
             throw new IllegalArgumentException();
         }
-        
+
         ContinuousDistribution.Sampler dist = new NormalDistribution(0.0, noise).createSampler(rng);
 
         List<Vector2D> points = new ArrayList<>();
@@ -77,11 +77,11 @@ public class ClusterAlgorithmComparison {
         for (double angle = 0; angle < range; angle += step) {
             Vector2D outerCircle = Vector2D.of(FastMath.cos(angle), FastMath.sin(angle));
             Vector2D innerCircle = outerCircle.multiply(factor);
-            
+
             points.add(outerCircle.add(generateNoiseVector(dist)));
             points.add(innerCircle.add(generateNoiseVector(dist)));
         }
-        
+
         if (shuffle) {
             ListSampler.shuffle(rng, points);
         }
@@ -97,7 +97,7 @@ public class ClusterAlgorithmComparison {
 
         int nSamplesOut = samples / 2;
         int nSamplesIn = samples - nSamplesOut;
-        
+
         List<Vector2D> points = new ArrayList<>();
         double range = FastMath.PI;
         double step = range / (nSamplesOut / 2.0);
@@ -111,7 +111,7 @@ public class ClusterAlgorithmComparison {
             Vector2D innerCircle = Vector2D.of(1 - FastMath.cos(angle), 1 - FastMath.sin(angle) - 0.5);
             points.add(innerCircle.add(generateNoiseVector(dist)));
         }
-        
+
         if (shuffle) {
             ListSampler.shuffle(rng, points);
         }
@@ -133,29 +133,29 @@ public class ClusterAlgorithmComparison {
         for (int i = 0; i < centers; i++) {
             centerPoints[i] = Vector2D.of(uniform.sample(), uniform.sample());
         }
-        
+
         int[] nSamplesPerCenter = new int[centers];
         int count = samples / centers;
         Arrays.fill(nSamplesPerCenter, count);
-        
+
         for (int i = 0; i < samples % centers; i++) {
             nSamplesPerCenter[i]++;
         }
-        
+
         List<Vector2D> points = new ArrayList<>();
         for (int i = 0; i < centers; i++) {
             for (int j = 0; j < nSamplesPerCenter[i]; j++) {
                 points.add(centerPoints[i].add(generateNoiseVector(gauss)));
             }
         }
-        
+
         if (shuffle) {
             ListSampler.shuffle(rng, points);
         }
 
         return points;
     }
-    
+
     public static List<Vector2D> makeRandom(int samples) {
         SobolSequenceGenerator generator = new SobolSequenceGenerator(2);
         generator.skipTo(999999);
@@ -167,14 +167,14 @@ public class ClusterAlgorithmComparison {
             Vector2D point = Vector2D.of(vector);
             points.add(point);
         }
-        
+
         return points;
     }
 
     public static Vector2D generateNoiseVector(ContinuousDistribution.Sampler distribution) {
         return Vector2D.of(distribution.sample(), distribution.sample());
     }
-    
+
     public static List<DoublePoint> normalize(final List<Vector2D> input,
                                               double minX,
                                               double maxX,
@@ -191,16 +191,16 @@ public class ClusterAlgorithmComparison {
         }
         return points;
     }
-    
+
     @SuppressWarnings("serial")
     public static class Display extends ExampleFrame {
-        
+
         public Display() {
             setTitle("Commons-Math: Cluster algorithm comparison");
             setSize(800, 800);
-            
+
             setLayout(new GridBagLayout());
-            
+
             int nSamples = 1500;
 
             final long seed = RandomSource.createLong(); // Random seed.
@@ -213,7 +213,7 @@ public class ClusterAlgorithmComparison {
             datasets.add(normalize(makeRandom(nSamples), -1, 1, -1, 1));
 
             List<Pair<String, Clusterer<DoublePoint>>> algorithms = new ArrayList<>();
-            
+
             algorithms.add(new Pair<String, Clusterer<DoublePoint>>("KMeans\n(k=2)",
                                                                     new KMeansPlusPlusClusterer<>(2)));
             algorithms.add(new Pair<String, Clusterer<DoublePoint>>("KMeans\n(k=3)",
@@ -224,7 +224,7 @@ public class ClusterAlgorithmComparison {
                                                                     new FuzzyKMeansClusterer<>(3, 10)));
             algorithms.add(new Pair<String, Clusterer<DoublePoint>>("DBSCAN\n(eps=.1, min=3)",
                                                                     new DBSCANClusterer<>(0.1, 3)));
-            
+
             GridBagConstraints c = new GridBagConstraints();
             c.fill = GridBagConstraints.VERTICAL;
             c.gridx = 0;
@@ -248,7 +248,7 @@ public class ClusterAlgorithmComparison {
                     c.gridx++;
                 }
                 c.gridy++;
-            }            
+            }
         }
     }
 
@@ -264,7 +264,7 @@ public class ClusterAlgorithmComparison {
             this.clusters = clusters;
             this.duration = duration;
         }
-        
+
         @Override
         protected void paintComponent(Graphics g) {
             super.paintComponent(g);
@@ -276,10 +276,10 @@ public class ClusterAlgorithmComparison {
             int h = getHeight();
 
             g2.clearRect(0, 0, w, h);
-            
+
             g2.setPaint(Color.black);
             g2.drawRect(0, 0, w - 1, h - 1);
-            
+
             int index = 0;
             Color[] colors = new Color[] { Color.red, Color.blue, Color.green.darker() };
             for (Cluster<DoublePoint> cluster : clusters) {
@@ -289,7 +289,7 @@ public class ClusterAlgorithmComparison {
                     double[] arr = p.getPoint();
                     g2.fill(new Ellipse2D.Double(arr[0] - 1, arr[1] - 1, 3, 3));
                 }
-                
+
                 Clusterable p = transform(cluster.centroid(), w, h);
                 double[] arr = p.getPoint();
                 Shape s = new Ellipse2D.Double(arr[0] - 4, arr[1] - 4, 8, 8);
@@ -297,11 +297,11 @@ public class ClusterAlgorithmComparison {
                 g2.setPaint(Color.black);
                 g2.draw(s);
             }
-            
+
             g2.setPaint(Color.black);
             g2.drawString(String.format("%.2f s", duration / 1e3), w - 40, h - 5);
-        }        
-        
+        }
+
         @Override
         public Dimension getPreferredSize() {
             return new Dimension(150, 150);
diff --git a/src/userguide/java/org/apache/commons/math4/userguide/ExampleUtils.java b/src/userguide/java/org/apache/commons/math4/userguide/ExampleUtils.java
index 59ab644e3..000baabca 100644
--- a/src/userguide/java/org/apache/commons/math4/userguide/ExampleUtils.java
+++ b/src/userguide/java/org/apache/commons/math4/userguide/ExampleUtils.java
@@ -39,12 +39,12 @@ public class ExampleUtils {
 
     @SuppressWarnings("serial")
     public static class ExampleFrame extends JFrame {
-        
+
         /**
          * Returns the main panel which should be printed by the screenshot action.
          * <p>
          * By default, it returns the content pane of this frame, but can be overridden
-         * in case the frame has a global scroll pane which would cut off any offscreen content. 
+         * in case the frame has a global scroll pane which would cut off any offscreen content.
          *
          * @return the main panel to print
          */
@@ -73,14 +73,14 @@ public class ExampleUtils {
                         }
                     }
                 });
-                
+
                 JMenuItem exit = new JMenuItem("Exit");
                 exit.addActionListener(new ActionListener() {
                     public void actionPerformed(ActionEvent e) {
                         System.exit(0);
                     }
                 });
-                
+
                 JMenu menu = new JMenu("File");
                 menu.add(screenshot);
                 menu.add(exit);
@@ -102,7 +102,7 @@ public class ExampleUtils {
         component.paint(image.getGraphics());
         return image;
     }
-    
+
     public static BufferedImage resizeImage(BufferedImage originalImage, int width, int height, int type) throws IOException {
         BufferedImage resizedImage = new BufferedImage(width, height, type);
         Graphics2D g = resizedImage.createGraphics();
diff --git a/src/userguide/java/org/apache/commons/math4/userguide/FastMathTestPerformance.java b/src/userguide/java/org/apache/commons/math4/userguide/FastMathTestPerformance.java
index d140393d2..cbe682b3a 100644
--- a/src/userguide/java/org/apache/commons/math4/userguide/FastMathTestPerformance.java
+++ b/src/userguide/java/org/apache/commons/math4/userguide/FastMathTestPerformance.java
@@ -21,7 +21,7 @@ import org.apache.commons.math4.util.FastMath;
 
 /**
  * Performance benchmark for FastMath.
- * 
+ *
  */
 public class FastMathTestPerformance {
     private static final int RUNS = Integer.parseInt(System.getProperty("testRuns","10000000"));
@@ -288,7 +288,7 @@ public class FastMathTestPerformance {
         report("cos",strictTime,fastTime,mathTime);
         assertTrue(!Double.isNaN(x));
     }
-            
+
     private static void testAcos() {
         double x = 0;
         long time = System.nanoTime();
@@ -594,7 +594,7 @@ public class FastMathTestPerformance {
         report("tanh",strictTime,fastTime,mathTime);
         assertTrue(!Double.isNaN(x));
     }
-     
+
     private static void testExpm1() {
         double x = 0;
         long time = System.nanoTime();
diff --git a/src/userguide/java/org/apache/commons/math4/userguide/LowDiscrepancyGeneratorComparison.java b/src/userguide/java/org/apache/commons/math4/userguide/LowDiscrepancyGeneratorComparison.java
index b94a8e922..b3174e1f1 100644
--- a/src/userguide/java/org/apache/commons/math4/userguide/LowDiscrepancyGeneratorComparison.java
+++ b/src/userguide/java/org/apache/commons/math4/userguide/LowDiscrepancyGeneratorComparison.java
@@ -60,7 +60,7 @@ public class LowDiscrepancyGeneratorComparison {
 
         // normalize points first
         points = normalize(points);
-        
+
         // now test if the sample is within the unit circle
         List<Vector2D> circlePoints = new ArrayList<>();
         for (Vector2D p : points) {
@@ -80,7 +80,7 @@ public class LowDiscrepancyGeneratorComparison {
             Vector2D point = Vector2D.of(vector);
             points.add(point);
         }
-        
+
         return normalize(points);
     }
 
@@ -92,16 +92,16 @@ public class LowDiscrepancyGeneratorComparison {
             minX = FastMath.min(minX, p.getX());
             maxX = FastMath.max(maxX, p.getX());
         }
-        
+
         double minY, maxY;
-        
+
         // use the minimum to detect if we either have input values in the range [0, 1] or [-sqrt(3), sqrt(3)]
         if (FastMath.abs(minX) < 0.1) {
             minX = minY = 0.0;
             maxX = maxY = 1.0;
         } else {
             minX = minY = -FastMath.sqrt(3);
-            maxX = maxY = FastMath.sqrt(3);            
+            maxX = maxY = FastMath.sqrt(3);
         }
 
         double rangeX = maxX - minX;
@@ -116,16 +116,16 @@ public class LowDiscrepancyGeneratorComparison {
         }
         return points;
     }
-    
+
     @SuppressWarnings("serial")
     public static class Display extends ExampleFrame {
-        
+
         public Display() {
             setTitle("Commons-Math: Pseudo/Quasi-random examples");
             setSize(800, 800);
-            
+
             setLayout(new GridBagLayout());
-            
+
             int[] datasets = new int[] { 256, 1000, 2500, 1000 };
             List<Pair<String, RandomVectorGenerator>> generators = new ArrayList<Pair<String, RandomVectorGenerator>>();
 
@@ -137,18 +137,18 @@ public class LowDiscrepancyGeneratorComparison {
                     RandomSource.create(RandomSource.MT, 123456789),
                     RandomSource.create(RandomSource.MT, 987654321)
                 };
-                
+
                 public double[] nextVector() {
                     final double[] vector = new double[2];
                     vector[0] = rngs[0].nextDouble();
                     vector[1] = rngs[1].nextDouble();
                     return vector;
                 }
-                
-            }));            
-            generators.add(new Pair<>("HaltonSequence", new HaltonSequenceGenerator(2)));            
-            generators.add(new Pair<>("SobolSequence", new SobolSequenceGenerator(2)));            
-            
+
+            }));
+            generators.add(new Pair<>("HaltonSequence", new HaltonSequenceGenerator(2)));
+            generators.add(new Pair<>("SobolSequence", new SobolSequenceGenerator(2)));
+
             GridBagConstraints c = new GridBagConstraints();
             c.fill = GridBagConstraints.VERTICAL;
             c.gridx = 1;
@@ -163,7 +163,7 @@ public class LowDiscrepancyGeneratorComparison {
                 c.gridx++;
             }
             int saveY = ++c.gridy;
-            
+
             c.gridx = 0;
             for (int type = 0; type < 4; type++) {
                 JLabel text = new JLabel("n=" + String.valueOf(datasets[type]));
@@ -198,7 +198,7 @@ public class LowDiscrepancyGeneratorComparison {
                 }
 
                 c.gridy++;
-            }            
+            }
         }
     }
 
@@ -212,7 +212,7 @@ public class LowDiscrepancyGeneratorComparison {
         public Plot(final List<Vector2D> points) {
             this.points = points;
         }
-        
+
         @Override
         protected void paintComponent(Graphics g) {
             super.paintComponent(g);
@@ -224,17 +224,17 @@ public class LowDiscrepancyGeneratorComparison {
             int h = getHeight();
 
             g2.clearRect(0, 0, w, h);
-            
+
             g2.setPaint(Color.black);
             g2.drawRect(0, 0, w - 1, h - 1);
-            
+
             for (Vector2D point : points) {
                 Vector2D p = transform(point, w, h);
                 double[] arr = p.toArray();
                 g2.draw(new Rectangle2D.Double(arr[0] - 1, arr[1] - 1, 2, 2));
             }
-        }        
-        
+        }
+
         @Override
         public Dimension getPreferredSize() {
             return new Dimension(140, 140);
diff --git a/src/userguide/java/org/apache/commons/math4/userguide/filter/CannonballExample.java b/src/userguide/java/org/apache/commons/math4/userguide/filter/CannonballExample.java
index 66e40603f..f0a5b14fe 100644
--- a/src/userguide/java/org/apache/commons/math4/userguide/filter/CannonballExample.java
+++ b/src/userguide/java/org/apache/commons/math4/userguide/filter/CannonballExample.java
@@ -53,35 +53,35 @@ import com.xeiam.xchart.StyleManager.LegendPosition;
 public class CannonballExample {
 
     public static class Cannonball {
-    
+
         private final double[] gravity = { 0, -9.81 };
         private final double[] velocity;
         private final double[] location;
-        
+
         private final double timeslice;
         private final double measurementNoise;
-        
+
         private final GaussianRandomGenerator rng;
-        
+
         public Cannonball(double timeslice, double angle, double initialVelocity, double measurementNoise, int seed) {
             this.timeslice = timeslice;
-            
+
             final double angleInRadians = FastMath.toRadians(angle);
             this.velocity = new double[] {
                     initialVelocity * FastMath.cos(angleInRadians),
                     initialVelocity * FastMath.sin(angleInRadians)
             };
-            
+
             this.location = new double[] { 0, 0 };
-            
+
             this.measurementNoise = measurementNoise;
             this.rng = new GaussianRandomGenerator(RandomSource.create(RandomSource.WELL_19937_C, seed));
         }
-        
+
         public double getX() {
             return location[0];
         }
-        
+
         public double getY() {
             return location[1];
         }
@@ -97,18 +97,18 @@ public class CannonballExample {
         public double getXVelocity() {
             return velocity[0];
         }
-        
+
         public double getYVelocity() {
             return velocity[1];
         }
-        
+
         public void step() {
             // Break gravitational force into a smaller time slice.
             double[] slicedGravity = gravity.clone();
             for ( int i = 0; i < slicedGravity.length; i++ ) {
                 slicedGravity[i] *= timeslice;
             }
-            
+
             // Apply the acceleration to velocity.
             double[] slicedVelocity = velocity.clone();
             for ( int i = 0; i < velocity.length; i++ ) {
@@ -123,9 +123,9 @@ public class CannonballExample {
             }
         }
     }
-    
+
     public static void cannonballTest(Chart chart) {
-        
+
         // time interval for each iteration
         final double dt = 0.1;
         // the number of iterations to run
@@ -139,7 +139,7 @@ public class CannonballExample {
 
         // the cannonball itself
         final Cannonball cannonball = new Cannonball(dt, angle, initialVelocity, measurementNoise, 1000);
-        
+
         // A = [ 1, dt, 0,  0 ]  =>  x(n+1) = x(n) + vx(n)
         //     [ 0,  1, 0,  0 ]  => vx(n+1) =        vx(n)
         //     [ 0,  0, 1, dt ]  =>  y(n+1) =              y(n) + vy(n)
@@ -148,7 +148,7 @@ public class CannonballExample {
                 { 1, dt, 0,  0 },
                 { 0,  1, 0,  0 },
                 { 0,  0, 1, dt },
-                { 0,  0, 0,  1 }       
+                { 0,  0, 0,  1 }
         });
 
         // The control vector, which adds acceleration to the kinematic equations.
@@ -183,7 +183,7 @@ public class CannonballExample {
                 { 0, 0, 1, 0 },
                 { 0, 0, 0, 0 }
         });
-        
+
         // This is our guess of the initial state.  I intentionally set the Y value
         // wrong to illustrate how fast the Kalman filter will pick up on that.
         final double speedX = cannonball.getXVelocity();
@@ -201,7 +201,7 @@ public class CannonballExample {
 
         // we assume no process noise -> zero matrix
         final RealMatrix Q = MatrixUtils.createRealMatrix(4, 4);
-        
+
         // the measurement covariance matrix
         final RealMatrix R = MatrixUtils.createRealMatrix(new double[][] {
                 { var,    0,   0,    0 },
@@ -220,7 +220,7 @@ public class CannonballExample {
         final List<Number> measuredY = new ArrayList<>();
         final List<Number> kalmanX = new ArrayList<>();
         final List<Number> kalmanY = new ArrayList<>();
-        
+
         for (int i = 0; i < iterations; i++) {
 
             // get real location
@@ -251,7 +251,7 @@ public class CannonballExample {
 
         Series dataset = chart.addSeries("true", realX, realY);
         dataset.setMarker(SeriesMarker.NONE);
-        
+
         dataset = chart.addSeries("measured", measuredX, measuredY);
         dataset.setLineStyle(SeriesLineStyle.DOT_DOT);
         dataset.setMarker(SeriesMarker.NONE);
@@ -275,10 +275,10 @@ public class CannonballExample {
         chart.getStyleManager().setLegendPadding(6);
         chart.getStyleManager().setLegendSeriesLineLength(10);
         chart.getStyleManager().setAxisTickLabelsFont(new Font("Arial", Font.PLAIN, 10));
-        
+
         chart.getStyleManager().setChartBackgroundColor(Color.white);
         chart.getStyleManager().setChartPadding(4);
-        
+
         chart.getStyleManager().setChartType(ChartType.Line);
         return chart;
     }
@@ -290,20 +290,20 @@ public class CannonballExample {
         Chart chart = createChart("Cannonball", LegendPosition.InsideNE);
         cannonballTest(chart);
         container.add(new XChartPanel(chart));
-        
+
         container.setBorder(BorderFactory.createLineBorder(Color.black, 1));
         return container;
     }
 
     @SuppressWarnings("serial")
     public static class Display extends ExampleFrame {
-        
+
         private JComponent container;
 
         public Display() {
             setTitle("Commons Math: Kalman Filter - Cannonball");
             setSize(800, 600);
-            
+
             container = new JPanel();
             JComponent comp = createComponent();
             container.add(comp);
diff --git a/src/userguide/java/org/apache/commons/math4/userguide/filter/ConstantVoltageExample.java b/src/userguide/java/org/apache/commons/math4/userguide/filter/ConstantVoltageExample.java
index cce49b8d5..af9d544c1 100644
--- a/src/userguide/java/org/apache/commons/math4/userguide/filter/ConstantVoltageExample.java
+++ b/src/userguide/java/org/apache/commons/math4/userguide/filter/ConstantVoltageExample.java
@@ -53,7 +53,7 @@ import com.xeiam.xchart.StyleManager.LegendPosition;
 public class ConstantVoltageExample {
 
     public static class VoltMeter {
-        
+
         private final double initialVoltage;
         private final double processNoise;
         private final double measurementNoise;
@@ -68,20 +68,20 @@ public class ConstantVoltageExample {
             this.measurementNoise = measurementNoise;
             rng = new GaussianRandomGenerator(RandomSource.create(RandomSource.WELL_19937_C, seed));
         }
-        
+
         /**
          * Returns the real voltage without any measurement noise.
-         *  
+         *
          * @return the real voltage
          */
         public double getVoltage() {
             return voltage;
         }
-        
+
         public double getMeasuredVoltage() {
-            return getVoltage() + rng.nextNormalizedDouble() * measurementNoise; 
+            return getVoltage() + rng.nextNormalizedDouble() * measurementNoise;
         }
-        
+
         public void step() {
             // we apply only the process noise
             voltage = initialVoltage + rng.nextNormalizedDouble() * processNoise;
@@ -96,7 +96,7 @@ public class ConstantVoltageExample {
         final double processNoise = 1e-5d;
 
         final VoltMeter voltMeter = new VoltMeter(voltage, processNoise, measurementNoise, 2);
-        
+
         // the state transition matrix -> constant
         final RealMatrix A = new Array2DRowRealMatrix(new double[] { 1d });
 
@@ -108,7 +108,7 @@ public class ConstantVoltageExample {
 
         // the initial state vector -> slightly wrong
         final RealVector x0 = new ArrayRealVector(new double[] { 1.45 });
-        
+
         // the process covariance matrix
         final RealMatrix Q = new Array2DRowRealMatrix(new double[] { processNoise * processNoise });
 
@@ -128,7 +128,7 @@ public class ConstantVoltageExample {
         final List<Number> kalmanVoltageSeries = new ArrayList<>();
 
         final List<Number> covSeries = new ArrayList<>();
-        
+
         for (int i = 0; i < 300; i++) {
             xAxis.add(i);
 
@@ -152,7 +152,7 @@ public class ConstantVoltageExample {
 
         Series dataset = chart1.addSeries("real", xAxis, realVoltageSeries);
         dataset.setMarker(SeriesMarker.NONE);
-        
+
         dataset = chart1.addSeries("measured", xAxis, measuredVoltageSeries);
         dataset.setLineStyle(SeriesLineStyle.DOT_DOT);
         dataset.setMarker(SeriesMarker.NONE);
@@ -166,7 +166,7 @@ public class ConstantVoltageExample {
 
         chart2.setYAxisTitle("(Voltage)²");
         chart2.setXAxisTitle("Iteration");
-        
+
         dataset = chart2.addSeries("cov", xAxis, covSeries);
         dataset.setLineColor(Color.black);
         dataset.setLineStyle(SeriesLineStyle.SOLID);
@@ -187,10 +187,10 @@ public class ConstantVoltageExample {
         chart.getStyleManager().setLegendPadding(6);
         chart.getStyleManager().setLegendSeriesLineLength(10);
         chart.getStyleManager().setAxisTickLabelsFont(new Font("Arial", Font.PLAIN, 10));
-        
+
         chart.getStyleManager().setChartBackgroundColor(Color.white);
         chart.getStyleManager().setChartPadding(4);
-        
+
         chart.getStyleManager().setChartType(ChartType.Line);
         return chart;
     }
@@ -198,28 +198,28 @@ public class ConstantVoltageExample {
     public static JComponent createComponent() {
         JComponent container = new JPanel();
         container.setLayout(new BoxLayout(container, BoxLayout.LINE_AXIS));
-        
+
         Chart chart1 = createChart("Voltage", 550, 450, LegendPosition.InsideNE, true);
         Chart chart2 = createChart("Error Covariance", 450, 450, LegendPosition.InsideNE, false);
-        
+
         constantVoltageTest(chart1, chart2);
 
         container.add(new XChartPanel(chart1));
         container.add(new XChartPanel(chart2));
-        
+
         container.setBorder(BorderFactory.createLineBorder(Color.black, 1));
         return container;
     }
 
     @SuppressWarnings("serial")
     public static class Display extends ExampleFrame {
-        
+
         private JComponent container;
 
         public Display() {
             setTitle("Commons-Math: Kalman Filter example");
             setSize(1100, 700);
-            
+
             container = new JPanel();
 
             JComponent comp = createComponent();
diff --git a/src/userguide/java/org/apache/commons/math4/userguide/genetics/HelloWorldExample.java b/src/userguide/java/org/apache/commons/math4/userguide/genetics/HelloWorldExample.java
index f0cee4e52..a47c494a0 100644
--- a/src/userguide/java/org/apache/commons/math4/userguide/genetics/HelloWorldExample.java
+++ b/src/userguide/java/org/apache/commons/math4/userguide/genetics/HelloWorldExample.java
@@ -60,13 +60,13 @@ public class HelloWorldExample {
 
         // stopping condition
         StoppingCondition stoppingCondition = new StoppingCondition() {
-            
+
             int generation = 0;
-            
+
 //            @Override
             public boolean isSatisfied(Population population) {
                 Chromosome fittestChromosome = population.getFittestChromosome();
-                
+
                 if (generation == 1 || generation % 10 == 0) {
                     System.out.println("Generation " + generation + ": " + fittestChromosome.toString());
                 }
@@ -82,7 +82,7 @@ public class HelloWorldExample {
         };
 
         System.out.println("Starting evolution ...");
-        
+
         // run the algorithm
         Population finalPopulation = ga.evolve(initial, stoppingCondition);
 
@@ -94,15 +94,15 @@ public class HelloWorldExample {
         System.out.println("Generation " + ga.getGenerationsEvolved() + ": " + best.toString());
         System.out.println("Total execution time: " + (endTime - startTime) + "ms");
     }
-    
+
     private static List<Character> randomRepresentation(int length) {
         return asList(RandomStringUtils.randomAscii(length));
     }
 
     private static List<Character> asList(String str) {
-        return Arrays.asList(ArrayUtils.toObject(str.toCharArray()));    
+        return Arrays.asList(ArrayUtils.toObject(str.toCharArray()));
     }
-    
+
     private static Population getInitialPopulation() {
         List<Chromosome> popList = new LinkedList<>();
 
@@ -173,7 +173,7 @@ public class HelloWorldExample {
 
             StringChromosome strChromosome = (StringChromosome) original;
             List<Character> characters = strChromosome.getStringRepresentation();
-            
+
             int mutationIndex = GeneticAlgorithm.getRandomGenerator().nextInt(characters.size());
 
             List<Character> mutatedChromosome = new ArrayList<>(characters);
diff --git a/src/userguide/java/org/apache/commons/math4/userguide/genetics/ImageEvolutionExample.java b/src/userguide/java/org/apache/commons/math4/userguide/genetics/ImageEvolutionExample.java
index 9b2e6355f..ed88b3f5e 100644
--- a/src/userguide/java/org/apache/commons/math4/userguide/genetics/ImageEvolutionExample.java
+++ b/src/userguide/java/org/apache/commons/math4/userguide/genetics/ImageEvolutionExample.java
@@ -49,7 +49,7 @@ import org.apache.commons.math4.userguide.ExampleUtils.ExampleFrame;
  * with ~100 semi-transparent polygons of length 6.
  * <p>
  * The fitness function is quite simple yet expensive to compute:
- * 
+ *
  *   - draw the polygons of a chromosome to an image
  *   - compare each pixel with the corresponding reference image
  * <p>
@@ -62,7 +62,7 @@ import org.apache.commons.math4.userguide.ExampleUtils.ExampleFrame;
  *    - add a gallery of results after x iterations / minutes (either automatic or based on button click)
  *    - allow loading / selection of other images
  *    - add logging in the user interface, e.g. number of generations, time spent, ...
- * 
+ *
  * @see <a href="http://www.nihilogic.dk/labs/evolving-images/">Evolving Images with JavaScript and canvas (Nihilogic)</a>
  */
 @SuppressWarnings("serial")
@@ -77,7 +77,7 @@ public class ImageEvolutionExample {
     public static final int POLYGON_COUNT = 100;
 
     public static class Display extends ExampleFrame {
-        
+
         private GeneticAlgorithm ga;
         private Population currentPopulation;
         private Chromosome bestFit;
@@ -86,16 +86,16 @@ public class ImageEvolutionExample {
         private volatile boolean noStopRequested;
 
         private BufferedImage ref;
-        
+
         private BufferedImage referenceImage;
         private BufferedImage testImage;
-        
+
         private ImagePainter painter;
 
         public Display() throws Exception {
             setTitle("Commons-Math: Image Evolution Example");
             setSize(600, 400);
-            
+
             setLayout(new FlowLayout());
 
             Box bar = Box.createHorizontalBox();
@@ -143,7 +143,7 @@ public class ImageEvolutionExample {
             currentPopulation = getInitialPopulation();
             bestFit = currentPopulation.getFittestChromosome();
         }
-        
+
         public boolean isAlive() {
             return internalThread != null && internalThread.isAlive();
         }
@@ -175,7 +175,7 @@ public class ImageEvolutionExample {
         }
 
         private class ImagePainter extends Component {
-            
+
             private int width;
             private int height;
 
diff --git a/src/userguide/java/org/apache/commons/math4/userguide/genetics/Polygon.java b/src/userguide/java/org/apache/commons/math4/userguide/genetics/Polygon.java
index ae35d5137..04f8ad212 100644
--- a/src/userguide/java/org/apache/commons/math4/userguide/genetics/Polygon.java
+++ b/src/userguide/java/org/apache/commons/math4/userguide/genetics/Polygon.java
@@ -53,7 +53,7 @@ public class Polygon {
         final int polygonSize = 4 + 2 * length;
 
         final UniformRandomProvider random = GeneticAlgorithm.getRandomGenerator();
-        
+
         Polygon p = new Polygon();
         p.data = new float[polygonSize];
 
@@ -61,10 +61,10 @@ public class Polygon {
         p.data[1] = random.nextFloat(); // g
         p.data[2] = random.nextFloat(); // b
         p.data[3] = FastMath.max(0.2f, random.nextFloat() * random.nextFloat()); // a
-        
+
         float px = random.nextFloat();
         float py = random.nextFloat();
-        
+
         for (int k = 0; k < length; k++) {
             p.data[4 + 2*k] = px + (random.nextFloat() - 0.5f);
             p.data[5 + 2*k] = py + (random.nextFloat() - 0.5f);
@@ -78,7 +78,7 @@ public class Polygon {
      * Each component of the Polygon may be mutated according to the specified mutation rate.
      * In case a component is going to be mutated, its value will be randomly modified in the
      * uniform range of [-mutationAmount, +mutationAmount].
-     * 
+     *
      * @param mutationRate the mutation rate
      * @param mutationAmount the mutation amount
      * @return a new Polygon
@@ -91,7 +91,7 @@ public class Polygon {
             float val = this.data[i];
             if (GeneticAlgorithm.getRandomGenerator().nextFloat() < mutationRate) {
                 val += GeneticAlgorithm.getRandomGenerator().nextFloat() * mutationAmount * 2 - mutationAmount;
-                
+
                 if (val < 0f) {
                     val = 0f;
                 } else if (val > 1f) {
@@ -101,7 +101,7 @@ public class Polygon {
             mutated.data[i] = val;
         }
         return mutated;
-    }    
+    }
 
     /**
      * Draw the Polygon to the buffer of the given size.
@@ -111,7 +111,7 @@ public class Polygon {
 
         GeneralPath path = new GeneralPath();
         path.moveTo(data[4] * width, data[5] * height);
-        
+
         int polygonLength = (data.length - 4) / 2;
         for (int j = 1; j < polygonLength; j++) {
             path.lineTo(data[4 + j * 2] * width, data[5 + j * 2] * height);
diff --git a/src/userguide/java/org/apache/commons/math4/userguide/genetics/PolygonChromosome.java b/src/userguide/java/org/apache/commons/math4/userguide/genetics/PolygonChromosome.java
index 8e27c3371..dc0aa05e2 100644
--- a/src/userguide/java/org/apache/commons/math4/userguide/genetics/PolygonChromosome.java
+++ b/src/userguide/java/org/apache/commons/math4/userguide/genetics/PolygonChromosome.java
@@ -78,7 +78,7 @@ public class PolygonChromosome extends AbstractListChromosome<Polygon> {
     public double fitness() {
 
         Graphics2D g2 = testImage.createGraphics();
-        
+
         int width = testImage.getWidth();
         int height = testImage.getHeight();
 
@@ -123,7 +123,7 @@ public class PolygonChromosome extends AbstractListChromosome<Polygon> {
     public String toString() {
         return String.format("(f=%s)", getFitness());
     }
-    
+
     public static Chromosome randomChromosome(int polygonLength, int polygonCount) {
         List<Polygon> list = new ArrayList<>(polygonCount);
         for (int j = 0; j < polygonCount; j++) {
diff --git a/src/userguide/java/org/apache/commons/math4/userguide/genetics/RandomPolygonMutation.java b/src/userguide/java/org/apache/commons/math4/userguide/genetics/RandomPolygonMutation.java
index cd4983f0c..6f99e598f 100644
--- a/src/userguide/java/org/apache/commons/math4/userguide/genetics/RandomPolygonMutation.java
+++ b/src/userguide/java/org/apache/commons/math4/userguide/genetics/RandomPolygonMutation.java
@@ -23,10 +23,10 @@ import org.apache.commons.math4.genetics.Chromosome;
 import org.apache.commons.math4.genetics.MutationPolicy;
 
 public class RandomPolygonMutation implements MutationPolicy {
-    
+
     private float mutationRate;
     private float mutationAmount;
-    
+
     public RandomPolygonMutation(float mutationRate, float mutationAmount) {
         this.mutationRate = mutationRate;
         this.mutationAmount = mutationAmount;
diff --git a/src/userguide/pom.xml b/src/userguide/pom.xml
index 727e1ad30..8cbe0fb93 100644
--- a/src/userguide/pom.xml
+++ b/src/userguide/pom.xml
@@ -22,7 +22,7 @@
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.apache.commons</groupId>
   <artifactId>commons-math4-examples</artifactId>
-  <version>4.0-SNAPSHOT</version>  
+  <version>4.0-SNAPSHOT</version>
   <name>Commons Math User Guide</name>
   <inceptionYear>2003</inceptionYear>
   <description>Examples</description>
@@ -41,7 +41,7 @@
     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
     <maven.compiler.source>1.7</maven.compiler.source>
     <maven.compiler.target>1.7</maven.compiler.target>
-  </properties> 
+  </properties>
 
   <build>
     <sourceDirectory>java</sourceDirectory>
@@ -105,7 +105,7 @@
           <groupId>org.piccolo2d</groupId>
           <artifactId>piccolo2d-extras</artifactId>
           <version>3.0</version>
-      </dependency>      
+      </dependency>
       <dependency>
           <groupId>org.apache.commons</groupId>
           <artifactId>commons-lang3</artifactId>


[commons-math] 05/23: Use diamond operator

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit a8d392580d3ceb89456ca450003a422f148e6555
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Oct 13 11:36:34 2022 +0100

    Use diamond operator
---
 .../commons/math4/examples/kmeans/image/StandAlone.java  | 16 ++++++++--------
 .../legacy/distribution/EnumeratedDistribution.java      |  2 +-
 .../math4/legacy/ml/clustering/FuzzyKMeansClusterer.java |  4 ++--
 .../legacy/ml/clustering/KMeansPlusPlusClusterer.java    |  2 +-
 .../org/apache/commons/math4/legacy/stat/Frequency.java  |  2 +-
 .../analysis/integration/gauss/BaseRuleFactoryTest.java  |  2 +-
 .../AbstractLeastSquaresOptimizerAbstractTest.java       |  2 +-
 .../legacy/fitting/leastsquares/EvaluationTest.java      |  6 +++---
 .../math4/legacy/genetics/CycleCrossoverTest.java        | 10 +++++-----
 .../math4/legacy/genetics/FitnessCachingTest.java        |  2 +-
 .../legacy/genetics/GeneticAlgorithmTestBinary.java      |  2 +-
 .../genetics/GeneticAlgorithmTestPermutations.java       |  2 +-
 .../math4/legacy/genetics/NPointCrossoverTest.java       |  8 ++++----
 .../math4/legacy/genetics/OrderedCrossoverTest.java      |  8 ++++----
 .../math4/legacy/genetics/UniformCrossoverTest.java      | 12 ++++++------
 .../math4/legacy/linear/OpenIntToDoubleHashMapTest.java  |  2 +-
 .../commons/math4/legacy/linear/OpenIntToFieldTest.java  |  2 +-
 .../math4/legacy/ml/clustering/DBSCANClustererTest.java  |  4 ++--
 .../legacy/ml/clustering/FuzzyKMeansClustererTest.java   |  2 +-
 .../ml/clustering/MultiKMeansPlusPlusClustererTest.java  |  2 +-
 .../math4/legacy/ode/ContinuousOutputFieldModelTest.java |  4 ++--
 .../scalar/MultivariateFunctionPenaltyAdapterTest.java   |  2 +-
 .../apache/commons/math4/legacy/stat/FrequencyTest.java  |  4 ++--
 .../math4/userguide/ClusterAlgorithmComparison.java      | 14 +++++++-------
 .../userguide/LowDiscrepancyGeneratorComparison.java     | 10 +++++-----
 .../math4/userguide/filter/CannonballExample.java        | 12 ++++++------
 .../math4/userguide/filter/ConstantVoltageExample.java   | 10 +++++-----
 .../math4/userguide/genetics/HelloWorldExample.java      |  6 +++---
 .../math4/userguide/genetics/ImageEvolutionExample.java  |  4 ++--
 .../math4/userguide/genetics/PolygonChromosome.java      |  2 +-
 .../math4/userguide/genetics/RandomPolygonMutation.java  |  2 +-
 31 files changed, 81 insertions(+), 81 deletions(-)

diff --git a/commons-math-examples/examples-kmeans/image/src/main/java/org/apache/commons/math4/examples/kmeans/image/StandAlone.java b/commons-math-examples/examples-kmeans/image/src/main/java/org/apache/commons/math4/examples/kmeans/image/StandAlone.java
index f0081e7ad..4a3678ba0 100644
--- a/commons-math-examples/examples-kmeans/image/src/main/java/org/apache/commons/math4/examples/kmeans/image/StandAlone.java
+++ b/commons-math-examples/examples-kmeans/image/src/main/java/org/apache/commons/math4/examples/kmeans/image/StandAlone.java
@@ -72,16 +72,16 @@ public final class StandAlone implements Callable<Void> {
         final DistanceMeasure distance = new EuclideanDistance();
 
         cluster(image,
-                new ElkanKMeansPlusPlusClusterer<ImageData.PixelClusterable>(numClusters,
-                                                                             maxIter,
-                                                                             distance,
-                                                                             rng),
+                new ElkanKMeansPlusPlusClusterer<>(numClusters,
+                                                   maxIter,
+                                                   distance,
+                                                   rng),
                 "elkan");
         cluster(image,
-                new KMeansPlusPlusClusterer<ImageData.PixelClusterable>(numClusters,
-                                                                        maxIter,
-                                                                        distance,
-                                                                        rng),
+                new KMeansPlusPlusClusterer<>(numClusters,
+                                              maxIter,
+                                              distance,
+                                              rng),
                 "kmeans");
 
         return null;
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/distribution/EnumeratedDistribution.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/distribution/EnumeratedDistribution.java
index 45bdade54..9d406dc14 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/distribution/EnumeratedDistribution.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/distribution/EnumeratedDistribution.java
@@ -189,7 +189,7 @@ public class EnumeratedDistribution<T> {
          * @param rng Random number generator.
          */
         Sampler(UniformRandomProvider rng) {
-            sampler = new DiscreteProbabilityCollectionSampler<T>(rng, singletons, probabilities);
+            sampler = new DiscreteProbabilityCollectionSampler<>(rng, singletons, probabilities);
         }
 
         /**
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/FuzzyKMeansClusterer.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/FuzzyKMeansClusterer.java
index 973a07ce8..0299ac0b2 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/FuzzyKMeansClusterer.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/FuzzyKMeansClusterer.java
@@ -289,7 +289,7 @@ public class FuzzyKMeansClusterer<T extends Clusterable> extends Clusterer<T> {
         // there is at least one point
         final int pointDimension = points.get(0).getPoint().length;
         for (int i = 0; i < k; i++) {
-            clusters.add(new CentroidCluster<T>(new DoublePoint(new double[pointDimension])));
+            clusters.add(new CentroidCluster<>(new DoublePoint(new double[pointDimension])));
         }
 
         int iteration = 0;
@@ -327,7 +327,7 @@ public class FuzzyKMeansClusterer<T extends Clusterable> extends Clusterer<T> {
                 i++;
             }
             MathArrays.scaleInPlace(1.0 / sum, arr);
-            newClusters.add(new CentroidCluster<T>(new DoublePoint(arr)));
+            newClusters.add(new CentroidCluster<>(new DoublePoint(arr)));
             j++;
         }
         clusters.clear();
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/KMeansPlusPlusClusterer.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/KMeansPlusPlusClusterer.java
index c7b2caafe..7126c47f0 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/KMeansPlusPlusClusterer.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ml/clustering/KMeansPlusPlusClusterer.java
@@ -319,7 +319,7 @@ public class KMeansPlusPlusClusterer<T extends Clusterable> extends Clusterer<T>
 
         final T firstPoint = pointList.get(firstPointIndex);
 
-        resultSet.add(new CentroidCluster<T>(firstPoint));
+        resultSet.add(new CentroidCluster<>(firstPoint));
 
         // Must mark it as taken
         taken[firstPointIndex] = true;
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/Frequency.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/Frequency.java
index 06633c33f..c6da2a7e9 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/Frequency.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/Frequency.java
@@ -208,7 +208,7 @@ public class Frequency<T extends Comparable<T>> {
         }
         Comparator<? super T> c = freqTable.comparator();
         if (c == null) {
-            c = new NaturalComparator<T>();
+            c = new NaturalComparator<>();
         }
         long result = 0;
 
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/integration/gauss/BaseRuleFactoryTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/integration/gauss/BaseRuleFactoryTest.java
index 42948ead2..699bdbdb2 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/integration/gauss/BaseRuleFactoryTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/analysis/integration/gauss/BaseRuleFactoryTest.java
@@ -47,7 +47,7 @@ public class BaseRuleFactoryTest {
 
         final ThreadPoolExecutor exec
             = new ThreadPoolExecutor(3, numTasks, 1, TimeUnit.SECONDS,
-                                     new ArrayBlockingQueue<Runnable>(2));
+                                     new ArrayBlockingQueue<>(2));
 
         final List<Future<Pair<double[], double[]>>> results
             = new ArrayList<>();
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/AbstractLeastSquaresOptimizerAbstractTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/AbstractLeastSquaresOptimizerAbstractTest.java
index 00fc3bb88..afb479c92 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/AbstractLeastSquaresOptimizerAbstractTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/AbstractLeastSquaresOptimizerAbstractTest.java
@@ -125,7 +125,7 @@ public abstract class AbstractLeastSquaresOptimizerAbstractTest {
                 .model(new MultivariateJacobianFunction() {
                     @Override
                     public Pair<RealVector, RealMatrix> value(final RealVector point) {
-                        return new Pair<RealVector, RealMatrix>(
+                        return new Pair<>(
                                 new ArrayRealVector(
                                         new double[]{
                                                 JdkMath.pow(point.getEntry(0), 4)
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/EvaluationTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/EvaluationTest.java
index 4836ac75c..145320dc9 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/EvaluationTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/EvaluationTest.java
@@ -73,7 +73,7 @@ public class EvaluationTest {
                 .model(new MultivariateJacobianFunction() {
                     @Override
                     public Pair<RealVector, RealMatrix> value(RealVector point) {
-                        return new Pair<RealVector, RealMatrix>(
+                        return new Pair<>(
                                 new ArrayRealVector(new double[]{1, 2}),
                                 MatrixUtils.createRealIdentityMatrix(2)
                         );
@@ -98,7 +98,7 @@ public class EvaluationTest {
                 .model(new MultivariateJacobianFunction() {
                     @Override
                     public Pair<RealVector, RealMatrix> value(RealVector point) {
-                        return new Pair<RealVector, RealMatrix>(
+                        return new Pair<>(
                                 new ArrayRealVector(2),
                                 MatrixUtils.createRealDiagonalMatrix(new double[]{1, 1e-2})
                         );
@@ -139,7 +139,7 @@ public class EvaluationTest {
                         Assert.assertArrayEquals(
                                 point.toArray(), actualPoint.toArray(), Precision.EPSILON);
                         //return values
-                        return new Pair<RealVector, RealMatrix>(
+                        return new Pair<>(
                                 new ArrayRealVector(new double[]{3, 4}),
                                 MatrixUtils.createRealMatrix(new double[][]{{5, 6}, {7, 8}})
                         );
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/CycleCrossoverTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/CycleCrossoverTest.java
index 91b3880e9..35bd9e9e4 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/CycleCrossoverTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/CycleCrossoverTest.java
@@ -31,7 +31,7 @@ public class CycleCrossoverTest {
         final DummyListChromosome p1c = new DummyListChromosome(p1);
         final DummyListChromosome p2c = new DummyListChromosome(p2);
 
-        final CrossoverPolicy cp = new CycleCrossover<Integer>();
+        final CrossoverPolicy cp = new CycleCrossover<>();
         final ChromosomePair pair = cp.crossover(p1c, p2c);
 
         final Integer[] c1 = ((DummyListChromosome) pair.getFirst()).getRepresentation().toArray(new Integer[p1.length]);
@@ -52,7 +52,7 @@ public class CycleCrossoverTest {
         final DummyListChromosome p1c = new DummyListChromosome(p1);
         final DummyListChromosome p2c = new DummyListChromosome(p2);
 
-        final CrossoverPolicy cp = new CycleCrossover<Integer>();
+        final CrossoverPolicy cp = new CycleCrossover<>();
         final ChromosomePair pair = cp.crossover(p1c, p2c);
 
         final Integer[] c1 = ((DummyListChromosome) pair.getFirst()).getRepresentation().toArray(new Integer[p1.length]);
@@ -113,7 +113,7 @@ public class CycleCrossoverTest {
         final BinaryChromosome p1c = new DummyBinaryChromosome(p1);
         final BinaryChromosome p2c = new DummyBinaryChromosome(p2);
 
-        final CrossoverPolicy cp = new CycleCrossover<Integer>();
+        final CrossoverPolicy cp = new CycleCrossover<>();
         cp.crossover(p1c, p2c);
     }
 
@@ -129,7 +129,7 @@ public class CycleCrossoverTest {
             }
         };
 
-        final CrossoverPolicy cp = new CycleCrossover<Integer>();
+        final CrossoverPolicy cp = new CycleCrossover<>();
         cp.crossover(p1c, p2c);
     }
 
@@ -145,7 +145,7 @@ public class CycleCrossoverTest {
             }
         };
 
-        final CrossoverPolicy cp = new CycleCrossover<Integer>();
+        final CrossoverPolicy cp = new CycleCrossover<>();
         cp.crossover(p1c, p2c);
     }
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/FitnessCachingTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/FitnessCachingTest.java
index 13dd488ea..69df3ca97 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/FitnessCachingTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/FitnessCachingTest.java
@@ -44,7 +44,7 @@ public class FitnessCachingTest {
     public void testFitnessCaching() {
         // initialize a new genetic algorithm
         GeneticAlgorithm ga = new GeneticAlgorithm(
-                new OnePointCrossover<Integer>(),
+                new OnePointCrossover<>(),
                 CROSSOVER_RATE, // all selected chromosomes will be recombined (=crosssover)
                 new BinaryMutation(),
                 MUTATION_RATE, // no mutation
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/GeneticAlgorithmTestBinary.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/GeneticAlgorithmTestBinary.java
index 5465cd09a..63e93f7d3 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/GeneticAlgorithmTestBinary.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/GeneticAlgorithmTestBinary.java
@@ -43,7 +43,7 @@ public class GeneticAlgorithmTestBinary {
 
         // initialize a new genetic algorithm
         GeneticAlgorithm ga = new GeneticAlgorithm(
-                new OnePointCrossover<Integer>(),
+                new OnePointCrossover<>(),
                 CROSSOVER_RATE, // all selected chromosomes will be recombined (=crossover)
                 new BinaryMutation(),
                 MUTATION_RATE,
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/GeneticAlgorithmTestPermutations.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/GeneticAlgorithmTestPermutations.java
index 2097c41ad..eef810139 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/GeneticAlgorithmTestPermutations.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/GeneticAlgorithmTestPermutations.java
@@ -55,7 +55,7 @@ public class GeneticAlgorithmTestPermutations {
 
         // initialize a new genetic algorithm
         GeneticAlgorithm ga = new GeneticAlgorithm(
-                new OnePointCrossover<Integer>(),
+                new OnePointCrossover<>(),
                 CROSSOVER_RATE,
                 new RandomKeyMutation(),
                 MUTATION_RATE,
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/NPointCrossoverTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/NPointCrossoverTest.java
index d1a2c734b..b33f2a063 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/NPointCrossoverTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/NPointCrossoverTest.java
@@ -34,7 +34,7 @@ public class NPointCrossoverTest {
         final BinaryChromosome p1c = new DummyBinaryChromosome(p1);
         final BinaryChromosome p2c = new DummyBinaryChromosome(p2);
 
-        final CrossoverPolicy cp = new NPointCrossover<Integer>(1);
+        final CrossoverPolicy cp = new NPointCrossover<>(1);
         cp.crossover(p1c,p2c);
     }
 
@@ -46,7 +46,7 @@ public class NPointCrossoverTest {
         final BinaryChromosome p1c = new DummyBinaryChromosome(p1);
         final BinaryChromosome p2c = new DummyBinaryChromosome(p2);
 
-        final CrossoverPolicy cp = new NPointCrossover<Integer>(15);
+        final CrossoverPolicy cp = new NPointCrossover<>(15);
         cp.crossover(p1c,p2c);
     }
 
@@ -62,7 +62,7 @@ public class NPointCrossoverTest {
             }
         };
 
-        final CrossoverPolicy cp = new NPointCrossover<Integer>(1);
+        final CrossoverPolicy cp = new NPointCrossover<>(1);
         cp.crossover(p1c,p2c);
     }
 
@@ -78,7 +78,7 @@ public class NPointCrossoverTest {
             }
         };
 
-        final CrossoverPolicy cp = new NPointCrossover<Integer>(1);
+        final CrossoverPolicy cp = new NPointCrossover<>(1);
         cp.crossover(p1c,p2c);
     }
 
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/OrderedCrossoverTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/OrderedCrossoverTest.java
index e55cdc102..428d567bd 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/OrderedCrossoverTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/OrderedCrossoverTest.java
@@ -34,7 +34,7 @@ public class OrderedCrossoverTest {
         final DummyListChromosome p1c = new DummyListChromosome(p1);
         final DummyListChromosome p2c = new DummyListChromosome(p2);
 
-        final CrossoverPolicy cp = new OrderedCrossover<Integer>();
+        final CrossoverPolicy cp = new OrderedCrossover<>();
 
         for (int i = 0; i < 20; i++) {
             final Set<Integer> parentSet1 = new HashSet<>(Arrays.asList(p1));
@@ -66,7 +66,7 @@ public class OrderedCrossoverTest {
         final BinaryChromosome p1c = new DummyBinaryChromosome(p1);
         final BinaryChromosome p2c = new DummyBinaryChromosome(p2);
 
-        final CrossoverPolicy cp = new OrderedCrossover<Integer>();
+        final CrossoverPolicy cp = new OrderedCrossover<>();
         cp.crossover(p1c, p2c);
     }
 
@@ -82,7 +82,7 @@ public class OrderedCrossoverTest {
             }
         };
 
-        final CrossoverPolicy cp = new OrderedCrossover<Integer>();
+        final CrossoverPolicy cp = new OrderedCrossover<>();
         cp.crossover(p1c, p2c);
     }
 
@@ -98,7 +98,7 @@ public class OrderedCrossoverTest {
             }
         };
 
-        final CrossoverPolicy cp = new OrderedCrossover<Integer>();
+        final CrossoverPolicy cp = new OrderedCrossover<>();
         cp.crossover(p1c, p2c);
     }
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/UniformCrossoverTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/UniformCrossoverTest.java
index 0a9331925..493c9340f 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/UniformCrossoverTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/genetics/UniformCrossoverTest.java
@@ -42,12 +42,12 @@ public class UniformCrossoverTest {
 
     @Test(expected = OutOfRangeException.class)
     public void testRatioTooLow() {
-        new UniformCrossover<Integer>(-0.5d);
+        new UniformCrossover<>(-0.5d);
     }
 
     @Test(expected = OutOfRangeException.class)
     public void testRatioTooHigh() {
-        new UniformCrossover<Integer>(1.5d);
+        new UniformCrossover<>(1.5d);
     }
 
     @Test
@@ -62,7 +62,7 @@ public class UniformCrossoverTest {
         final DummyBinaryChromosome p1c = new DummyBinaryChromosome(p1);
         final DummyBinaryChromosome p2c = new DummyBinaryChromosome(p2);
 
-        final CrossoverPolicy cp = new UniformCrossover<Integer>(ratio);
+        final CrossoverPolicy cp = new UniformCrossover<>(ratio);
 
         // make a number of rounds
         for (int i = 0; i < 20; i++) {
@@ -113,7 +113,7 @@ public class UniformCrossoverTest {
         final BinaryChromosome p1c = new DummyBinaryChromosome(p1);
         final BinaryChromosome p2c = new DummyBinaryChromosome(p2);
 
-        final CrossoverPolicy cp = new UniformCrossover<Integer>(0.5d);
+        final CrossoverPolicy cp = new UniformCrossover<>(0.5d);
         cp.crossover(p1c, p2c);
     }
 
@@ -130,7 +130,7 @@ public class UniformCrossoverTest {
             }
         };
 
-        final CrossoverPolicy cp = new UniformCrossover<Integer>(0.5d);
+        final CrossoverPolicy cp = new UniformCrossover<>(0.5d);
         cp.crossover(p1c, p2c);
     }
 
@@ -147,7 +147,7 @@ public class UniformCrossoverTest {
             }
         };
 
-        final CrossoverPolicy cp = new UniformCrossover<Integer>(0.5d);
+        final CrossoverPolicy cp = new UniformCrossover<>(0.5d);
         cp.crossover(p1c, p2c);
     }
 }
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/OpenIntToDoubleHashMapTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/OpenIntToDoubleHashMapTest.java
index 26a7203bc..e5d90ee7a 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/OpenIntToDoubleHashMapTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/OpenIntToDoubleHashMapTest.java
@@ -93,7 +93,7 @@ public class OpenIntToDoubleHashMapTest {
     }
 
     private void assertPutAndGet(OpenIntToDoubleHashMap map) {
-        assertPutAndGet(map, 0, new HashSet<Integer>());
+        assertPutAndGet(map, 0, new HashSet<>());
     }
 
     private void assertPutAndGet(OpenIntToDoubleHashMap map, int mapSize,
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/OpenIntToFieldTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/OpenIntToFieldTest.java
index 8083ee671..9c4b8a2a8 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/OpenIntToFieldTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/linear/OpenIntToFieldTest.java
@@ -96,7 +96,7 @@ public class OpenIntToFieldTest {
     }
 
     private void assertPutAndGet(OpenIntToFieldHashMap<Dfp> map) {
-        assertPutAndGet(map, 0, new HashSet<Integer>());
+        assertPutAndGet(map, 0, new HashSet<>());
     }
 
     private void assertPutAndGet(OpenIntToFieldHashMap<Dfp> map, int mapSize,
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ml/clustering/DBSCANClustererTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ml/clustering/DBSCANClustererTest.java
index aed92b496..af33b9abf 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ml/clustering/DBSCANClustererTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ml/clustering/DBSCANClustererTest.java
@@ -172,12 +172,12 @@ public class DBSCANClustererTest {
 
     @Test(expected = MathIllegalArgumentException.class)
     public void testNegativeEps() {
-        new DBSCANClusterer<DoublePoint>(-2.0, 5);
+        new DBSCANClusterer<>(-2.0, 5);
     }
 
     @Test(expected = MathIllegalArgumentException.class)
     public void testNegativeMinPts() {
-        new DBSCANClusterer<DoublePoint>(2.0, -5);
+        new DBSCANClusterer<>(2.0, -5);
     }
 
     @Test(expected = NullArgumentException.class)
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ml/clustering/FuzzyKMeansClustererTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ml/clustering/FuzzyKMeansClustererTest.java
index 1abd4b1dd..63e73d616 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ml/clustering/FuzzyKMeansClustererTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ml/clustering/FuzzyKMeansClustererTest.java
@@ -80,7 +80,7 @@ public class FuzzyKMeansClustererTest {
 
     @Test(expected = MathIllegalArgumentException.class)
     public void testTooSmallFuzzynessFactor() {
-        new FuzzyKMeansClusterer<DoublePoint>(3, 1.0);
+        new FuzzyKMeansClusterer<>(3, 1.0);
     }
 
     @Test(expected = NullArgumentException.class)
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ml/clustering/MultiKMeansPlusPlusClustererTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ml/clustering/MultiKMeansPlusPlusClustererTest.java
index 93884cc99..7ae8dd589 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ml/clustering/MultiKMeansPlusPlusClustererTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ml/clustering/MultiKMeansPlusPlusClustererTest.java
@@ -30,7 +30,7 @@ public class MultiKMeansPlusPlusClustererTest {
     public void dimension2() {
         MultiKMeansPlusPlusClusterer<DoublePoint> transformer =
             new MultiKMeansPlusPlusClusterer<>(
-                    new KMeansPlusPlusClusterer<DoublePoint>(3, 10), 5);
+                    new KMeansPlusPlusClusterer<>(3, 10), 5);
 
         DoublePoint[] points = new DoublePoint[] {
 
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/ContinuousOutputFieldModelTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/ContinuousOutputFieldModelTest.java
index e3e6e4236..7dfabba76 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/ContinuousOutputFieldModelTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/ode/ContinuousOutputFieldModelTest.java
@@ -45,7 +45,7 @@ public class ContinuousOutputFieldModelTest {
         double minStep = 0;
         double maxStep = pb.getFinalTime().subtract(pb.getInitialState().getTime()).getReal();
         FirstOrderFieldIntegrator<T> integ = new DormandPrince54FieldIntegrator<>(field, minStep, maxStep, 1.0e-8, 1.0e-8);
-        integ.addStepHandler(new ContinuousOutputFieldModel<T>());
+        integ.addStepHandler(new ContinuousOutputFieldModel<>());
         integ.integrate(new FieldExpandableODE<>(pb), pb.getInitialState(), pb.getFinalTime());
         ContinuousOutputFieldModel<T> cm = (ContinuousOutputFieldModel<T>) integ.getStepHandlers().iterator().next();
         cm.getInterpolatedState(pb.getInitialState().getTime().multiply(2).subtract(pb.getFinalTime()));
@@ -145,7 +145,7 @@ public class ContinuousOutputFieldModelTest {
         // merge the two half circles
         ContinuousOutputFieldModel<T> cm = new ContinuousOutputFieldModel<>();
         cm.append(cm2);
-        cm.append(new ContinuousOutputFieldModel<T>());
+        cm.append(new ContinuousOutputFieldModel<>());
         cm.append(cm1);
 
         // check circle
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/MultivariateFunctionPenaltyAdapterTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/MultivariateFunctionPenaltyAdapterTest.java
index af3da6828..889aba907 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/MultivariateFunctionPenaltyAdapterTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/MultivariateFunctionPenaltyAdapterTest.java
@@ -133,7 +133,7 @@ public class MultivariateFunctionPenaltyAdapterTest {
                                                        biQuadratic.getUpper(),
                                                        1000.0, new double[] { 100.0, 100.0 });
 
-        SimplexOptimizer optimizer = new SimplexOptimizer(new SimplePointChecker<PointValuePair>(1.0e-10, 1.0e-20));
+        SimplexOptimizer optimizer = new SimplexOptimizer(new SimplePointChecker<>(1.0e-10, 1.0e-20));
 
         final PointValuePair optimum
             = optimizer.optimize(new MaxEval(400),
diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/stat/FrequencyTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/stat/FrequencyTest.java
index b89b8066e..6b957db7e 100644
--- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/stat/FrequencyTest.java
+++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/stat/FrequencyTest.java
@@ -260,10 +260,10 @@ public final class FrequencyTest {
         Assert.assertEquals(1, f.getCount(ONE_LONG));
         Assert.assertEquals(0, f.getCount(TWO_LONG));
 
-        Frequency<Long> g = new Frequency<Long>();
+        Frequency<Long> g = new Frequency<>();
         g.addValue(TWO_LONG);
 
-        Frequency<Long> h = new Frequency<Long>();
+        Frequency<Long> h = new Frequency<>();
         h.addValue(THREE_LONG);
 
         List<Frequency<Long>> coll = new ArrayList<>();
diff --git a/src/userguide/java/org/apache/commons/math4/userguide/ClusterAlgorithmComparison.java b/src/userguide/java/org/apache/commons/math4/userguide/ClusterAlgorithmComparison.java
index 1cfc832f1..19232994b 100644
--- a/src/userguide/java/org/apache/commons/math4/userguide/ClusterAlgorithmComparison.java
+++ b/src/userguide/java/org/apache/commons/math4/userguide/ClusterAlgorithmComparison.java
@@ -182,7 +182,7 @@ public class ClusterAlgorithmComparison {
                                               double maxY) {
         double rangeX = maxX - minX;
         double rangeY = maxY - minY;
-        List<DoublePoint> points = new ArrayList<DoublePoint>();
+        List<DoublePoint> points = new ArrayList<>();
         for (Vector2D p : input) {
             double[] arr = p.toArray();
             arr[0] = (arr[0] - minX) / rangeX * 2 - 1;
@@ -212,18 +212,18 @@ public class ClusterAlgorithmComparison {
             datasets.add(normalize(makeBlobs(nSamples, 3, 1.0, -10, 10, true, rng), -12, 12, -12, 12));
             datasets.add(normalize(makeRandom(nSamples), -1, 1, -1, 1));
 
-            List<Pair<String, Clusterer<DoublePoint>>> algorithms = new ArrayList<Pair<String, Clusterer<DoublePoint>>>();
+            List<Pair<String, Clusterer<DoublePoint>>> algorithms = new ArrayList<>();
             
             algorithms.add(new Pair<String, Clusterer<DoublePoint>>("KMeans\n(k=2)",
-                                                                    new KMeansPlusPlusClusterer<DoublePoint>(2)));
+                                                                    new KMeansPlusPlusClusterer<>(2)));
             algorithms.add(new Pair<String, Clusterer<DoublePoint>>("KMeans\n(k=3)",
-                                                                    new KMeansPlusPlusClusterer<DoublePoint>(3)));
+                                                                    new KMeansPlusPlusClusterer<>(3)));
             algorithms.add(new Pair<String, Clusterer<DoublePoint>>("FuzzyKMeans\n(k=3, fuzzy=2)",
-                                                                    new FuzzyKMeansClusterer<DoublePoint>(3, 2)));
+                                                                    new FuzzyKMeansClusterer<>(3, 2)));
             algorithms.add(new Pair<String, Clusterer<DoublePoint>>("FuzzyKMeans\n(k=3, fuzzy=10)",
-                                                                    new FuzzyKMeansClusterer<DoublePoint>(3, 10)));
+                                                                    new FuzzyKMeansClusterer<>(3, 10)));
             algorithms.add(new Pair<String, Clusterer<DoublePoint>>("DBSCAN\n(eps=.1, min=3)",
-                                                                    new DBSCANClusterer<DoublePoint>(0.1, 3)));
+                                                                    new DBSCANClusterer<>(0.1, 3)));
             
             GridBagConstraints c = new GridBagConstraints();
             c.fill = GridBagConstraints.VERTICAL;
diff --git a/src/userguide/java/org/apache/commons/math4/userguide/LowDiscrepancyGeneratorComparison.java b/src/userguide/java/org/apache/commons/math4/userguide/LowDiscrepancyGeneratorComparison.java
index 9404d5bf6..b94a8e922 100644
--- a/src/userguide/java/org/apache/commons/math4/userguide/LowDiscrepancyGeneratorComparison.java
+++ b/src/userguide/java/org/apache/commons/math4/userguide/LowDiscrepancyGeneratorComparison.java
@@ -129,9 +129,9 @@ public class LowDiscrepancyGeneratorComparison {
             int[] datasets = new int[] { 256, 1000, 2500, 1000 };
             List<Pair<String, RandomVectorGenerator>> generators = new ArrayList<Pair<String, RandomVectorGenerator>>();
 
-            generators.add(new Pair<String, RandomVectorGenerator>("Uncorrelated\nUniform(JDK)",
-                                                                   new UncorrelatedRandomVectorGenerator(2, new UniformRandomGenerator(RandomSource.create(RandomSource.JDK)))));
-            generators.add(new Pair<String, RandomVectorGenerator>("Independent\nRandom(MT)", new RandomVectorGenerator() {
+            generators.add(new Pair<>("Uncorrelated\nUniform(JDK)",
+                                      new UncorrelatedRandomVectorGenerator(2, new UniformRandomGenerator(RandomSource.create(RandomSource.JDK)))));
+            generators.add(new Pair<>("Independent\nRandom(MT)", new RandomVectorGenerator() {
 
                 final UniformRandomProvider[] rngs = new UniformRandomProvider[] {
                     RandomSource.create(RandomSource.MT, 123456789),
@@ -146,8 +146,8 @@ public class LowDiscrepancyGeneratorComparison {
                 }
                 
             }));            
-            generators.add(new Pair<String, RandomVectorGenerator>("HaltonSequence", new HaltonSequenceGenerator(2)));            
-            generators.add(new Pair<String, RandomVectorGenerator>("SobolSequence", new SobolSequenceGenerator(2)));            
+            generators.add(new Pair<>("HaltonSequence", new HaltonSequenceGenerator(2)));            
+            generators.add(new Pair<>("SobolSequence", new SobolSequenceGenerator(2)));            
             
             GridBagConstraints c = new GridBagConstraints();
             c.fill = GridBagConstraints.VERTICAL;
diff --git a/src/userguide/java/org/apache/commons/math4/userguide/filter/CannonballExample.java b/src/userguide/java/org/apache/commons/math4/userguide/filter/CannonballExample.java
index 61cea880b..66e40603f 100644
--- a/src/userguide/java/org/apache/commons/math4/userguide/filter/CannonballExample.java
+++ b/src/userguide/java/org/apache/commons/math4/userguide/filter/CannonballExample.java
@@ -214,12 +214,12 @@ public class CannonballExample {
         final MeasurementModel mm = new DefaultMeasurementModel(H, R);
         final KalmanFilter filter = new KalmanFilter(pm, mm);
 
-        final List<Number> realX = new ArrayList<Number>();
-        final List<Number> realY = new ArrayList<Number>();
-        final List<Number> measuredX = new ArrayList<Number>();
-        final List<Number> measuredY = new ArrayList<Number>();
-        final List<Number> kalmanX = new ArrayList<Number>();
-        final List<Number> kalmanY = new ArrayList<Number>();
+        final List<Number> realX = new ArrayList<>();
+        final List<Number> realY = new ArrayList<>();
+        final List<Number> measuredX = new ArrayList<>();
+        final List<Number> measuredY = new ArrayList<>();
+        final List<Number> kalmanX = new ArrayList<>();
+        final List<Number> kalmanY = new ArrayList<>();
         
         for (int i = 0; i < iterations; i++) {
 
diff --git a/src/userguide/java/org/apache/commons/math4/userguide/filter/ConstantVoltageExample.java b/src/userguide/java/org/apache/commons/math4/userguide/filter/ConstantVoltageExample.java
index b290bcbb8..cce49b8d5 100644
--- a/src/userguide/java/org/apache/commons/math4/userguide/filter/ConstantVoltageExample.java
+++ b/src/userguide/java/org/apache/commons/math4/userguide/filter/ConstantVoltageExample.java
@@ -122,12 +122,12 @@ public class ConstantVoltageExample {
         final MeasurementModel mm = new DefaultMeasurementModel(H, R);
         final KalmanFilter filter = new KalmanFilter(pm, mm);
 
-        final List<Number> xAxis = new ArrayList<Number>();
-        final List<Number> realVoltageSeries = new ArrayList<Number>();
-        final List<Number> measuredVoltageSeries = new ArrayList<Number>();
-        final List<Number> kalmanVoltageSeries = new ArrayList<Number>();
+        final List<Number> xAxis = new ArrayList<>();
+        final List<Number> realVoltageSeries = new ArrayList<>();
+        final List<Number> measuredVoltageSeries = new ArrayList<>();
+        final List<Number> kalmanVoltageSeries = new ArrayList<>();
 
-        final List<Number> covSeries = new ArrayList<Number>();
+        final List<Number> covSeries = new ArrayList<>();
         
         for (int i = 0; i < 300; i++) {
             xAxis.add(i);
diff --git a/src/userguide/java/org/apache/commons/math4/userguide/genetics/HelloWorldExample.java b/src/userguide/java/org/apache/commons/math4/userguide/genetics/HelloWorldExample.java
index b9f9ed919..f0cee4e52 100644
--- a/src/userguide/java/org/apache/commons/math4/userguide/genetics/HelloWorldExample.java
+++ b/src/userguide/java/org/apache/commons/math4/userguide/genetics/HelloWorldExample.java
@@ -51,7 +51,7 @@ public class HelloWorldExample {
         long startTime = System.currentTimeMillis();
 
         // initialize a new genetic algorithm
-        GeneticAlgorithm ga = new GeneticAlgorithm(new OnePointCrossover<Character>(), CROSSOVER_RATE,
+        GeneticAlgorithm ga = new GeneticAlgorithm(new OnePointCrossover<>(), CROSSOVER_RATE,
                                                    new RandomCharacterMutation(), MUTATION_RATE,
                                                    new TournamentSelection(TOURNAMENT_ARITY));
 
@@ -104,7 +104,7 @@ public class HelloWorldExample {
     }
     
     private static Population getInitialPopulation() {
-        List<Chromosome> popList = new LinkedList<Chromosome>();
+        List<Chromosome> popList = new LinkedList<>();
 
         for (int i = 0; i < POPULATION_SIZE; i++) {
             popList.add(new StringChromosome(randomRepresentation(DIMENSION)));
@@ -176,7 +176,7 @@ public class HelloWorldExample {
             
             int mutationIndex = GeneticAlgorithm.getRandomGenerator().nextInt(characters.size());
 
-            List<Character> mutatedChromosome = new ArrayList<Character>(characters);
+            List<Character> mutatedChromosome = new ArrayList<>(characters);
             char newValue = (char) (32 + GeneticAlgorithm.getRandomGenerator().nextInt(127 - 32));
             mutatedChromosome.set(mutationIndex, newValue);
 
diff --git a/src/userguide/java/org/apache/commons/math4/userguide/genetics/ImageEvolutionExample.java b/src/userguide/java/org/apache/commons/math4/userguide/genetics/ImageEvolutionExample.java
index b56e0d731..9b2e6355f 100644
--- a/src/userguide/java/org/apache/commons/math4/userguide/genetics/ImageEvolutionExample.java
+++ b/src/userguide/java/org/apache/commons/math4/userguide/genetics/ImageEvolutionExample.java
@@ -135,7 +135,7 @@ public class ImageEvolutionExample {
             });
 
             // initialize a new genetic algorithm
-            ga = new GeneticAlgorithm(new UniformCrossover<Polygon>(0.5), 1.0,
+            ga = new GeneticAlgorithm(new UniformCrossover<>(0.5), 1.0,
                                       new RandomPolygonMutation(MUTATION_RATE, MUTATION_CHANGE), 1.0,
                                       new TournamentSelection(TOURNAMENT_ARITY));
 
@@ -218,7 +218,7 @@ public class ImageEvolutionExample {
     }
 
     private static Population getInitialPopulation() {
-        List<Chromosome> popList = new LinkedList<Chromosome>();
+        List<Chromosome> popList = new LinkedList<>();
         for (int i = 0; i < POPULATION_SIZE; i++) {
             popList.add(PolygonChromosome.randomChromosome(POLYGON_LENGTH, POLYGON_COUNT));
         }
diff --git a/src/userguide/java/org/apache/commons/math4/userguide/genetics/PolygonChromosome.java b/src/userguide/java/org/apache/commons/math4/userguide/genetics/PolygonChromosome.java
index 6aa3c7140..8e27c3371 100644
--- a/src/userguide/java/org/apache/commons/math4/userguide/genetics/PolygonChromosome.java
+++ b/src/userguide/java/org/apache/commons/math4/userguide/genetics/PolygonChromosome.java
@@ -125,7 +125,7 @@ public class PolygonChromosome extends AbstractListChromosome<Polygon> {
     }
     
     public static Chromosome randomChromosome(int polygonLength, int polygonCount) {
-        List<Polygon> list = new ArrayList<Polygon>(polygonCount);
+        List<Polygon> list = new ArrayList<>(polygonCount);
         for (int j = 0; j < polygonCount; j++) {
             list.add(Polygon.randomPolygon(polygonLength));
         }
diff --git a/src/userguide/java/org/apache/commons/math4/userguide/genetics/RandomPolygonMutation.java b/src/userguide/java/org/apache/commons/math4/userguide/genetics/RandomPolygonMutation.java
index 9b6835a32..cd4983f0c 100644
--- a/src/userguide/java/org/apache/commons/math4/userguide/genetics/RandomPolygonMutation.java
+++ b/src/userguide/java/org/apache/commons/math4/userguide/genetics/RandomPolygonMutation.java
@@ -40,7 +40,7 @@ public class RandomPolygonMutation implements MutationPolicy {
         PolygonChromosome polygons = (PolygonChromosome) chromosome;
         List<Polygon> repr = polygons.getPolygonRepresentation();
 
-        List<Polygon> newRepr = new ArrayList<Polygon>(repr.size());
+        List<Polygon> newRepr = new ArrayList<>(repr.size());
         for (Polygon p : repr) {
             newRepr.add(p.mutate(mutationRate, mutationAmount));
         }