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();
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 6 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 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("DBCopy Executor Thread"); |
4 | execThread.start(); | | 4 | execThread.start(); |
Precondition Violations (1)
Row |
Violation |
1 | The 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 |