File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/BrowserColorsOptionPane.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/DockingOptionPane.java | |||
Method name: Object getValueAt(int, int)
|
Method name: Object getValueAt(int, int)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | Entry entry = (Entry)entries.get(row);↵ | 1 | Entry window = (Entry)windows.elementAt(row);↵ | |
2 | switch(col)↵ | 2 | switch(col)↵ | |
3 | {↵ | 3 | {↵ | |
4 | case 0:↵ | 4 | case 0:↵ | |
5 | return entry.glob;↵ | 5 | return window.title;↵ | |
6 | case 1:↵ | 6 | case 1:↵ | |
7 | return entry.color;↵ | 7 | return ↵ | |
8 | default:↵ | |||
9 | return null↵ | 8 | window.dockPosition;↵ | |
9 | default:↵ | |||
10 | ;↵ | 10 | throw new InternalError();↵ | |
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.1 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 27 |
Number of mapped statements | 6 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 1.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Entry window = (Entry)windows.elementAt(row); | |||||||||||||||||||
1 | Entry entry = (Entry)entries.get(row); | | |||||||||||||||||||
2 | switch (col) | 2 | switch (col) | ||||||||||||||||||
3 | case 0: | 3 | case 0: | ||||||||||||||||||
4 | return entry.glob; |
| 4 | return window.title; | |||||||||||||||||
5 | case 1: | 5 | case 1: | ||||||||||||||||||
6 | return entry.color; |
| | ||||||||||||||||||
7 | default: | 7 | default: | ||||||||||||||||||
8 | return null; |
| 6 | return window.dockPosition; | |||||||||||||||||
|
| 8 | throw new InternalError(); |
Row | Violation |
---|---|
1 | Type org.gjt.sp.jedit.options.BrowserColorsModel.Entry of variable entry does not match with type org.gjt.sp.jedit.options.WindowTableModel.Entry of variable window |
2 | Unmatched return entry.color; |
3 | Unmatched throw new InternalError(); |