diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-08 11:15:15 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-13 08:49:22 +0200 |
commit | 14d1a11ec4a7ed0deeac522403248536e8d23f57 (patch) | |
tree | 6a976bf53992c68a46472199e5fb494339899ae6 /nlpsolver/src | |
parent | cd0bbdaf379d646c94e6771f3358d7e3a8f206ad (diff) |
java: reduce scope, make constructors private
found by UCDetector
Change-Id: If05277fd2fe77ceabb4c7c87aeb8569e3406102d
Diffstat (limited to 'nlpsolver/src')
3 files changed, 5 insertions, 5 deletions
diff --git a/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/BaseEvolutionarySolver.java b/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/BaseEvolutionarySolver.java index e51f2e6e7de7..a10a82eecb7b 100644 --- a/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/BaseEvolutionarySolver.java +++ b/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/BaseEvolutionarySolver.java @@ -67,7 +67,7 @@ public abstract class BaseEvolutionarySolver extends BaseNLPSolver { protected double MaxValue; protected double Granularity; - protected Variable(CellMap cellMap, int originalVariable) { + private Variable(CellMap cellMap, int originalVariable) { this.CellMap = cellMap; this.OriginalVariable = originalVariable; this.MinValue = BasicBound.MINDOUBLE; @@ -81,7 +81,7 @@ public abstract class BaseEvolutionarySolver extends BaseNLPSolver { private ArrayList<Variable> m_variables; private ArrayList<ExtSolverConstraint> m_constraints; - protected CalcProblemEncoder(ArrayList<Variable> variables, + private CalcProblemEncoder(ArrayList<Variable> variables, ArrayList<ExtSolverConstraint> constraints) throws Exception { //m_variableCount variables to solve, target function + constraints to match super(variables.size(), 1 + constraints.size()); diff --git a/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/BaseNLPSolver.java b/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/BaseNLPSolver.java index 8561763afce3..3709ecb9c12a 100644 --- a/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/BaseNLPSolver.java +++ b/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/BaseNLPSolver.java @@ -170,7 +170,7 @@ public abstract class BaseNLPSolver extends WeakBase protected int StartCol; protected int EndCol; - public RowInfo(short sheet, int row) { + private RowInfo(short sheet, int row) { Sheet = sheet; Row = row; } @@ -199,7 +199,7 @@ public abstract class BaseNLPSolver extends WeakBase public XCell Right; public double Data; - public ExtSolverConstraint(XCell left, SolverConstraintOperator operator, Object right) { + private ExtSolverConstraint(XCell left, SolverConstraintOperator operator, Object right) { this.Left = left; this.Operator = operator; this.Right = null; diff --git a/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/PropertyInfo.java b/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/PropertyInfo.java index 9674213f5520..2371f0eb79e6 100644 --- a/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/PropertyInfo.java +++ b/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/PropertyInfo.java @@ -69,7 +69,7 @@ public class PropertyInfo<PropType> { this(name, value, (short)0, description); } - public PropertyInfo(String name, PropType value, short attributes, + private PropertyInfo(String name, PropType value, short attributes, String description) { m_property = new Property(); m_property.Name = name; |