if (this.orientation == PlotOrientation.HORIZONTAL) { space.ensureAtLeast( this.fixedDomainAxisSpace.getLeft(), RectangleEdge.LEFT); space.ensureAtLeast(this.fixedDomainAxisSpace.getRight(), RectangleEdge.RIGHT); } else if (this.orientation == PlotOrientation.VERTICAL) { space.ensureAtLeast(this.fixedDomainAxisSpace.getTop(), RectangleEdge.TOP); space.ensureAtLeast(this.fixedDomainAxisSpace.getBottom(), RectangleEdge.BOTTOM);
if (this.orientation == PlotOrientation.HORIZONTAL) { space.ensureAtLeast(this.fixedRangeAxisSpace.getTop(), RectangleEdge.TOP); space.ensureAtLeast(this.fixedRangeAxisSpace.getBottom(), RectangleEdge.BOTTOM); } else if (this.orientation == PlotOrientation.VERTICAL) { space.ensureAtLeast(this.fixedRangeAxisSpace.getLeft(), RectangleEdge.LEFT); space.ensureAtLeast(this.fixedRangeAxisSpace.getRight(), RectangleEdge.RIGHT);
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/CategoryPlot.java File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/CategoryPlot.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
if (this.orientation == PlotOrientation.HORIZONTAL) {
1
if (this.orientation == PlotOrientation.HORIZONTAL) {
2
                space.ensureAtLeast(
2
                space.ensureAtLeast(
3
                    this.fixedDomainAxisSpace.getLeft(),
3
this.fixedRangeAxisSpace.getTop(),
4
 RectangleEdge.LEFT);
4
                        RectangleEdge.TOP);
5
                space.ensureAtLeast(this.fixedDomainAxisSpace.getRight(),
5
                space.ensureAtLeast(this.fixedRangeAxisSpace.getBottom(),
6
                        RectangleEdge.RIGHT);
6
                        RectangleEdge.BOTTOM);
7
            }
7
            }
8
            else if (this.orientation == PlotOrientation.VERTICAL) {
8
            else if (this.orientation == PlotOrientation.VERTICAL) {
9
                space.ensureAtLeast(this.fixedDomainAxisSpace.getTop(),
9
                space.ensureAtLeast(this.fixedRangeAxisSpace.getLeft(),
10
                        RectangleEdge.TOP);
10
                        RectangleEdge.LEFT);
11
                space.ensureAtLeast(this.fixedDomainAxisSpace.getBottom(),
11
                space.ensureAtLeast(this.fixedRangeAxisSpace.getRight(),
12
                        RectangleEdge.BOTTOM);
12
                        RectangleEdge.RIGHT);
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