if (this.verticalTraceLine != null) { g2.draw(this.verticalTraceLine); this.verticalTraceLine.setLine(x, (int) dataArea.getMinY(), x, (int) dataArea.getMaxY()); } else { this.verticalTraceLine = new Line2D.Float(x, (int) dataArea.getMinY(), x, (int) dataArea.getMaxY()); }
if (this.horizontalTraceLine != null) { g2.draw(this.horizontalTraceLine); this.horizontalTraceLine.setLine((int) dataArea.getMinX(), y, (int) dataArea.getMaxX(), y); } else { this.horizontalTraceLine = new Line2D.Float( (int) dataArea.getMinX(), y, (int) dataArea.getMaxX(), y); }
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/ChartPanel.java File path: /jfreechart-1.0.10/src/org/jfree/chart/ChartPanel.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
if (this.verticalTraceLine != null) {
1
if (this.horizontalTraceLine != null) {
2
                g2.draw(this.verticalTraceLine);
2
                g2.draw(this.horizontalTraceLine);
3
                this.verticalTraceLine.setLine(x, (int) dataArea.getMinY(), x,
3
                this.horizontalTraceLine.setLine((int) dataArea.getMinX(), y,
4
                        (int) dataArea.getMaxY());
4
                        (int) dataArea.getMaxX(), y);
5
            }
5
            }
6
            else {
6
            else {
7
                this.verticalTraceLine = new Line2D.Float(x,
7
                this.horizontalTraceLine = new Line2D.Float(
8
                        (int) dataArea.getMinY(), x, (int) dataArea.getMaxY()
8
                        (int) dataArea.getMinX(), y, (int) dataArea.getMaxX(),
9
);
9
                        y);
10
            }
10
            }
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