File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/BrowserOptionPane.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/GeneralOptionPane.java | |||
Method name: void _init()
|
Method name: void _init()
|
|||
Number of AST nodes: 6 | Number of AST nodes: 7 | |||
1 | if("last".equals(defaultDir))↵ | 1 | if("\n".equals(↵ | |
2 | defaultDirec↵ | 2 | lineSep))↵ | |
3 | tory.setSelectedIndex(2);↵ | 3 | lineSeparator.setSelectedIndex(0);↵ | |
4 | else if("buffer".equals(defaultDir))↵ | 4 | else if("\r\n".equals(↵ | |
5 | defaultDirec↵ | 5 | lineSep))↵ | |
6 | tory.setSelectedIndex(3);↵ | 6 | lineSeparator.setSelectedIndex(1);↵ | |
7 | else if("working".equals(defaultDir))↵ | 7 | else if("\r".equals(↵ | |
8 | defaultDirec↵ | 8 | lineSep))↵ | |
9 | tory.setSelectedIndex(4↵ | 9 | lineSeparator.setSelectedIndex(2);↵ | |
10 | addComponent(jEdit.getProperty("options.general.lineSeparator"),↵ | |||
10 | ); | 11 | lineSeparator); | |
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 | 1 |
Time elapsed for statement mapping (ms) | 1.8 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8 | else if ("last".equals(defaultDir)) |
| 8 | else if ("\r".equals(lineSep)) | |||||||||||||
9 | defaultDirectory.setSelectedIndex(2); |
| 9 | lineSeparator.setSelectedIndex(2); | |||||||||||||
10 | else if ("buffer".equals(defaultDir)) |
| 6 | else if ("\r\n".equals(lineSep)) | |||||||||||||
11 | defaultDirectory.setSelectedIndex(3); |
| 7 | lineSeparator.setSelectedIndex(1); | |||||||||||||
12 | else if ("working".equals(defaultDir)) |
| 4 | else if ("\n".equals(lineSep)) | |||||||||||||
13 | defaultDirectory.setSelectedIndex(4); |
| 5 | lineSeparator.setSelectedIndex(0); | |||||||||||||
| 10 | addComponent(jEdit.getProperty("options.general.lineSeparator"), lineSeparator); |
Row | Violation |
---|