anchor = isInverted() ? TextAnchor.BOTTOM_LEFT : TextAnchor.BOTTOM_RIGHT; result.remove(result.size() - 1); result.add(new CycleBoundTick( this.boundMappedToLastCycle, lastTick.getNumber(), lastTick.getText(), anchor, anchor, lastTick.getAngle()) ); this.internalMarkerWhenTicksOverlap = true; anchor = isInverted() ? TextAnchor.BOTTOM_RIGHT : TextAnchor.BOTTOM_LEFT;
anchor = isInverted() ? TextAnchor.BOTTOM_LEFT : TextAnchor.TOP_LEFT; result.remove(result.size() - 1); result.add(new CycleBoundTick( this.boundMappedToLastCycle, lastTick.getNumber(), lastTick.getText(), anchor, anchor, lastTick.getAngle()) ); this.internalMarkerWhenTicksOverlap = true; anchor = isInverted() ? TextAnchor.TOP_LEFT : TextAnchor.BOTTOM_LEFT;
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/CyclicNumberAxis.java File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/CyclicNumberAxis.java
Method name: List refreshVerticalTicks(Graphics2D, Rectangle2D, RectangleEdge) Method name: List refreshVerticalTicks(Graphics2D, Rectangle2D, RectangleEdge)
Number of AST nodes: 5 Number of AST nodes: 5
1
anchor = isInverted() 
1
anchor = isInverted() 
2
                            ? TextAnchor.BOTTOM_LEFT : TextAnchor.BOTTOM_RIGHT;
2
                            ? TextAnchor.BOTTOM_LEFT : TextAnchor.TOP_LEFT;
3
                        result.remove(result.size() - 1);
3
                        result.remove(result.size() - 1);
4
                        result.add(new CycleBoundTick(
4
                        result.add(new CycleBoundTick(
5
                            this.boundMappedToLastCycle, lastTick.getNumber(),
5
                            this.boundMappedToLastCycle, lastTick.getNumber(),
6
                            lastTick.getText(), anchor, anchor, 
6
                            lastTick.getText(), anchor, anchor, 
7
                            lastTick.getAngle())
7
                            lastTick.getAngle())
8
                        );
8
                        );
9
                        this.internalMarkerWhenTicksOverlap = true;
9
                        this.internalMarkerWhenTicksOverlap = true;
10
                        anchor = isInverted() 
10
                        anchor = isInverted() 
11
                            ? TextAnchor.BOTTOM_RIGHT : TextAnchor.BOTTOM_LEFT;
11
                            ? TextAnchor.TOP_LEFT : TextAnchor.BOTTOM_LEFT;
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in the same method
Number of node comparisons9
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements5
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    38
    anchor = isInverted() ? TextAnchor.BOTTOM_LEFT : TextAnchor.BOTTOM_RIGHT;
    38
    anchor = isInverted() ? TextAnchor.BOTTOM_LEFT : TextAnchor.BOTTOM_RIGHT;
    65
    anchor = isInverted() ? TextAnchor.BOTTOM_LEFT : TextAnchor.TOP_LEFT;
    Differences
    Expression1Expression2Difference
    BOTTOM_RIGHTTOP_LEFTVARIABLE_NAME_MISMATCH
    65
    anchor = isInverted() ? TextAnchor.BOTTOM_LEFT : TextAnchor.TOP_LEFT;
    39
    result.remove(result.size() - 1);
    66
    result.remove(result.size() - 1);
    40
    result.add(new CycleBoundTick(this.boundMappedToLastCycle, lastTick.getNumber(), lastTick.getText(), anchor, anchor, lastTick.getAngle()));
    67
    result.add(new CycleBoundTick(this.boundMappedToLastCycle, lastTick.getNumber(), lastTick.getText(), anchor, anchor, lastTick.getAngle()));
    41
    this.internalMarkerWhenTicksOverlap = true;
    68
    this.internalMarkerWhenTicksOverlap = true;
    42
    anchor = isInverted() ? TextAnchor.BOTTOM_RIGHT : TextAnchor.BOTTOM_LEFT;
    42
    anchor = isInverted() ? TextAnchor.BOTTOM_RIGHT : TextAnchor.BOTTOM_LEFT;
    69
    anchor = isInverted() ? TextAnchor.TOP_LEFT : TextAnchor.BOTTOM_LEFT;
    Differences
    Expression1Expression2Difference
    BOTTOM_RIGHTTOP_LEFTVARIABLE_NAME_MISMATCH
    69
    anchor = isInverted() ? TextAnchor.TOP_LEFT : TextAnchor.BOTTOM_LEFT;
    Precondition Violations (0)
    Row Violation