File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/subscribe/SynchronizeFolderListCommand.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/subscribe/SynchronizeFolderListCommand.java | |||
Method name: List fetchUnsubscribedFolders(String)
|
Method name: List fetchUnsubscribedFolders(String)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (namespaces.getPersonalNamespaceSize() > 0) {↵ | 1 | if (namespaces.getSharedNamespaceSize() > 0) {↵ | |
2 | it = namespaces.getPersonalIterator();↵ | 2 | it = namespaces.getSharedIterator();↵ | |
3 | while (it.hasNext()) {↵ | 3 | while (it.hasNext()) {↵ | |
4 | Namespace pN = (Namespace) it.next();↵ | 4 | Namespace pN = (Namespace) it.next();↵ | |
5 | ListInfo[] list = store.list("", pN.getPrefix() + '%');↵ | 5 | ListInfo[] list = store.list("", pN.getPrefix() + '%');↵ | |
6 | result.addAll(Arrays.asList(list));↵ | 6 | result.addAll(Arrays.asList(list));↵ | |
7 | }↵ | 7 | }↵ | |
8 | } | 8 |
| |
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 in the same method |
Number of node comparisons | 26 |
Number of mapped statements | 6 |
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) | 34.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8 | if (namespaces.getPersonalNamespaceSize() > 0) |
| 20 | if (namespaces.getSharedNamespaceSize() > 0) | ||||||||||
9 | it = namespaces.getPersonalIterator(); |
| 21 | it = namespaces.getSharedIterator(); | ||||||||||
10 | while (it.hasNext()) | 22 | while (it.hasNext()) | |||||||||||
11 | Namespace pN = (Namespace)it.next(); | 23 | Namespace pN = (Namespace)it.next(); | |||||||||||
12 | ListInfo[] list = store.list("", pN.getPrefix() + '%'); | 24 | ListInfo[] list = store.list("", pN.getPrefix() + '%'); | |||||||||||
13 | result.addAll(Arrays.asList(list)); | 25 | result.addAll(Arrays.asList(list)); |
Row | Violation |
---|