if (flag) { Plot plot = this.chart.getPlot(); if (plot instanceof Zoomable) { Zoomable z = (Zoomable) plot; this.domainZoomable = flag && (z.isDomainZoomable()); } } else { this.domainZoomable = false; }
if (flag) { Plot plot = this.chart.getPlot(); if (plot instanceof Zoomable) { Zoomable z = (Zoomable) plot; this.rangeZoomable = flag && (z.isRangeZoomable()); } } else { this.rangeZoomable = false; }
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 (flag) {
1
if (flag) {
2
            Plot plot = this.chart.getPlot();
2
            Plot plot = this.chart.getPlot();
3
            if (plot instanceof Zoomable) {
3
            if (plot instanceof Zoomable) {
4
                Zoomable z = (Zoomable) plot;
4
                Zoomable z = (Zoomable) plot;
5
                this.domainZoomable = flag && (z.isDomainZoomable());
5
                this.rangeZoomable = flag && (z.isRangeZoomable());
6
            }
6
            }
7
        }
7
        }
8
        else {
8
        else {
9
            this.domainZoomable = false;
9
            this.rangeZoomable = false;
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