File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/GeneralOptionPane.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/BufferOptions.java | |||
Method name: void _init()
|
Method name: void BufferOptions(View, Buffer)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if("\n".equals(lineSep))↵ | 1 | if("\n".equals(lineSep)) ↵ | |
2 | lineSeparator.setSelectedIndex(0);↵ | 2 | lineSeparator.setSelectedIndex(0); ↵ | |
3 | else if("\r\n".equals(lineSep))↵ | 3 | else if("\r\n".equals(lineSep)) ↵ | |
4 | lineSeparator.setSelectedIndex(1);↵ | 4 | lineSeparator.setSelectedIndex(1); ↵ | |
5 | else if("\r".equals(lineSep))↵ | 5 | else if("\r".equals(lineSep)) ↵ | |
6 | lineSeparator.setSelectedIndex(2); | 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.9 |
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 | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 1.6 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
4 | if ("\n".equals(lineSep)) | 16 | if ("\n".equals(lineSep)) | |
5 | lineSeparator.setSelectedIndex(0); | 17 | lineSeparator.setSelectedIndex(0); | |
6 | else if ("\r\n".equals(lineSep)) | 18 | else if ("\r\n".equals(lineSep)) | |
7 | lineSeparator.setSelectedIndex(1); | 19 | lineSeparator.setSelectedIndex(1); | |
8 | else if ("\r".equals(lineSep)) | 20 | else if ("\r".equals(lineSep)) | |
9 | lineSeparator.setSelectedIndex(2); | 21 | lineSeparator.setSelectedIndex(2); |
Row | Violation |
---|