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
   	}
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.2
Clones locationClones are in different classes
Number of node comparisons1