Runnable runnable = new Runnable() { public void run() { _execute(); } }; execThread = new Thread(runnable); execThread.setName("Dataimport Executor Thread"); execThread.start();
Runnable runnable = new Runnable() { public void run() { _execute(); } }; execThread = new Thread(runnable); execThread.setName("DBCopy Executor Thread"); execThread.start();
Clone fragments detected by clone detection tool
File path: /sql12/plugins/dataimport/src/net/sourceforge/squirrel_sql/plugins/dataimport/ImportDataIntoTableExecutor.java File path: /sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/CopyExecutor.java
Method name: void execute() Method name: void execute()
Number of AST nodes: 4 Number of AST nodes: 4
1
Runnable runnable = new Runnable() {
1
Runnable runnable = new Runnable() {
2
            public void run() {
2
            public void run() {
3
                _execute();
3
                _execute();
4
            }
4
            }
5
        };
5
        };
6
        execThread = new Thread(runnable);
6
        execThread = new Thread(runnable);
7
        execThread.setName("Dataimport Executor Thread");
7
        execThread.setName("DBCopy Executor Thread");
8
        execThread.start();
8
        execThread.start();
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 comparisons6
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements4
    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
    Runnable runnable = new Runnable() {...};
    1
    Runnable runnable = new Runnable() {...};
    2
    execThread = new Thread(runnable);
    2
    execThread = new Thread(runnable);
    3
    execThread.setName("Dataimport Executor Thread");
    3
    execThread.setName("Dataimport Executor Thread");
    3
    execThread.setName("DBCopy Executor Thread");
    Differences
    Expression1Expression2Difference
    "Dataimport Executor Thread""DBCopy Executor Thread"LITERAL_VALUE_MISMATCH
    3
    execThread.setName("DBCopy Executor Thread");
    4
    execThread.start();
    4
    execThread.start();
    Precondition Violations (1)
    Row Violation
    1The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.plugins.dataimport.ImportDataIntoTableExecutor and net.sourceforge.squirrel_sql.plugins.dbcopy.CopyExecutor do not have a common superclass