File path: /jfreechart-1.0.10/src/org/jfree/chart/editor/DefaultPlotEditor.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/editor/DefaultPlotEditor.java | |||
Method name: void DefaultPlotEditor(Plot)
|
Method name: void DefaultPlotEditor(Plot)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | interior.add(↵ | 1 | interior.add(↵ | |
2 | new JLabel(localizationResources.getString("Draw_lines"))↵ | 2 | new JLabel(localizationResources.getString("Draw_shapes"))↵ | |
3 | );↵ | 3 | );↵ | |
4 | this.drawLinesCheckBox = new JCheckBox();↵ | 4 | this.drawShapesCheckBox = new JCheckBox();↵ | |
5 | this.drawLinesCheckBox.setSelected(this.drawLines.booleanValue());↵ | 5 | this.drawShapesCheckBox.setSelected(this.drawShapes.booleanValue());↵ | |
6 | this.drawLinesCheckBox.setActionCommand("DrawLines");↵ | 6 | this.drawShapesCheckBox.setActionCommand("DrawShapes");↵ | |
7 | this.drawLinesCheckBox.addActionListener(this);↵ | 7 | this.drawShapesCheckBox.addActionListener(this);↵ | |
8 | interior.add(new JPanel());↵ | 8 | interior.add(new JPanel());↵ | |
9 | interior.add(this.drawLinesCheckBox); | 9 | interior.add(this.drawShapesCheckBox); | |
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 the same method |
Number of node comparisons | 37 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
61 | interior.add(new JLabel(localizationResources.getString("Draw_lines"))); |
| 69 | interior.add(new JLabel(localizationResources.getString("Draw_shapes"))); | |||||||||||||||
62 | this.drawLinesCheckBox = new JCheckBox(); |
| 70 | this.drawShapesCheckBox = new JCheckBox(); | |||||||||||||||
63 | this.drawLinesCheckBox.setSelected(this.drawLines.booleanValue()); |
| 71 | this.drawShapesCheckBox.setSelected(this.drawShapes.booleanValue()); | |||||||||||||||
64 | this.drawLinesCheckBox.setActionCommand("DrawLines"); |
| 72 | this.drawShapesCheckBox.setActionCommand("DrawShapes"); | |||||||||||||||
65 | this.drawLinesCheckBox.addActionListener(this); |
| 73 | this.drawShapesCheckBox.addActionListener(this); | |||||||||||||||
66 | interior.add(new JPanel()); | 74 | interior.add(new JPanel()); | ||||||||||||||||
67 | interior.add(this.drawLinesCheckBox); |
| 75 | interior.add(this.drawShapesCheckBox); |
Row | Violation |
---|---|
1 | Expression this.drawLinesCheckBox is a field being modified, and thus it cannot be parameterized |
2 | Expression this.drawShapesCheckBox is a field being modified, and thus it cannot be parameterized |
3 | Expression this.drawLinesCheckBox cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression this.drawShapesCheckBox cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression this.drawLinesCheckBox cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression this.drawShapesCheckBox cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression this.drawLinesCheckBox cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Expression this.drawShapesCheckBox cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Expression this.drawLinesCheckBox cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression this.drawShapesCheckBox cannot be parameterized, because it has dependencies to/from statements that will be extracted |