File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/BufferOptions.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/GeneralOptionPane.java | |||
Method name: void BufferOptions(View, Buffer)
|
Method name: void _init()
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
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 | lineSeparator.setSelectedIndex(2);↵ | |
7 | panel.addComponent(jEdit.getProperty("buffer-options.lineSeparator"), ↵ | 7 | addComponent(jEdit.getProperty("options.general.lineSeparator"),↵ | |
8 | lineSeparator); | 8 |
| |
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) | 1.4 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 28 |
Number of mapped statements | 7 |
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 | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
16 | if ("\n".equals(lineSep)) | 4 | if ("\n".equals(lineSep)) | ||||||||||||||||
17 | lineSeparator.setSelectedIndex(0); | 5 | lineSeparator.setSelectedIndex(0); | ||||||||||||||||
18 | else if ("\r\n".equals(lineSep)) | 6 | else if ("\r\n".equals(lineSep)) | ||||||||||||||||
19 | lineSeparator.setSelectedIndex(1); | 7 | lineSeparator.setSelectedIndex(1); | ||||||||||||||||
20 | else if ("\r".equals(lineSep)) | 8 | else if ("\r".equals(lineSep)) | ||||||||||||||||
21 | lineSeparator.setSelectedIndex(2); | 9 | lineSeparator.setSelectedIndex(2); | ||||||||||||||||
22 | panel.addComponent(jEdit.getProperty("buffer-options.lineSeparator"), lineSeparator); |
| 10 | addComponent(jEdit.getProperty("options.general.lineSeparator"), lineSeparator); |
Row | Violation |
---|---|
1 | Expression panel.addComponent(jEdit.getProperty("buffer-options.lineSeparator"),lineSeparator) is a void method call, and thus it cannot be parameterized |
2 | Expression addComponent(jEdit.getProperty("options.general.lineSeparator"),lineSeparator) is a void method call, and thus it cannot be parameterized |