File path: /jfreechart-1.0.10/src/org/jfree/chart/editor/DefaultNumberAxisEditor.java | File path: /jfreechart-1.0.10/swt/org/jfree/experimental/chart/swt/editor/SWTNumberAxisEditor.java | |||
Method name: void toggleAutoRange()
|
Method name: void toggleAutoRange()
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | if (this.autoRange) { ↵ | 1 | if (this.autoRange) {↵ | |
2 | this.minimumRangeValue.setText(Double.toString(this.minimumValue)); ↵ | 2 | this.minimumRangeValue.setText(Double.toString(this.minimumValue));↵ | |
3 | this.minimumRangeValue.setEnabled(false); ↵ | 3 | this.minimumRangeValue.setEnabled(false);↵ | |
4 | this.maximumRangeValue.setText(Double.toString(this.maximumValue)); ↵ | 4 | this.maximumRangeValue.setText(Double.toString(this.maximumValue));↵ | |
5 | this.maximumRangeValue.setEnabled(false); ↵ | 5 | this.maximumRangeValue.setEnabled(false);↵ | |
6 | } ↵ | 6 | }↵ | |
7 | else { ↵ | 7 | else {↵ | |
8 | this.minimumRangeValue.setEnabled(true); ↵ | 8 | this.minimumRangeValue.setEnabled(true);↵ | |
9 | this.maximumRangeValue.setEnabled(true); ↵ | 9 | this.maximumRangeValue.setEnabled(true);↵ | |
10 | } | 10 |
| |
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.3 |
Clones location | Clones are in different classes |
Number of node comparisons | 49 |
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) | 13.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | if (this.autoRange) | 2 | if (this.autoRange) | ||||||||||||
3 | this.minimumRangeValue.setText(Double.toString(this.minimumValue)); |
| 3 | this.minimumRangeValue.setText(Double.toString(this.minimumValue)); | |||||||||||
4 | this.minimumRangeValue.setEnabled(false); |
| 4 | this.minimumRangeValue.setEnabled(false); | |||||||||||
5 | this.maximumRangeValue.setText(Double.toString(this.maximumValue)); |
| 5 | this.maximumRangeValue.setText(Double.toString(this.maximumValue)); | |||||||||||
6 | this.maximumRangeValue.setEnabled(false); |
| 6 | this.maximumRangeValue.setEnabled(false); | |||||||||||
else | else | ||||||||||||||
7 | this.minimumRangeValue.setEnabled(true); |
| 7 | this.minimumRangeValue.setEnabled(true); | |||||||||||
8 | this.maximumRangeValue.setEnabled(true); |
| 8 | this.maximumRangeValue.setEnabled(true); |
Row | Violation |
---|---|
1 | Type javax.swing.JTextField of variable this.minimumRangeValue does not match with type org.eclipse.swt.widgets.Text of variable this.minimumRangeValue |
2 | Type javax.swing.JTextField of variable this.minimumRangeValue does not match with type org.eclipse.swt.widgets.Text of variable this.minimumRangeValue |
3 | Type javax.swing.JTextField of variable this.maximumRangeValue does not match with type org.eclipse.swt.widgets.Text of variable this.maximumRangeValue |
4 | Type javax.swing.JTextField of variable this.maximumRangeValue does not match with type org.eclipse.swt.widgets.Text of variable this.maximumRangeValue |
5 | Type javax.swing.JTextField of variable this.minimumRangeValue does not match with type org.eclipse.swt.widgets.Text of variable this.minimumRangeValue |
6 | Type javax.swing.JTextField of variable this.maximumRangeValue does not match with type org.eclipse.swt.widgets.Text of variable this.maximumRangeValue |
7 | The refactoring of the clones is infeasible, because classes org.jfree.chart.editor.DefaultNumberAxisEditor and org.jfree.experimental.chart.swt.editor.SWTNumberAxisEditor do not have a common superclass |