File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/command/ForwardInlineCommand.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/command/RedirectCommand.java | |||
Method name: void execute(IWorkerStatusController)
|
Method name: void execute(IWorkerStatusController)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | if (bodyPart != null) {↵ | 1 | if (bodyPart != null) {↵ | |
2 | // setup charset and html↵ | 2 | // setup charset and html↵ | |
3 | initMimeHeader(bodyPart);↵ | 3 | initMimeHeader(bodyPart);↵ | |
4 | bodyPartAddress = bodyPart.getAddress();↵ | 4 | bodyPartAddress = bodyPart.getAddress();↵ | |
5 | String quotedBodyText = createQuotedBody(bodyPart.getHeader(),↵ | 5 | String quotedBodyText = createQuotedBody(↵ | |
6 | folder, uids, ↵ | 6 | folder, uids,↵ | |
7 | bodyPartAddress);↵ | 7 | bodyPartAddress);↵ | |
8 | /*↵ | 8 | /*↵ | |
9 | * *20040210, karlpeder* Remove html comments - they are not↵ | 9 | * *20040210, karlpeder* Remove html comments - they are not↵ | |
10 | * displayed properly in the composer↵ | 10 | * displayed properly in the composer↵ | |
11 | */↵ | 11 | */↵ | |
12 | if (bodyPart.getHeader().getMimeType().getSubtype().equals("html")) {↵ | 12 | if (bodyPart.getHeader().getMimeType().getSubtype().equals("html")) {↵ | |
13 | quotedBodyText = HtmlParser.removeComments(quotedBodyText);↵ | 13 | quotedBodyText = HtmlParser.removeComments(quotedBodyText);↵ | |
14 | }↵ | 14 | }↵ | |
15 | model.setBodyText(quotedBodyText);↵ | 15 | model.setBodyText(quotedBodyText);↵ | |
16 | } | 16 |
| |
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.3 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 29 |
Number of mapped statements | 7 |
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) | 35.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
14 | if (bodyPart != null) | 14 | if (bodyPart != null) | |||||||||||||
15 | initMimeHeader(bodyPart); | 15 | initMimeHeader(bodyPart); | |||||||||||||
16 | bodyPartAddress = bodyPart.getAddress(); | 16 | bodyPartAddress = bodyPart.getAddress(); | |||||||||||||
17 | String quotedBodyText = createQuotedBody(bodyPart.getHeader(), folder, uids, bodyPartAddress); |
| 17 | String quotedBodyText = createQuotedBody(folder, uids, bodyPartAddress); | ||||||||||||
18 | if (bodyPart.getHeader().getMimeType().getSubtype().equals("html")) | 18 | if (bodyPart.getHeader().getMimeType().getSubtype().equals("html")) | |||||||||||||
19 | quotedBodyText = HtmlParser.removeComments(quotedBodyText); | 19 | quotedBodyText = HtmlParser.removeComments(quotedBodyText); | |||||||||||||
20 | model.setBodyText(quotedBodyText); | 20 | model.setBodyText(quotedBodyText); |
Row | Violation |
---|---|
1 | Expression createQuotedBody(bodyPart.getHeader(),folder,uids,bodyPartAddress) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression createQuotedBody(folder,uids,bodyPartAddress) cannot be parameterized, because it has dependencies to/from statements that will be extracted |