Kaydet (Commit) 95e1ecbf authored tarafından Noel Grandin's avatar Noel Grandin

remove some unnecessary casts

Change-Id: I63b0ce257b40caa53aef337e953ce8d07862d292
üst e10300dc
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment