String removedRow = rowData.remove(row); fireTableDataChanged(); return removedRow;
final String results = _rs.getString(columnIdx); _wasNull = results == null; return results;
Clone fragments detected by clone detection tool
File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/gui/AddIndexColumnTableModel.java File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/sql/ResultSetColumnReader.java
Method name: String deleteRow(int) Method name: String getString(int)
Number of AST nodes: 3 Number of AST nodes: 3
1
String removedRow = rowData.remove(row);
1
final String re
2
		fireTableDataChanged()
2
sults = _rs.getString(columnIdx);
3
;
3
		_wasNull = results == null;
4
		return removedRow;
4
		return results;
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.0
Clones locationClones are in different classes
Number of node comparisons9
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
                                                                                                      
    1
    final String results = _rs.getString(columnIdx);
    1
    String removedRow = rowData.remove(row);
                                                                                      
                                                            
    2
    _wasNull = results == null;
    Preondition Violations
    Unmatched statement _wasNull=results == null; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2
    _wasNull = results == null;
    2
    fireTableDataChanged();
                                                        
    3
    return removedRow;
    3
    return removedRow;
    3
    return results;
    Differences
    Expression1Expression2Difference
    removedRowresultsVARIABLE_NAME_MISMATCH
    3
    return results;
    Precondition Violations (1)
    Row Violation
    1Unmatched statement _wasNull=results == null; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted