if (this.drawLines != null) { interior.add( new JLabel(localizationResources.getString("Draw_lines")) ); this.drawLinesCheckBox = new JCheckBox(); this.drawLinesCheckBox.setSelected(this.drawLines.booleanValue()); this.drawLinesCheckBox.setActionCommand("DrawLines"); this.drawLinesCheckBox.addActionListener(this); interior.add(new JPanel()); interior.add(this.drawLinesCheckBox); }
if (this.drawShapes != null) { interior.add( new JLabel(localizationResources.getString("Draw_shapes")) ); this.drawShapesCheckBox = new JCheckBox(); this.drawShapesCheckBox.setSelected(this.drawShapes.booleanValue()); this.drawShapesCheckBox.setActionCommand("DrawShapes"); this.drawShapesCheckBox.addActionListener(this); interior.add(new JPanel()); interior.add(this.drawShapesCheckBox); }
Clone fragments detected by clone detection tool
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: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
if (this.drawLines != null) {
1
if (this.drawShapes != null) {
2
            interior.add(
2
            interior.add(
3
                new JLabel(localizationResources.getString("Draw_lines"))
3
                new JLabel(localizationResources.getString("Draw_shapes"))
4
            );
4
            );
5
            this.drawLinesCheckBox = new JCheckBox();
5
            this.drawShapesCheckBox = new JCheckBox();
6
            this.drawLinesCheckBox.setSelected(this.drawLines.booleanValue());
6
            this.drawShapesCheckBox.setSelected(this.drawShapes.booleanValue());
7
            this.drawLinesCheckBox.setActionCommand("DrawLines");
7
            this.drawShapesCheckBox.setActionCommand("DrawShapes");
8
            this.drawLinesCheckBox.addActionListener(this);
8
            this.drawShapesCheckBox.addActionListener(this);
9
            interior.add(new JPanel());
9
            interior.add(new JPanel());
10
            interior.add(this.drawLinesCheckBox);
10
            interior.add(this.drawShapesCheckBox);
11
        }
11
        }
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0