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.getWeblog() != null)↵ | |
2 | parser.set(VCARD.FN, contactModel.getFormattedName());↵ | 2 | parser.set(VCARD.↵ | |
3 | // <nickname>value</nickname>↵ | 3 | X_COLUMBA_URL_BLOG, contactModel.getWeblog());↵ | |
4 | if (contactModel.getNickName() != null)↵ | 4 | if (contactModel.getFreeBusy() != null)↵ | |
5 | parser.set(VCARD.NICKNAME, contactModel.getNickName()); | 5 | parser.set(VCARD.X_COLUMBA_URL_FREEBUSY, contactModel.getFreeBusy()); | |
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.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 | if (contactModel.getFormattedName() != null) |
| 23 | if (contactModel.getWeblog() != null) | |||||||||||||
8 | parser.set(VCARD.FN, contactModel.getFormattedName()); |
| 24 | parser.set(VCARD.X_COLUMBA_URL_BLOG, contactModel.getWeblog()); | |||||||||||||
9 | if (contactModel.getNickName() != null) |
| 25 | if (contactModel.getFreeBusy() != null) | |||||||||||||
10 | parser.set(VCARD.NICKNAME, contactModel.getNickName()); |
| 26 | parser.set(VCARD.X_COLUMBA_URL_FREEBUSY, contactModel.getFreeBusy()); |
Row | Violation |
---|