File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/GeneralOptionPane.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/PrintOptionPane.java | |||
Method name: void _init()
|
Method name: void _init()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | encodingAutodetect = new JCheckBox(jEdit.getProperty(↵ | 1 | color = new JCheckBox(jEdit.getProperty(↵ | |
2 | "options.general.encodingAutodetect"));↵ | 2 | "options.↵ | |
3 | encodingAutodetect↵ | 3 | print"↵ | |
4 | + ".color"));↵ | |||
4 | .setSelected(jEdit.getBooleanProperty("buffer.encodingAutodetect"));↵ | 5 | color.setSelected(jEdit.getBooleanProperty("↵ | |
5 | addComponent(encodingAutodetect);↵ | |||
6 | /* Check mod status on focus */↵ | |||
7 | String[] modCheckOptions = {↵ | |||
8 | jEdit.getProperty("options.general.checkModStatus.nothing"),↵ | |||
9 | jEdit.getProperty("options.general.checkModStatus.prompt"),↵ | |||
10 | jEdit.getProperty("options.general.checkModStatus.reload")↵ | |||
11 | };↵ | |||
12 | checkModStatus↵ | 6 | print.color"));↵ | |
7 | addComponent(color);↵ | |||
8 | /* Tab size */↵ | |||
9 | String[] tabSizes = { "2", "4", "8" };↵ | |||
13 | = new JComboBox(modCheckOptions); | 10 | tabSize = new JComboBox(tabSizes); | |
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) | 0.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 12 |
Number of mapped statements | 5 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
17 | encodingAutodetect = new JCheckBox(jEdit.getProperty("options.general.encodingAutodetect")); |
| 12 | color = new JCheckBox(jEdit.getProperty("options.print" + ".color")); | |||||||||||||||||||
18 | encodingAutodetect.setSelected(jEdit.getBooleanProperty("buffer.encodingAutodetect")); |
| 13 | color.setSelected(jEdit.getBooleanProperty("print.color")); | |||||||||||||||||||
19 | addComponent(encodingAutodetect); |
| 14 | addComponent(color); | |||||||||||||||||||
20 | String[] modCheckOptions = {jEdit.getProperty("options.general.checkModStatus.nothing"), jEdit.getProperty("options.general.checkModStatus.prompt"), jEdit.getProperty("options.general.checkModStatus.reload")}; |
| 15 | String[] tabSizes = {"2", "4", "8"}; | |||||||||||||||||||
21 | checkModStatus = new JComboBox(modCheckOptions); |
| 16 | tabSize = new JComboBox(tabSizes); |
Row | Violation |
---|---|
1 | Expression encodingAutodetect is a field being modified, and thus it cannot be parameterized |
2 | Expression color is a field being modified, and thus it cannot be parameterized |
3 | Expression encodingAutodetect cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression color cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression encodingAutodetect cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression color cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression checkModStatus is a field being modified, and thus it cannot be parameterized |
8 | Expression tabSize is a field being modified, and thus it cannot be parameterized |