File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/model/ContactModelXMLFactory.java | File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/model/ContactModelXMLFactory.java | |||
Method name: Document marshall(IContactModel)
|
Method name: Document marshall(IContactModel)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (contactModel.getFormattedName() != null)↵ | 1 | if (contactModel.getHomePage() != null)↵ | |
2 | parser.set(VCARD.FN, contactModel.getFormattedName());↵ | 2 | parser.set(VCARD.URL, contactModel.get↵ | |
3 | // <nickname>value</nickname>↵ | 3 | HomePage());↵ | |
4 | if (contactModel.getNickName() != null)↵ | 4 | if (contactModel.getWeblog() != null)↵ | |
5 | parser.set(VCARD.NICKNAME, contactModel.getNickName()); | 5 | parser.set(VCARD.X_COLUMBA_URL_BLOG, contactModel.getWeblog()); | |
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.3 |
Clones location | Clones are in the same method |
Number of node comparisons | 13 |
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) | 1.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 | if (contactModel.getFormattedName() != null) |
| 21 | if (contactModel.getHomePage() != null) | |||||||||||||
8 | parser.set(VCARD.FN, contactModel.getFormattedName()); |
| 22 | parser.set(VCARD.URL, contactModel.getHomePage()); | |||||||||||||
9 | if (contactModel.getNickName() != null) |
| 23 | if (contactModel.getWeblog() != null) | |||||||||||||
10 | parser.set(VCARD.NICKNAME, contactModel.getNickName()); |
| 24 | parser.set(VCARD.X_COLUMBA_URL_BLOG, contactModel.getWeblog()); |
Row | Violation |
---|