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.getHomePage() != null)↵ | 1 | if (contactModel.getFreeBusy() != null)↵ | |
2 | parser.set(VCARD.URL, contactModel.getHomePage());↵ | 2 | parser.set(VCARD.X_COLUMBA_URL_FREEBUSY, contactModel.getFreeBusy());↵ | |
3 | if (contactModel.getWeblog() != null)↵ | 3 | if (contactModel.getCalendar() != null)↵ | |
4 | parser.set(VCARD.X_COLUMBA_URL_BLOG, contactModel.getWeblog()); | 4 | parser.set(VCARD.X_COLUMBA_URL_CALENDAR, contactModel.getCalendar()); | |
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.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
21 | if (contactModel.getHomePage() != null) |
| 25 | if (contactModel.getFreeBusy() != null) | |||||||||||||
22 | parser.set(VCARD.URL, contactModel.getHomePage()); |
| 26 | parser.set(VCARD.X_COLUMBA_URL_FREEBUSY, contactModel.getFreeBusy()); | |||||||||||||
23 | if (contactModel.getWeblog() != null) |
| 27 | if (contactModel.getCalendar() != null) | |||||||||||||
24 | parser.set(VCARD.X_COLUMBA_URL_BLOG, contactModel.getWeblog()); |
| 28 | parser.set(VCARD.X_COLUMBA_URL_CALENDAR, contactModel.getCalendar()); |
Row | Violation |
---|