for (int row = 0; row < tbl.getRowCount(); row++)
{
tbl.setValueAt(mark, row, col);
}
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/plugins/smarttools/src/net/sourceforge/squirrel_sql/plugins/smarttools/SmarttoolsHelper.java
|
|
File path: /sql12/test/src/net/sourceforge/squirrel_sql/client/update/gui/AbstractTableModelTest.java
|
Method name: void markAllRows(JTable, int, boolean)
|
|
Method name: void testGetValueAt()
|
Number of AST nodes: 2
|
|
Number of AST nodes: 3
|
|
1 | for (int row = 0; row < tbl.getRowCount(); row++)↵ | | 1 | for (int rowIdx = 0; rowIdx < classUnderTest.getRowCount(); row↵
|
2 | {↵ | | |
|
3 | tbl.s↵ | | 2 | Idx++) {↵
|
| | | 3 | for (int colIdx = 0; colIdx < classUnderTest.getColumnCount(); colIdx++) {↵
|
4 | etValueAt(mark, row, col);↵ | | 4 | assertNotNull(classUnderTest.getValueAt(↵
|
5 | ↵ | | 5 | rowIdx, colIdx));↵
|
| | | 6 | }↵
|
6 | } | | 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 |