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.getFreeBusy() != null)↵ | 1 | if (contactModel.getSortString() != null)↵ | |
2 | parser.set(VCARD.X_COLUMBA_URL_FREEBUSY, contactModel.getFreeBusy())↵ | 2 | parser.set(VCARD.SORTSTRING, contactModel.getSortString());↵ | |
3 | ;↵ | 3 | // <fn>value</fn>↵ | |
4 | if (contactModel.getCalendar() != null)↵ | 4 | if (contactModel.getFormattedName() != null)↵ | |
5 | parser.set(VCARD.X_COLUMBA_URL_CALENDAR, contactModel.getCalendar()); | 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.4 |
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) | 3.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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()); | |||||||||||||||
27 | if (contactModel.getCalendar() != null) |
| 7 | if (contactModel.getFormattedName() != null) | |||||||||||||||
28 | parser.set(VCARD.X_COLUMBA_URL_CALENDAR, contactModel.getCalendar()); |
| 8 | parser.set(VCARD.FN, contactModel.getFormattedName()); |
Row | Violation |
---|---|
1 | Expression contactModel.getFreeBusy() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression contactModel.getSortString() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression contactModel.getCalendar() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression contactModel.getFormattedName() cannot be parameterized, because it has dependencies to/from statements that will be extracted |