File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/message/viewer/AttachmentModel.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/message/viewer/HeaderViewer.java | |||
Method name: void setCollection(MimeTree)
|
Method name: void removeBodyParts(MimeTree, List)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (bodyParent != null) {↵ | 1 | if (bodyParent != null) {↵ | |
2 | if (bodyParent.getHeader().getMimeType().getSubtype().equals(↵ | 2 | if (bodyParent.getHeader().getMimeType().getSubtype().equals(↵ | |
3 | "alternative")) {↵ | 3 | "alternative")) {↵ | |
4 | List bodyParts = bodyParent.getChilds();↵ | 4 | List bodyParts = bodyParent.getChilds();↵ | |
5 | displayedMimeParts.removeAll(bodyParts);↵ | 5 | displayedMimeParts.removeAll(bodyParts);↵ | |
6 | } else {↵ | 6 | } else {↵ | |
7 | displayedMimeParts.remove(bodyPart);↵ | 7 | displayedMimeParts.remove(bodyPart);↵ | |
8 | }↵ | 8 | }↵ | |
9 | } else {↵ | 9 | } else {↵ | |
10 | displayedMimeParts.remove(bodyPart);↵ | 10 | displayedMimeParts.remove(bodyPart);↵ | |
11 | } | 11 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.4 |
Clones location | Clones are in different classes |
Number of node comparisons | 21 |
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) | 2.0 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
6 | if (bodyParent != null) | 4 | if (bodyParent != null) | |
7 | if (bodyParent.getHeader().getMimeType().getSubtype().equals("alternative")) | 5 | if (bodyParent.getHeader().getMimeType().getSubtype().equals("alternative")) | |
8 | List bodyParts = bodyParent.getChilds(); | 6 | List bodyParts = bodyParent.getChilds(); | |
9 | displayedMimeParts.removeAll(bodyParts); | 7 | displayedMimeParts.removeAll(bodyParts); | |
else | else | |||
10 | displayedMimeParts.remove(bodyPart); | 8 | displayedMimeParts.remove(bodyPart); | |
else | else | |||
11 | displayedMimeParts.remove(bodyPart); | 9 | displayedMimeParts.remove(bodyPart); |
Row | Violation |
---|---|
1 | The refactoring of the clones is infeasible, because classes org.columba.mail.gui.message.viewer.AttachmentModel and org.columba.mail.gui.message.viewer.HeaderViewer do not have a common superclass |