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(GroupModelPartial)
|
Method name: String createToolTip(IGroupItem)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
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.getDescription() != null) {↵ | 3 | if (item.getDescription() != null) {↵ | |
4 | buf.append("<br> Description: " + item.getDescription());↵ | 4 | buf.append("<br> Description: " + item.getDescription());↵ | |
5 | }↵ | 5 | }↵ | |
6 | buf.append("</body></html>");↵ | 6 | buf.append("</body></html>");↵ | |
7 | return buf.toString(); | 7 |
| |
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 | 20 |
Number of mapped statements | 6 |
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) | 2.0 |
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.getDescription() != null) |
| 3 | if (item.getDescription() != null) | |||||||||||
4 | buf.append("<br> Description: " + item.getDescription()); |
| 4 | buf.append("<br> Description: " + item.getDescription()); | |||||||||||
5 | buf.append("</body></html>"); | 5 | buf.append("</body></html>"); | ||||||||||||
6 | return buf.toString(); | 6 | return buf.toString(); |
Row | Violation |
---|---|
1 | Type org.columba.addressbook.model.GroupModelPartial of variable item does not match with type org.columba.addressbook.facade.IGroupItem of variable item |
2 | Type org.columba.addressbook.model.GroupModelPartial of variable item does not match with type org.columba.addressbook.facade.IGroupItem of variable item |
3 | Type org.columba.addressbook.model.GroupModelPartial of variable item does not match with type org.columba.addressbook.facade.IGroupItem of variable item |