remove some unnecessary casts
Change-Id: I63b0ce257b40caa53aef337e953ce8d07862d292
This commit is contained in:
@@ -98,7 +98,7 @@ public final class DEPSSolverImpl extends BaseEvolutionarySolver
|
|||||||
public String[] getSupportedServiceNames() {
|
public String[] getSupportedServiceNames() {
|
||||||
return m_serviceNames;
|
return m_serviceNames;
|
||||||
}
|
}
|
||||||
|
|
||||||
// com.sun.star.sheet.XSolver:
|
// com.sun.star.sheet.XSolver:
|
||||||
private DEPSAgent[] m_agents;
|
private DEPSAgent[] m_agents;
|
||||||
|
|
||||||
@@ -142,8 +142,7 @@ public final class DEPSSolverImpl extends BaseEvolutionarySolver
|
|||||||
m_agents[i].setGTBehavior(psGTBehavior);
|
m_agents[i].setGTBehavior(psGTBehavior);
|
||||||
|
|
||||||
m_agents[i].setSpecComparator(m_specCompareEngine);
|
m_agents[i].setSpecComparator(m_specCompareEngine);
|
||||||
if (m_agents[i] instanceof ILibEngine)
|
m_agents[i].setLibrary(m_library);
|
||||||
((ILibEngine)m_agents[i]).setLibrary(m_library);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Learn:
|
//Learn:
|
||||||
@@ -160,7 +159,7 @@ public final class DEPSSolverImpl extends BaseEvolutionarySolver
|
|||||||
|
|
||||||
if (m_solverStatusDialog.getUserState() == IEvolutionarySolverStatusDialog.CONTINUE)
|
if (m_solverStatusDialog.getUserState() == IEvolutionarySolverStatusDialog.CONTINUE)
|
||||||
lockDocument();
|
lockDocument();
|
||||||
|
|
||||||
m_toleratedCount = 0;
|
m_toleratedCount = 0;
|
||||||
m_toleratedMin = -1.0 * m_tolerance.getValue();
|
m_toleratedMin = -1.0 * m_tolerance.getValue();
|
||||||
m_toleratedMax = 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_solverStatusDialog.setRuntime(runtime + (System.nanoTime() - startTime));
|
||||||
m_xReschedule.reschedule();
|
m_xReschedule.reschedule();
|
||||||
}
|
}
|
||||||
|
|
||||||
applySolution(); //show the current solution
|
applySolution(); //show the current solution
|
||||||
unlockDocument(); //allow the solution to be displayed
|
unlockDocument(); //allow the solution to be displayed
|
||||||
|
|
||||||
|
@@ -124,18 +124,14 @@ public class SpreadsheetRawReportTarget extends OfficeDocumentReportTarget
|
|||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (arg0 instanceof ColumnBoundary)
|
if (boundary > arg0.boundary)
|
||||||
{
|
{
|
||||||
if (boundary > arg0.boundary)
|
return 1;
|
||||||
{
|
}
|
||||||
return 1;
|
else
|
||||||
}
|
{
|
||||||
else
|
return -1;
|
||||||
{
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean equals(final Object obj)
|
public boolean equals(final Object obj)
|
||||||
|
@@ -34,8 +34,6 @@ public class AccessibilityTreeModel
|
|||||||
public AccessibilityTreeModel (AccessibleTreeNode aRoot)
|
public AccessibilityTreeModel (AccessibleTreeNode aRoot)
|
||||||
{
|
{
|
||||||
// create default node (unless we have a 'proper' node)
|
// create default node (unless we have a 'proper' node)
|
||||||
if( ! (aRoot instanceof AccessibleTreeNode) )
|
|
||||||
aRoot = new StringNode ("Root", null);
|
|
||||||
setRoot (aRoot);
|
setRoot (aRoot);
|
||||||
|
|
||||||
maNodeMap = new NodeMap();
|
maNodeMap = new NodeMap();
|
||||||
|
Reference in New Issue
Block a user