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: 12 | Number of AST nodes: 12 | |||
1 | if (namespaces.getPersonalNamespaceSize() > 0) {↵ | 1 | if (namespaces.getOtherUserNamespaceSize() > 0) {↵ | |
2 | it = namespaces.getPersonalIterator();↵ | 2 | it = namespaces.getOtherUserIterator();↵ | |
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 | }↵ | |
9 | // Process other users namespaces↵ | 9 | // Process shared namespaces↵ | |
10 | if (namespaces.getOtherUserNamespaceSize() > 0) {↵ | 10 | if (namespaces.getSharedNamespaceSize() > 0) {↵ | |
11 | it = namespaces.getOtherUserIterator();↵ | 11 | it = namespaces.getSharedIterator();↵ | |
12 | while (it.hasNext()) {↵ | 12 | while (it.hasNext()) {↵ | |
13 | Namespace pN = (Namespace) it.next();↵ | 13 | Namespace pN = (Namespace) it.next();↵ | |
14 | ListInfo[] list = store.list("", pN.getPrefix() + '%');↵ | 14 | ListInfo[] list = store.list("", pN.getPrefix() + '%');↵ | |
15 | result.addAll(Arrays.asList(list));↵ | 15 | result.addAll(Arrays.asList(list));↵ | |
16 | }↵ | 16 | }↵ | |
17 | } | 17 |
| |
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.6 |
Clones location | Clones are in the same method |
Number of node comparisons | 65 |
Number of mapped statements | 12 |
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) | 101.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8 | if (namespaces.getPersonalNamespaceSize() > 0) |
| 14 | if (namespaces.getOtherUserNamespaceSize() > 0) | ||||||||||
9 | it = namespaces.getPersonalIterator(); |
| 15 | it = namespaces.getOtherUserIterator(); | ||||||||||
10 | while (it.hasNext()) | 16 | while (it.hasNext()) | |||||||||||
11 | Namespace pN = (Namespace)it.next(); | 17 | Namespace pN = (Namespace)it.next(); | |||||||||||
12 | ListInfo[] list = store.list("", pN.getPrefix() + '%'); | 18 | ListInfo[] list = store.list("", pN.getPrefix() + '%'); | |||||||||||
13 | result.addAll(Arrays.asList(list)); | 19 | result.addAll(Arrays.asList(list)); | |||||||||||
14 | if (namespaces.getOtherUserNamespaceSize() > 0) |
| 20 | if (namespaces.getSharedNamespaceSize() > 0) | ||||||||||
15 | it = namespaces.getOtherUserIterator(); |
| 21 | it = namespaces.getSharedIterator(); | ||||||||||
16 | while (it.hasNext()) | 22 | while (it.hasNext()) | |||||||||||
17 | Namespace pN = (Namespace)it.next(); | 23 | Namespace pN = (Namespace)it.next(); | |||||||||||
18 | ListInfo[] list = store.list("", pN.getPrefix() + '%'); | 24 | ListInfo[] list = store.list("", pN.getPrefix() + '%'); | |||||||||||
19 | result.addAll(Arrays.asList(list)); | 25 | result.addAll(Arrays.asList(list)); |
Row | Violation |
---|