File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/base/ColorItemRenderer.java | File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/search/SearchBar.java | |||
Method name: Component getListCellRendererComponent(JList, Object, int, boolean, boolean)
|
Method name: Component getListCellRendererComponent(JList, Object, int, boolean, boolean)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 4 | |||
1 | ColorItem color = (ColorItem) value;↵ | |||
2 | ↵ | 1 | if (value instanceof ISearchProvider) {↵ | |
2 | ISearchProvider p = (ISearchProvider) value;↵ | |||
3 | setText(color.getName());↵ | 3 | setText(p.getName());↵ | |
4 | setIcon(color.getIcon()); | 4 | setIcon(p.getIcon());↵ | |
5 |
| |||
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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 9 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | ColorItem color = (ColorItem)value; | | ||||||||||||||||||||
| 3 | ISearchProvider p = (ISearchProvider)value; | ||||||||||||||||||||
3 | setText(color.getName()); |
| 4 | setText(p.getName()); | ||||||||||||||||||
4 | setIcon(color.getIcon()); |
| 5 | setIcon(p.getIcon()); |
Row | Violation |
---|---|
1 | Type org.columba.core.gui.base.ColorItem of variable color does not match with type org.columba.core.search.api.ISearchProvider of variable p |
2 | Type javax.swing.Icon of variable color.getIcon() does not match with type javax.swing.ImageIcon of variable p.getIcon() |
3 | Type org.columba.core.gui.base.ColorItem of variable color does not match with type org.columba.core.search.api.ISearchProvider of variable p |