if ((lastTick != null) && (lastX == x) && (currentTickValue != cycleBound)) { anchor = isInverted() ? TextAnchor.TOP_RIGHT : 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.TOP_RIGHT; }
if ((lastTick != null) && (lastY == y) && (currentTickValue != cycleBound)) { 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; }
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: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
if ((lastTick != null) && (lastX == x) 
1
if ((lastTick != null) && (lastY == y) 
2
                        && (currentTickValue != cycleBound)) {
2
                            && (currentTickValue != cycleBound)) {
3
                    anchor = isInverted() 
3
                        anchor = isInverted() 
4
                        ? TextAnchor.TOP_RIGHT : TextAnchor.BOTTOM_RIGHT;
4
                            ? TextAnchor.BOTTOM_LEFT : TextAnchor.BOTTOM_RIGHT;
5
                    result.remove(result.size() - 1);
5
                        result.remove(result.size() - 1);
6
                    result.add(new CycleBoundTick(
6
                        result.add(new CycleBoundTick(
7
                        this.boundMappedToLastCycle, lastTick.getNumber(), 
7
                            this.boundMappedToLastCycle, lastTick.getNumber(),
8
                        lastTick.getText(), anchor, anchor, 
8
                            lastTick.getText(), anchor, anchor, 
9
                        lastTick.getAngle())
9
                            lastTick.getAngle())
10
                    );
10
                        );
11
                    this.internalMarkerWhenTicksOverlap = true;
11
                        this.internalMarkerWhenTicksOverlap = true;
12
                    anchor = isInverted() 
12
                        anchor = isInverted() 
13
                        ? TextAnchor.BOTTOM_RIGHT : TextAnchor.TOP_RIGHT;
13
                            ? TextAnchor.BOTTOM_RIGHT : TextAnchor.
14
BOTTOM_LEFT;
14
                }
15
                    }
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