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 d4a3b56dd..7f5493950 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 @@ -59,7 +59,7 @@ import org.apache.commons.math4.legacy.core.MathArrays; */ public class DerivativeStructure implements RealFieldElement { /** Compiler for the current dimensions. */ - private transient DSCompiler compiler; + private DSCompiler compiler; /** Combined array holding all values. */ private final double[] data; diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/linear/LinearConstraint.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/linear/LinearConstraint.java index 3ea1fbfe3..82ea6d7f7 100644 --- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/linear/LinearConstraint.java +++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/linear/LinearConstraint.java @@ -41,7 +41,7 @@ import org.apache.commons.math4.legacy.linear.RealVector; */ public class LinearConstraint { /** Coefficients of the constraint (left hand side). */ - private final transient RealVector coefficients; + private final RealVector coefficients; /** Relationship between left and right hand sides {@code (=, <=, >=)}. */ private final Relationship relationship; /** Value of the constraint (right hand side). */ 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 ca117d521..ac88ba981 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 @@ -37,7 +37,7 @@ public class LinearObjectiveFunction implements MultivariateFunction, OptimizationData { /** Coefficients of the linear equation (ci). */ - private final transient RealVector coefficients; + private final RealVector coefficients; /** Constant term of the linear equation. */ private final double constantTerm; 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 6bf68f937..16a73ddfc 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 @@ -94,7 +94,7 @@ class SimplexTableau { private final List columnLabels = new ArrayList<>(); /** Simple tableau. */ - private transient Array2DRowRealMatrix tableau; + private Array2DRowRealMatrix tableau; /** Number of decision variables. */ private final int numDecisionVariables;