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 refreshTicksHorizontal(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_RIGHT : TextAnchor.TOP_RIGHT;↵ | |
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_RIGHT : TextAnchor.BOTTOM_RIGHT; | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 18 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
48 | anchor = isInverted() ? TextAnchor.BOTTOM_LEFT : TextAnchor.BOTTOM_RIGHT; |
| 57 | anchor = isInverted() ? TextAnchor.BOTTOM_RIGHT : TextAnchor.TOP_RIGHT; | ||||||||||||||||
49 | result.remove(result.size() - 1); | 58 | result.remove(result.size() - 1); | |||||||||||||||||
50 | result.add(new CycleBoundTick(this.boundMappedToLastCycle, lastTick.getNumber(), lastTick.getText(), anchor, anchor, lastTick.getAngle())); |
| 59 | result.add(new CycleBoundTick(this.boundMappedToLastCycle, lastTick.getNumber(), lastTick.getText(), anchor, anchor, lastTick.getAngle())); | ||||||||||||||||
51 | this.internalMarkerWhenTicksOverlap = true; | 60 | this.internalMarkerWhenTicksOverlap = true; | |||||||||||||||||
52 | anchor = isInverted() ? TextAnchor.BOTTOM_RIGHT : TextAnchor.BOTTOM_LEFT; |
| 61 | anchor = isInverted() ? TextAnchor.TOP_RIGHT : TextAnchor.BOTTOM_RIGHT; |
Row | Violation |
---|