remove some unnecessary casts
Change-Id: I63b0ce257b40caa53aef337e953ce8d07862d292
This commit is contained in:
parent
e10300dc78
commit
95e1ecbf89
@ -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
|
||||
|
||||
|
@ -124,18 +124,14 @@ public class SpreadsheetRawReportTarget extends OfficeDocumentReportTarget
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
if (arg0 instanceof ColumnBoundary)
|
||||
if (boundary > arg0.boundary)
|
||||
{
|
||||
if (boundary > arg0.boundary)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
public boolean equals(final Object obj)
|
||||
|
@ -34,8 +34,6 @@ public class AccessibilityTreeModel
|
||||
public AccessibilityTreeModel (AccessibleTreeNode aRoot)
|
||||
{
|
||||
// create default node (unless we have a 'proper' node)
|
||||
if( ! (aRoot instanceof AccessibleTreeNode) )
|
||||
aRoot = new StringNode ("Root", null);
|
||||
setRoot (aRoot);
|
||||
|
||||
maNodeMap = new NodeMap();
|
||||
|
Loading…
x
Reference in New Issue
Block a user