File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/util/ToolTipFactory.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/contact/list/HeaderItemToolTipFactory.java | |||
Method name: String createToolTip(ContactModelPartial)
|
Method name: String createToolTip(IContactItem)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | StringBuffer buf = new StringBuffer();↵ | 1 | StringBuffer buf = new StringBuffer();↵ | |
2 | buf.append("<html><body> Name: " + item.getName());↵ | 2 | buf.append("<html><body> Name: " + item.getName());↵ | |
3 | if (item.getAddress() != null) {↵ | 3 | if (item.getEmailAddress() != null) {↵ | |
4 | buf.append("<br> eMail: "↵ | 4 | buf.append("<br> eMail: "↵ | |
5 | + convert((String) item.getAddress()));↵ | 5 | + convert((String) item.getEmailAddress()));↵ | |
6 | } | 6 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 8 |
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) | 19.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | StringBuffer buf = new StringBuffer(); | 1 | StringBuffer buf = new StringBuffer(); | |||||||||||||||
2 | buf.append("<html><body> Name: " + item.getName()); |
| 2 | buf.append("<html><body> Name: " + item.getName()); | ||||||||||||||
3 | if (item.getAddress() != null) |
| 3 | if (item.getEmailAddress() != null) | ||||||||||||||
4 | buf.append("<br> eMail: " + convert((String)item.getAddress())); |
| 4 | buf.append("<br> eMail: " + convert((String)item.getEmailAddress())); |
Row | Violation |
---|---|
1 | Type org.columba.addressbook.model.ContactModelPartial of variable item does not match with type org.columba.addressbook.facade.IContactItem of variable item |
2 | Type org.columba.addressbook.model.ContactModelPartial of variable item does not match with type org.columba.addressbook.facade.IContactItem of variable item |
3 | Type org.columba.addressbook.model.ContactModelPartial of variable item does not match with type org.columba.addressbook.facade.IContactItem of variable item |