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: 6 | Number of AST nodes: 6 | |||
1 | if ((lastTick != null) && (lastY == y) ↵ | 1 | if ((lastTick != null) && (lastY == y) ↵ | |
2 | && (currentTickValue != cycleBound)) {↵ | 2 | && (currentTickValue != cycleBound)) {↵ | |
3 | anchor = isInverted() ↵ | 3 | anchor = isInverted() ↵ | |
4 | ? TextAnchor.BOTTOM_LEFT : TextAnchor.BOTTOM_RIGHT;↵ | 4 | ? TextAnchor.BOTTOM_RIGHT : TextAnchor.BOTTOM_LEFT;↵ | |
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.BOTTOM_LEFT;↵ | 13 | ? TextAnchor.BOTTOM_LEFT : TextAnchor.BOTTOM_RIGHT;↵ | |
14 | } | 14 |
| |
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.3 |
Clones location | Clones are in the same method |
Number of node comparisons | 37 |
Number of mapped statements | 6 |
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) | 16.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
37 | if ((lastTick != null) && (lastY == y) && (currentTickValue != cycleBound)) | 46 | if ((lastTick != null) && (lastY == y) && (currentTickValue != cycleBound)) | ||||||||||||||
38 | anchor = isInverted() ? TextAnchor.BOTTOM_LEFT : TextAnchor.BOTTOM_RIGHT; |
| 47 | anchor = isInverted() ? TextAnchor.BOTTOM_RIGHT : TextAnchor.BOTTOM_LEFT; | |||||||||||||
39 | result.remove(result.size() - 1); | 48 | result.remove(result.size() - 1); | ||||||||||||||
40 | result.add(new CycleBoundTick(this.boundMappedToLastCycle, lastTick.getNumber(), lastTick.getText(), anchor, anchor, lastTick.getAngle())); | 49 | result.add(new CycleBoundTick(this.boundMappedToLastCycle, lastTick.getNumber(), lastTick.getText(), anchor, anchor, lastTick.getAngle())); | ||||||||||||||
41 | this.internalMarkerWhenTicksOverlap = true; | 50 | this.internalMarkerWhenTicksOverlap = true; | ||||||||||||||
42 | anchor = isInverted() ? TextAnchor.BOTTOM_RIGHT : TextAnchor.BOTTOM_LEFT; |
| 51 | anchor = isInverted() ? TextAnchor.BOTTOM_LEFT : TextAnchor.BOTTOM_RIGHT; |
Row | Violation |
---|