Axis domainAxis = null; if (plot instanceof CategoryPlot) { CategoryPlot p = (CategoryPlot) plot; domainAxis = p.getDomainAxis(); } else if (plot instanceof XYPlot) { XYPlot p = (XYPlot) plot; domainAxis = p.getDomainAxis(); } if (domainAxis != null) { this.domainAxisPropertyPanel.setAxisProperties(domainAxis); }
Axis rangeAxis = null; if (plot instanceof CategoryPlot) { CategoryPlot p = (CategoryPlot) plot; rangeAxis = p.getRangeAxis(); } else if (plot instanceof XYPlot) { XYPlot p = (XYPlot) plot; rangeAxis = p.getRangeAxis(); } if (rangeAxis != null) { this.rangeAxisPropertyPanel.setAxisProperties(rangeAxis); }
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
Axis domainAxis = null;
1
Axis rangeAxis = null;
2
            if (plot instanceof CategoryPlot) {
2
            if (plot instanceof CategoryPlot) {
3
                CategoryPlot p = (CategoryPlot) plot;
3
                CategoryPlot p = (CategoryPlot) plot;
4
                domainAxis = p.getDomainAxis();
4
                rangeAxis = p.getRangeAxis();
5
            }
5
            }
6
            else if (plot instanceof XYPlot) {
6
            else if (plot instanceof XYPlot) {
7
                XYPlot p = (XYPlot) plot;
7
                XYPlot p = (XYPlot) plot;
8
                domainAxis = p.getDomainAxis();
8
                rangeAxis = p.getRangeAxis();
9
            }
9
            }
10
            if (domainAxis != null) {
10
            if (rangeAxis != null) {
11
                this.domainAxisPropertyPanel.setAxisProperties(domainAxis);
11
                this.rangeAxisPropertyPanel.setAxisProperties(rangeAxis);
12
            }
12
            }
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