while (!this.open) {
try {
wait();
} catch (InterruptedException e) {
e.printStackTrace();
}
}
while (mutex) {
try {
wait();
} catch (InterruptedException e) {
}
}
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/base/Barrier.java
|
|
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/folder/outbox/SendListManager.java
|
Method name: void join()
|
|
Method name: void getMutex()
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | while (!this.open) {↵ | | 1 | while (↵
|
2 | ↵ | | 2 | mutex) {↵
|
3 | try {↵ | | 3 | try {↵
|
4 | wait();↵ | | |
|
5 | ↵ | | |
|
| | | 4 | wait();↵
|
6 | } catch (InterruptedException e) {↵ | | 5 | } catch (InterruptedException e) {↵
|
7 | e.printStackTrace();↵ | | |
|
8 | }↵ | | |
|
9 | ↵ | | |
|
| | | 6 | }↵
|
10 | } | | 7 | }
|
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.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |