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