File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/AbbrevsOptionPane.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 | Abbrev abbrev = (Abbrev)abbrevs.elementAt(row);↵ | 1 | Entry window = (Entry)windows.elementAt(row);↵ | |
2 | switch(col)↵ | 2 | switch(col)↵ | |
3 | {↵ | 3 | {↵ | |
4 | case 0:↵ | 4 | case 0:↵ | |
5 | return abbrev.abbrev;↵ | 5 | return window.title;↵ | |
6 | case 1:↵ | 6 | case 1:↵ | |
7 | return abbrev.expand;↵ | 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 | 26 |
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.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Entry window = (Entry)windows.elementAt(row); | |||||||||||||||||||
1 | Abbrev abbrev = (Abbrev)abbrevs.elementAt(row); | | |||||||||||||||||||
2 | switch (col) | 2 | switch (col) | ||||||||||||||||||
3 | case 0: | 3 | case 0: | ||||||||||||||||||
4 | return abbrev.abbrev; |
| 4 | return window.title; | |||||||||||||||||
5 | case 1: | 5 | case 1: | ||||||||||||||||||
6 | return abbrev.expand; |
| 6 | return window.dockPosition; | |||||||||||||||||
7 | default: | 7 | default: | ||||||||||||||||||
|
| 8 | throw new InternalError(); | ||||||||||||||||||
8 | return null; |
| |
Row | Violation |
---|---|
1 | Type org.gjt.sp.jedit.options.Abbrev of variable abbrev does not match with type org.gjt.sp.jedit.options.WindowTableModel.Entry of variable window |
2 | Type org.gjt.sp.jedit.options.Abbrev of variable abbrev does not match with type org.gjt.sp.jedit.options.WindowTableModel.Entry of variable window |
3 | Unmatched throw new InternalError(); |
4 | Unmatched return null; |