File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/mainframe/MainFrame.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/mainframe/MainFrame.java | |||
Method name: void addToMenu(int, JMenu)
|
Method name: void addToMenu(int, Action)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | if (menu == null)↵ | 1 | if (action == null)↵ | |
2 | {↵ | 2 | {↵ | |
3 | throw new IllegalArgumentException("Null JMenu passed");↵ | 3 | throw new IllegalArgumentException("Null BaseAction passed");↵ | |
4 | }↵ | 4 | }↵ | |
5 | ((MainFrameMenuBar)getJMenuBar()).addToMenu(menuId, menu); | 5 | ((MainFrameMenuBar)getJMenuBar()).addToMenu(menuId, action); | |
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 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) | 1.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (menu == null) |
| 1 | if (action == null) | ||||||||||||||
2 | throw new IllegalArgumentException("Null JMenu passed"); |
| 2 | throw new IllegalArgumentException("Null BaseAction passed"); | ||||||||||||||
3 | ((MainFrameMenuBar)getJMenuBar()).addToMenu(menuId, menu); |
| 3 | ((MainFrameMenuBar)getJMenuBar()).addToMenu(menuId, action); |
Row | Violation |
---|---|
1 | Type javax.swing.JMenu of variable menu does not match with type javax.swing.Action of variable action |
2 | Type javax.swing.JMenu of variable menu does not match with type javax.swing.Action of variable action |