File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/menu/ExtendableMenu.java | File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/menu/ExtendableMenu.java | |||
Method name: void insert(Action, String)
|
Method name: void insert(JMenuItem, String)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | int index = model.insert(action, placeholderId);↵ | 1 | int index = model.insert(menuItem, placeholderId);↵ | |
2 | if (index != -1)↵ | 2 | if (index != -1)↵ | |
3 | super.insert(action, index); | 3 | super.insert(menuItem, index); | |
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.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 5 |
Number of mapped statements | 3 |
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) | 0.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | int index = model.insert(action, placeholderId); |
| 5 | int index = model.insert(menuItem, placeholderId); | ||||||||||||||
2 | if (index != -1) | 6 | if (index != -1) | |||||||||||||||
3 | super.insert(action, index); |
| 7 | super.insert(menuItem, index); |
Row | Violation |
---|---|
1 | Type javax.swing.Action of variable action does not match with type javax.swing.JMenuItem of variable menuItem |
2 | Type javax.swing.Action of variable action does not match with type javax.swing.JMenuItem of variable menuItem |