File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/folder/AbstractFolder.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/folder/AbstractFolder.java | |||
Method name: AbstractFolder findChildWithUID(String, boolean)
|
Method name: AbstractFolder findChildWithName(String, boolean, Class)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (recurse) {↵ | 1 | if (recurse) {↵ | |
2 | AbstractFolder subchild = child.findChildWithUID(uid, true);↵ | 2 | AbstractFolder subchild = child.findChildWithName(str, true);↵ | |
3 | if (subchild != null) {↵ | 3 | if (subchild != null) {↵ | |
4 | return subchild;↵ | 4 | return subchild;↵ | |
5 | }↵ | 5 | }↵ | |
6 | } | 6 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.2 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 9 |
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.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6 | else if (recurse) | 8 | else if (recurse) | ||||||||||||||
7 | AbstractFolder subchild = child.findChildWithUID(uid, true); |
| 9 | AbstractFolder subchild = child.findChildWithName(str, true); | |||||||||||||
8 | if (subchild != null) | 10 | if (subchild != null) | ||||||||||||||
9 | return subchild; | 11 | return subchild; |
Row | Violation |
---|