super(new Dimension(430, 350)); _localTableName = localTable; _localTableColumns = localTableColumns; _tables = tables; init();
_querySep = querySep; _lineCommentBegin = lineCommentBegin; _removeMultiLineComment = removeMultiLineComment; setFactory();
Clone fragments detected by clone detection tool
File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/gui/AddForeignKeyDialog.java File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/sql/QueryTokenizer.java
Method name: void AddForeignKeyDialog(String, String[], HashMap) Method name: void QueryTokenizer(String, String, boolean)
Number of AST nodes: 5 Number of AST nodes: 4
1
super(new Dimension(430, 350));
2
        _localTableName = localTable;
3
        _localTableColumns = localTableColumns;
4
        _tables = tables;
5
        init
1
_querySep = querySep;
2
        _lineCommentBegin = lineCommentBegin;
3
        _removeMultiLineComment = removeMultiLineComment;
6
();
4
        setFactory();
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
Number of node comparisons15
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment3
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
                                                
    1
    _querySep = querySep;
    Preondition Violations
    Unmatched statement _querySep=querySep; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    1
    _querySep = querySep;
    1
    super(new Dimension(430, 350));
                                                                      
    2
    _localTableName = localTable;
    2
    _localTableName = localTable;
    2
    _lineCommentBegin = lineCommentBegin;
    Differences
    Expression1Expression2Difference
    _localTableName_lineCommentBeginVARIABLE_NAME_MISMATCH
    localTablelineCommentBeginVARIABLE_NAME_MISMATCH
    2
    _lineCommentBegin = lineCommentBegin;
                                                                                                        
    3
    _removeMultiLineComment = removeMultiLineComment;
    Preondition Violations
    Unmatched statement _removeMultiLineComment=removeMultiLineComment; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    3
    _removeMultiLineComment = removeMultiLineComment;
    3
    _localTableColumns = localTableColumns;
    3
    _localTableColumns = localTableColumns;
    Preondition Violations
    Unmatched statement _localTableColumns=localTableColumns; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                                    
    4
    _tables = tables;
    4
    _tables = tables;
    Preondition Violations
    Unmatched statement _tables=tables; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                        
    5
    init();
    5
    init();
    4
    setFactory();
    Differences
    Expression1Expression2Difference
    initsetFactoryMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression init() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method init
    Expression setFactory() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression init() is a void method call, and thus it cannot be parameterized
    Expression setFactory() is a void method call, and thus it cannot be parameterized
    4
    setFactory();
    Precondition Violations (9)
    Row Violation
    1Unmatched statement _querySep=querySep; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2Unmatched statement _removeMultiLineComment=removeMultiLineComment; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    3Unmatched statement _localTableColumns=localTableColumns; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    4Unmatched statement _tables=tables; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    5Expression init() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression setFactory() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7Expression init() is a void method call, and thus it cannot be parameterized
    8Expression setFactory() is a void method call, and thus it cannot be parameterized
    9The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.plugins.refactoring.gui.AddForeignKeyDialog and net.sourceforge.squirrel_sql.fw.sql.QueryTokenizer do not have a common superclass