remove some unnecessary casts
Change-Id: I63b0ce257b40caa53aef337e953ce8d07862d292
This commit is contained in:
@@ -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:
|
||||
|
@@ -124,8 +124,6 @@ public class SpreadsheetRawReportTarget extends OfficeDocumentReportTarget
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
if (arg0 instanceof ColumnBoundary)
|
||||
{
|
||||
if (boundary > arg0.boundary)
|
||||
{
|
||||
return 1;
|
||||
@@ -135,8 +133,6 @@ public class SpreadsheetRawReportTarget extends OfficeDocumentReportTarget
|
||||
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();
|
||||
|
Reference in New Issue
Block a user