File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/composer/MessageBuilderHelper.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/composer/MessageComposer.java | |||
Method name: boolean isHTMLEnabled()
|
Method name: SendableMessage compose(IWorkerStatusController, boolean)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | XmlElement htmlElement = optionsElement.getElement("html");↵ | 1 | XmlElement html↵ | |
2 | // create html element, if it doesn't exist↵ | |||
2 | = composerOptions.getElement("html");↵ | |||
3 | if (htmlElement == null) {↵ | 3 | if (html == null) {↵ | |
4 | htmlElement = optionsElement.addSubElement("html");↵ | 4 | html = composerOptions.addSubElement("html");↵ | |
5 | }↵ | 5 | }↵ | |
6 | // get enable attribute↵ | 6 | ↵ | |
7 | String enableHtml = htmlElement.getAttribute("enable", "false"); | 7 | String multipart = html.getAttribute("send_as_multipart", "true"); | |
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.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 8 |
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.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | XmlElement htmlElement = optionsElement.getElement("html"); |
| 15 | XmlElement html = composerOptions.getElement("html"); | |||||||||||||||||||
5 | if (htmlElement == null) |
| 16 | if (html == null) | |||||||||||||||||||
6 | htmlElement = optionsElement.addSubElement("html"); |
| 17 | html = composerOptions.addSubElement("html"); | |||||||||||||||||||
7 | String enableHtml = htmlElement.getAttribute("enable", "false"); |
| 18 | String multipart = html.getAttribute("send_as_multipart", "true"); |
Row | Violation |
---|