for (int i = 0; i < node.getChildCount(); i++)
{
fillAllAliasesFrom((DefaultMutableTreeNode) node.getChildAt(i), toFill);
}
for (int rowIdx = 0; rowIdx < classUnderTest.getRowCount(); rowIdx++) {
for (int colIdx = 0; colIdx < classUnderTest.getColumnCount(); colIdx++) {
assertNotNull(classUnderTest.getValueAt(rowIdx, colIdx));
}
}
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/JTreeAliasesListImpl.java
|
|
File path: /sql12/test/src/net/sourceforge/squirrel_sql/client/update/gui/AbstractTableModelTest.java
|
Method name: void fillAllAliasesFrom(DefaultMutableTreeNode, ArrayList)
|
|
Method name: void testGetValueAt()
|
Number of AST nodes: 2
|
|
Number of AST nodes: 3
|
|
1 | for (int i = 0; i < node.getChildCount(); i++)↵ | | 1 | for (int ↵
|
2 | {↵ | | 2 | rowIdx = 0; rowIdx < classUnderTest.getRowCount(); rowIdx++) {↵
|
3 | fillAllAliasesFrom((DefaultMutableTreeNode) node.getChildAt(i), toFill);↵ | | 3 | ↵
|
4 | ↵ | | 4 | for (int colIdx = 0; colIdx < classUnderTest.getColumnCount(); colIdx++) {↵
|
| | | 5 | assertNotNull(classUnderTest.getValueAt(rowIdx, colIdx));↵
|
| | | 6 | }↵
|
5 | } | | 7 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |