File path: /jEdit-4.2/src/org/gjt/sp/jedit/pluginmgr/ManagePanel.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/pluginmgr/InstallPanel.java | |||
Method name: void mouseClicked(MouseEvent)
|
Method name: void mouseClicked(MouseEvent)
|
|||
Number of AST nodes: 9 | Number of AST nodes: 8 | |||
1 | switch(table.getTableHeader().columnAtPoint(evt.getPoint()))↵ | 1 | switch(table.getTableHeader().columnAtPoint(evt.getPoint()))↵ | |
2 | {↵ | 2 | {↵ | |
3 | case 1:↵ | 3 | case 1:↵ | |
4 | pluginModel.setSortType(EntryCompare.NAME);↵ | 4 | pluginModel.sort(EntryCompare.NAME);↵ | |
5 | break;↵ | 5 | break;↵ | |
6 | case 3:↵ | 6 | case 2:↵ | |
7 | pluginModel.setSortType(EntryCompare.STATUS);↵ | 7 | pluginModel.sort(EntryCompare.CATEGORY);↵ | |
8 | break;↵ | 8 | break;↵ | |
9 | default:↵ | 9 | default:↵ | |
10 | break;↵ | 10 | ↵ | |
11 | } | 11 |
| |
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.8 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 36 |
Number of mapped statements | 8 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 4.2 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | switch (table.getTableHeader().columnAtPoint(evt.getPoint())) | 1 | switch (table.getTableHeader().columnAtPoint(evt.getPoint())) | |||||||||||||||||||||||
2 | case 1: | 2 | case 1: | |||||||||||||||||||||||
3 | pluginModel.setSortType(EntryCompare.NAME); |
| 3 | pluginModel.sort(EntryCompare.NAME); | ||||||||||||||||||||||
4 | break; | 4 | break; | |||||||||||||||||||||||
5 | case 3: |
| 5 | case 2: | ||||||||||||||||||||||
6 | pluginModel.setSortType(EntryCompare.STATUS); |
| 6 | pluginModel.sort(EntryCompare.CATEGORY); | ||||||||||||||||||||||
7 | break; | 7 | break; | |||||||||||||||||||||||
8 | default: | 8 | default: | |||||||||||||||||||||||
9 | break; |
| |
Row | Violation |
---|---|
1 | Expression pluginModel.setSortType(EntryCompare.NAME) is a void method call, and thus it cannot be parameterized |
2 | Expression pluginModel.sort(EntryCompare.NAME) is a void method call, and thus it cannot be parameterized |
3 | Type org.gjt.sp.jedit.pluginmgr.ManagePanel.EntryCompare of variable EntryCompare does not match with type org.gjt.sp.jedit.pluginmgr.InstallPanel.EntryCompare of variable EntryCompare |
4 | Expression pluginModel.setSortType(EntryCompare.STATUS) is a void method call, and thus it cannot be parameterized |
5 | Expression pluginModel.sort(EntryCompare.CATEGORY) is a void method call, and thus it cannot be parameterized |
6 | Type org.gjt.sp.jedit.pluginmgr.ManagePanel.EntryCompare of variable EntryCompare does not match with type org.gjt.sp.jedit.pluginmgr.InstallPanel.EntryCompare of variable EntryCompare |
7 | Unmatched break; |