if(threads[i] == thread)
{
index = i;
break;
}
if(ring[i] != rem
&& ring[i].hashcode == rem.hashcode
&& ring[i].str.equals(rem.str))
{
// we don't want duplicate
// entries in the kill ring
kill = i;
break;
}
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/util/WorkThreadPool.java
|
|
File path: /jEdit-4.2/src/org/gjt/sp/jedit/buffer/KillRing.java
|
Method name: void fireStatusChanged(WorkThread)
|
|
Method name: void changed(UndoManager.Remove)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | if(threads[i] == thread)↵ | | 1 | if(↵
|
2 | {↵ | | |
|
3 | index↵ | | 2 | ring[i] != rem↵
|
| | | 3 | && ring[i].hashcode == rem.hashcode↵
|
| | | 4 | && ring[i].str.equals(rem.str))↵
|
| | | 5 | {↵
|
| | | 6 | // we don't want duplicate↵
|
| | | 7 | // entries in the kill ring↵
|
4 | = i;↵ | | 8 | kill = i;↵
|
5 | break;↵ | | 9 | break;↵
|
6 | } | | 10 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |