if (this.equals(XYCoordinateType.DATA)) { return XYCoordinateType.DATA; } else if (this.equals(XYCoordinateType.RELATIVE)) { return XYCoordinateType.RELATIVE; } else if (this.equals(XYCoordinateType.INDEX)) { return XYCoordinateType.INDEX; }
if (this.equals(AxisLocation.BOTTOM_OR_RIGHT)) { return AxisLocation.BOTTOM_OR_RIGHT; } else if (this.equals(AxisLocation.TOP_OR_LEFT)) { return AxisLocation.TOP_OR_LEFT; } else if (this.equals(AxisLocation.BOTTOM_OR_LEFT)) { return AxisLocation.BOTTOM_OR_LEFT; }
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/experimental/org/jfree/experimental/chart/util/XYCoordinateType.java File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/AxisLocation.java
Method name: Object readResolve() Method name: Object readResolve()
Number of AST nodes: 6 Number of AST nodes: 6
1
if (this.equals(XYCoordinateType.DATA)) {
1
if (this.equals(AxisLocation.BOTTOM_OR_RIGHT)) {
2
            return XYCoordinateType.DATA;
2
            return AxisLocation.BOTTOM_OR_RIGHT;
3
        }
3
        }    
4
        else if (this.equals(XYCoordinateType.RELATIVE)) {
4
        else if (this.equals(AxisLocation.TOP_OR_LEFT)) {
5
            return XYCoordinateType.RELATIVE;
5
            return AxisLocation.TOP_OR_LEFT;
6
        }     
6
        }    
7
        else if (this.equals(XYCoordinateType.INDEX)) {
7
        else if (this.equals(AxisLocation.BOTTOM_OR_LEFT)) {
8
            return XYCoordinateType.INDEX;
8
            return AxisLocation.BOTTOM_OR_LEFT;
9
        }
9
        }
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 locationClones are in different classes
Number of node comparisons0