File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/BrowserOptionPane.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("last".equals(defaultDir))↵ | 1 | if("\n".equals(lineSep)) ↵ | |
2 | defaultDirectory.setSelectedIndex(2);↵ | 2 | lineSeparator.setSelectedIndex(0); ↵ | |
3 | else if("buffer".equals(defaultDir))↵ | 3 | else if("\r\n".equals(lineSep)) ↵ | |
4 | defaultDirectory.setSelectedIndex(3);↵ | 4 | lineSeparator.setSelectedIndex(1); ↵ | |
5 | else if("working".equals(defaultDir))↵ | 5 | else if("\r".equals(lineSep)) ↵ | |
6 | defaultDirectory.setSelectedIndex(4); | 6 | lineSeparator.setSelectedIndex(2); | |
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) | 1.0 |
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) | 2.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8 | else if ("last".equals(defaultDir)) |
| 20 | else if ("\r".equals(lineSep)) | |||||||||||||
9 | defaultDirectory.setSelectedIndex(2); |
| 21 | lineSeparator.setSelectedIndex(2); | |||||||||||||
10 | if ("buffer".equals(defaultDir)) |
| 16 | if ("\n".equals(lineSep)) | |||||||||||||
11 | defaultDirectory.setSelectedIndex(3); |
| 17 | lineSeparator.setSelectedIndex(0); | |||||||||||||
12 | else if ("working".equals(defaultDir)) |
| 18 | else if ("\r\n".equals(lineSep)) | |||||||||||||
13 | defaultDirectory.setSelectedIndex(4); |
| 19 | lineSeparator.setSelectedIndex(1); |
Row | Violation |
---|