File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/MouseOptionPane.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/MouseOptionPane.java | |||
Method name: void _init()
|
Method name: void _init()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 3 | |||
1 | c = clickModifierKeys.length;↵ | |||
2 | String[] clickModifierNames = new String[c];↵ | 1 | String[] clickActionNames = new String[c];↵ | |
3 | for(int i = 0; i < c; i++)↵ | 2 | for(int i = 0; i < c; i++)↵ | |
4 | {↵ | 3 | {↵ | |
5 | clickModifierNames[i] = jEdit.getProperty(↵ | 4 | clickActionNames[i] = jEdit.getProperty(↵ | |
6 | "options.mouse.gutter."+clickModifierKeys[i]);↵ | 5 | "options.mouse.gutter."+clickActionKeys[i]);↵ | |
7 | } | 6 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in the same method |
Number of node comparisons | 6 |
Number of mapped statements | 3 |
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) | 1.3 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
14 | c = clickModifierKeys.length; | | |||||||||||||||
15 | String[] clickModifierNames = new String[c]; |
| 11 | String[] clickActionNames = new String[c]; | |||||||||||||
16 | for (int i = 0; i < c; i++) | 12 | for (int i = 0; i < c; i++) | ||||||||||||||
17 | clickModifierNames[i] = jEdit.getProperty("options.mouse.gutter." + clickModifierKeys[i]); |
| 13 | clickActionNames[i] = jEdit.getProperty("options.mouse.gutter." + clickActionKeys[i]); |
Row | Violation |
---|