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