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.getWeblog() != null)↵ | 1 | if (contactModel.getSortString() != null)↵ | |
2 | parser.set(VCARD.X_COLUMBA_URL_BLOG, contactModel.getWeblog())↵ | 2 | parser.set(VCARD.SORTSTRING, contactModel.getSortString());↵ | |
3 | ;↵ | 3 | // <fn>value</fn>↵ | |
4 | if (contactModel.getFreeBusy() != null)↵ | 4 | if (contactModel.getFormattedName() != null)↵ | |
5 | parser.set(VCARD.X_COLUMBA_URL_FREEBUSY, contactModel.getFreeBusy()); | 5 | parser.set(VCARD.FN, contactModel.getFormattedName()); | |
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 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23 | if (contactModel.getWeblog() != null) |
| 7 | if (contactModel.getFormattedName() != null) | |||||||||||||
24 | parser.set(VCARD.X_COLUMBA_URL_BLOG, contactModel.getWeblog()); |
| 8 | parser.set(VCARD.FN, contactModel.getFormattedName()); | |||||||||||||
25 | if (contactModel.getFreeBusy() != null) |
| 5 | if (contactModel.getSortString() != null) | |||||||||||||
26 | parser.set(VCARD.X_COLUMBA_URL_FREEBUSY, contactModel.getFreeBusy()); |
| 6 | parser.set(VCARD.SORTSTRING, contactModel.getSortString()); |
Row | Violation |
---|