for (String column : _tableColumns) { _columnBox.addItem(column); }
for (String table : tableList) { _referencesField.addItem(table); }
Clone fragments detected by clone detection tool
File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/gui/AddIndexDialog.java File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/gui/AddForeignKeyDialog.java
Method name: void initData() Method name: void setReferencesTable(String[])
Number of AST nodes: 2 Number of AST nodes: 2
1
for (String column : _tableColumns)
1
for (String table : table
2
			{
3
				_columnBox
2
List) {
4
.addItem(column);
3
                _referencesField.addItem(
5
			
4
table);
6
}
5
            }
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.1
Clones locationClones are in different classes having the same super class
Number of node comparisons4
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)1.1
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    for (String column : _tableColumns)
    1
    for (String column : _tableColumns)
    1
    for (String table : tableList)
    Differences
    Expression1Expression2Difference
    columntableVARIABLE_NAME_MISMATCH
    _tableColumnstableListVARIABLE_NAME_MISMATCH
    1
    for (String table : tableList)
    2
    _columnBox.addItem(column);
    2
    _columnBox.addItem(column);
    2
    _referencesField.addItem(table);
    Differences
    Expression1Expression2Difference
    columntableVARIABLE_NAME_MISMATCH
    _columnBox_referencesFieldVARIABLE_NAME_MISMATCH
    2
    _referencesField.addItem(table);
    Precondition Violations (0)
    Row Violation