remove some unnecessary casts

Change-Id: I63b0ce257b40caa53aef337e953ce8d07862d292
This commit is contained in:
Noel Grandin
2013-05-03 13:48:59 +02:00
parent e10300dc78
commit 95e1ecbf89
3 changed files with 10 additions and 17 deletions

View File

@@ -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:

View File

@@ -124,8 +124,6 @@ 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;
@@ -135,8 +133,6 @@ public class SpreadsheetRawReportTarget extends OfficeDocumentReportTarget
return -1; return -1;
} }
} }
return 1;
}
public boolean equals(final Object obj) public boolean equals(final Object obj)
{ {

View File

@@ -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();