if (index > -1) { vecTarget.remove(index); refreshVecSource(); displayLists(); }
super.setModel(model); _model = model; refresh();
Clone fragments detected by clone detection tool
File path: /sql12/plugins/smarttools/src/net/sourceforge/squirrel_sql/plugins/smarttools/gui/SmarttoolCreateIndexD.java File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/gui/BeanPropertyTable.java
Method name: void removeEntry() Method name: void setModel(BeanPropertyTableModel)
Number of AST nodes: 4 Number of AST nodes: 3
1
if (index > -1) {
2
			vecTarget.remove(index)
1
super.setModel(model);
3
;
2
		_model = model;
4
			refreshVecSource();
3
		refresh
5
			displayLists();
6
		}
4
();
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes having the same super class
Number of node comparisons9
  1. {Non-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
    3
    vecTarget.remove(index);
                                                          
    4
    refreshVecSource();
    4
    refreshVecSource();
    1
    super.setModel(model);
    Differences
    Expression1Expression2Difference
    refreshVecSource()super.setModel(model)TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression refreshVecSource() is a void method call, and thus it cannot be parameterized
    Expression super.setModel(model) is a void method call, and thus it cannot be parameterized
    Super method call super.setModel(model); cannot be extracted from method
    1
    super.setModel(model);
                                    
    2
    _model = model;
    Preondition Violations
    Unmatched statement _model=model; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2
    _model = model;
                              
    3
    refresh();
    5
    displayLists();
    5
    displayLists();
    Preondition Violations
    Unmatched statement displayLists(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                        
    Precondition Violations (6)
    Row Violation
    1Expression refreshVecSource() is a void method call, and thus it cannot be parameterized
    2Expression super.setModel(model) is a void method call, and thus it cannot be parameterized
    3Super method call super.setModel(model); cannot be extracted from method
    4Unmatched statement _model=model; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    5Unmatched statement displayLists(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    6The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.plugins.smarttools.gui.SmarttoolCreateIndexD and net.sourceforge.squirrel_sql.fw.gui.BeanPropertyTable do not have a common superclass