this._objectInfo = objectInfo; setTypeByID(dialogType); init(tableName);
this._objectInfo = objectInfo; setTypeByID(dialogType); init();
Clone fragments detected by clone detection tool
File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/gui/DefaultListDialog.java File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/gui/DefaultDropDialog.java
Method name: void DefaultListDialog(IDatabaseObjectInfo[], String, int) Method name: void DefaultDropDialog(IDatabaseObjectInfo[], int)
Number of AST nodes: 3 Number of AST nodes: 3
1
this._objectInfo = objectInfo;
1
this._objectInfo = objectInfo;
2
		setTypeByID(dialogType);
2
        setTypeByID(dialogType);
3
		init(tableName);
3
        init();
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 comparisons5
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    this._objectInfo = objectInfo;
    1
    this._objectInfo = objectInfo;
    2
    setTypeByID(dialogType);
    2
    setTypeByID(dialogType);
    3
    init(tableName);
    3
    init(tableName);
    3
    init();
    Differences
    Expression1Expression2Difference
    init(tableName)init()ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression init(tableName) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method init
    Expression init() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression init(tableName) is a void method call, and thus it cannot be parameterized
    Expression init() is a void method call, and thus it cannot be parameterized
    3
    init();
    Precondition Violations (5)
    Row Violation
    1Expression init(tableName) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression init() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression init(tableName) is a void method call, and thus it cannot be parameterized
    4Expression init() is a void method call, and thus it cannot be parameterized
    5The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.plugins.refactoring.gui.DefaultListDialog and net.sourceforge.squirrel_sql.plugins.refactoring.gui.DefaultDropDialog do not have a common superclass