while (it.hasNext()) { addToRoot(it.next()); }
if (_table.getRowCount() > 0) { _table.setRowSelectionInterval(0, 0); }
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/xml/XMLBeanWriter.java File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/DataSetViewerTablePanel.java
Method name: void addIteratorToRoot(Iterator) Method name: void moveToTop()
Number of AST nodes: 2 Number of AST nodes: 2
1
while (it.hasNext())
2
		{
3
			addToRoot(it.next()
1
if (_table.getRowCount() > 0)
2
		{
4
);
3
			_table.setRowSelectionInterval(0, 0);
5
		}
4
		}
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.1
Clones locationClones are in different classes
Number of node comparisons1