File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/ToolBarOptionPane.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/ToolBarOptionPane.java | |||
Method name: Component getListCellRendererComponent(JList, Object, int, boolean, boolean)
|
Method name: Component getListCellRendererComponent(JList, Object, int, boolean, boolean)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | super.getListCellRendererComponent(list,value,index,↵ | 1 | super.getListCellRendererComponent(list,value,index,↵ | |
2 | isSelected,cellHasFocus);↵ | 2 | isSelected,cellHasFocus);↵ | |
3 | IconListEntry icon = (IconListEntry)value;↵ | 3 | Button button = (Button)value;↵ | |
4 | setIcon(icon.icon);↵ | 4 | setIcon(button.icon);↵ | |
5 | return this; | 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 the same java file |
Number of node comparisons | 16 |
Number of mapped statements | 3 |
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 | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus); | 1 | super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus); | |||||||||||||||
| 2 | Button button = (Button)value; | ||||||||||||||||
2 | IconListEntry icon = (IconListEntry)value; | | ||||||||||||||||
3 | setIcon(icon.icon); |
| 3 | setIcon(button.icon); | ||||||||||||||
4 | return this; | 4 | return this; |
Row | Violation |
---|---|
1 | Type org.gjt.sp.jedit.options.ToolBarOptionPane.IconListEntry of variable icon does not match with type org.gjt.sp.jedit.options.ToolBarOptionPane.Button of variable button |