if (child instanceof IMAPFolder) {
if (removeNotMarkedSubfolders(child)) {
// A child got removed -> stay at this position to
// get the next
i--;
}
}
for (Object uid : uids) {
if (exists(uid)) {
list.add(uid);
}
}
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/folder/imap/IMAPRootFolder.java
|
|
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/folder/virtual/VirtualFolder.java
|
Method name: boolean removeNotMarkedSubfolders(AbstractFolder)
|
|
Method name: void markMessage(Object[], int)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | if (child instanceof IMAPFolder) {↵ | | 1 | for (Object uid : uids) {↵
|
2 | if (removeNotMarkedSubfolders(child)) {↵ | | 2 | if (↵
|
3 | // A child got removed -> stay at this position to↵ | | |
|
4 | // get the next↵ | | |
|
5 | i--↵ | | 3 | exists(uid)) {↵
|
6 | ;↵ | | 4 | list.add(uid);↵
|
7 | }↵ | | 5 | }↵
|
8 | } | | 6 | }
|
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 having the same super class |
Number of node comparisons | 1 |