File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/composer/MessageBuilderHelper.java | File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/frame/FrameManager.java | |||
Method name: boolean isHTMLEnabled()
|
Method name: ViewItem createCustomViewItem(String)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | XmlElement optionsElement = MailConfig.getInstance().get(↵ | 1 | XmlElement parent = Config.getInstance().get(↵ | |
2 | "composer_options").getElement("/option↵ | 2 | "views").getElement(↵ | |
3 | s");↵ | 3 | "views");↵ | |
4 | XmlElement htmlElement = optionsElement.getElement("html");↵ | 4 | XmlElement custom = parent.getElement("custom");↵ | |
5 | // create html element, if it doesn't exist↵ | 5 | ↵ | |
6 | if (htmlElement == null) {↵ | 6 | if (custom == null)↵ | |
7 | htmlElement = optionsElement.addSubElement("html");↵ | 7 | custom = parent.addSubElement("↵ | |
8 | } | 8 |
| |
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.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) | 15.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | XmlElement optionsElement = MailConfig.getInstance().get("composer_options").getElement("/options"); |
| 1 | XmlElement parent = Config.getInstance().get("views").getElement("views"); | ||||||||||||||||||||||||
4 | XmlElement htmlElement = optionsElement.getElement("html"); |
| 2 | XmlElement custom = parent.getElement("custom"); | ||||||||||||||||||||||||
5 | if (htmlElement == null) |
| 3 | if (custom == null) | ||||||||||||||||||||||||
6 | htmlElement = optionsElement.addSubElement("html"); |
| 4 | custom = parent.addSubElement("custom"); |
Row | Violation |
---|---|
1 | Type org.columba.mail.config.MailConfig of variable MailConfig.getInstance() does not match with type org.columba.core.config.Config of variable Config.getInstance() |
2 | Type org.columba.mail.config.MailConfig does not match with type org.columba.core.config.Config |