if (p instanceof Zoomable) { Zoomable z = (Zoomable) p; // we need to guard against this.zoomPoint being null Point2D zp = (this.zoomPoint != null ? this.zoomPoint : new Point()); z.zoomDomainAxes(0.0, this.info.getPlotInfo(), zp); }
if (p instanceof Zoomable) { Zoomable z = (Zoomable) p; // we need to guard against this.zoomPoint being null Point2D zp = (this.zoomPoint != null ? this.zoomPoint : new Point()); z.zoomRangeAxes(0.0, this.info.getPlotInfo(), zp); }
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 (p instanceof Zoomable) {
1
if (p instanceof Zoomable) {
2
            Zoomable z = (Zoomable) p;
2
            Zoomable z = (Zoomable) p;
3
            // we need to guard against this.zoomPoint being null
3
            // we need to guard against this.zoomPoint being null
4
            Point2D zp = (this.zoomPoint != null
4
            Point2D zp = (this.zoomPoint != null
5
            		? this.zoomPoint : new Point());
5
            		? this.zoomPoint : new Point());
6
            z.zoomDomainAxes(0.0, this.info.getPlotInfo(), zp);
6
            z.zoomRangeAxes(0.0, this.info.getPlotInfo(), zp);
7
        }
7
        }
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