diff options
author | Noel Grandin <noel@peralex.com> | 2013-05-03 13:48:59 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-05-06 11:45:48 +0200 |
commit | 95e1ecbf89f75e2b298b931c3cc2e0d5655c31ed (patch) | |
tree | dbc8b07b1b7a48dcf08852165c949cd2fa2232dd /nlpsolver | |
parent | e10300dc786beaaa1b126054100d0195a9298b67 (diff) |
remove some unnecessary casts
Change-Id: I63b0ce257b40caa53aef337e953ce8d07862d292
Diffstat (limited to 'nlpsolver')
-rw-r--r-- | nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/DEPSSolverImpl.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/DEPSSolverImpl.java b/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/DEPSSolverImpl.java index e543288c9ef2..6c549268c135 100644 --- a/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/DEPSSolverImpl.java +++ b/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/DEPSSolverImpl.java @@ -98,7 +98,7 @@ public final class DEPSSolverImpl extends BaseEvolutionarySolver public String[] getSupportedServiceNames() { return m_serviceNames; } - + // com.sun.star.sheet.XSolver: private DEPSAgent[] m_agents; @@ -142,8 +142,7 @@ public final class DEPSSolverImpl extends BaseEvolutionarySolver m_agents[i].setGTBehavior(psGTBehavior); m_agents[i].setSpecComparator(m_specCompareEngine); - if (m_agents[i] instanceof ILibEngine) - ((ILibEngine)m_agents[i]).setLibrary(m_library); + m_agents[i].setLibrary(m_library); } //Learn: @@ -160,7 +159,7 @@ public final class DEPSSolverImpl extends BaseEvolutionarySolver if (m_solverStatusDialog.getUserState() == IEvolutionarySolverStatusDialog.CONTINUE) lockDocument(); - + m_toleratedCount = 0; m_toleratedMin = -1.0 * m_tolerance.getValue(); m_toleratedMax = m_tolerance.getValue(); @@ -196,7 +195,7 @@ public final class DEPSSolverImpl extends BaseEvolutionarySolver m_solverStatusDialog.setRuntime(runtime + (System.nanoTime() - startTime)); m_xReschedule.reschedule(); } - + applySolution(); //show the current solution unlockDocument(); //allow the solution to be displayed |