File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/PeriodAxis.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/PeriodAxis.java | |||
Method name: AxisState drawTickLabels(int, Graphics2D, AxisState, Rectangle2D, RectangleEdge)
|
Method name: AxisState drawTickLabels(int, Graphics2D, AxisState, Rectangle2D, RectangleEdge)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (edge == RectangleEdge.BOTTOM) {↵ | 1 | if (edge == RectangleEdge.BOTTOM) {↵ | |
2 | delta1 = this.labelInfo[band].getPadding().calculateTopOutset(↵ | 2 | used += this.labelInfo[band].getPadding().calculateBottomOutset(↵ | |
3 | fm.getHeight()); ↵ | 3 | fm.getHeight()); ↵ | |
4 | }↵ | 4 | }↵ | |
5 | else if (edge == RectangleEdge.TOP) {↵ | 5 | else if (edge == RectangleEdge.TOP) {↵ | |
6 | delta1 = this.labelInfo[band].getPadding().calculateBottomOutset(↵ | 6 | used += this.labelInfo[band].getPadding().calculateTopOutset(↵ | |
7 | fm.getHeight()); ↵ | 7 | fm.getHeight()); ↵ | |
8 | } | 8 | } | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.4 |
Clones location | Clones are in the same method |
Number of node comparisons | 13 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||
---|---|---|---|---|---|---|---|
3 | if (edge == RectangleEdge.BOTTOM) | 71 | if (edge == RectangleEdge.BOTTOM) | ||||
4 | delta1 = this.labelInfo[band].getPadding().calculateTopOutset(fm.getHeight()); |
| | ||||
|
| 72 | used += this.labelInfo[band].getPadding().calculateBottomOutset(fm.getHeight()); | ||||
5 | else if (edge == RectangleEdge.TOP) | 73 | else if (edge == RectangleEdge.TOP) | ||||
6 | delta1 = this.labelInfo[band].getPadding().calculateBottomOutset(fm.getHeight()); |
| | ||||
|
| 74 | used += this.labelInfo[band].getPadding().calculateTopOutset(fm.getHeight()); |
Row | Violation |
---|---|
1 | Unmatched statement delta1=this.labelInfo[band].getPadding().calculateTopOutset(fm.getHeight()); cannot be moved, because it updates a variable modified in other unmapped statements |
2 | Unmatched statement delta1=this.labelInfo[band].getPadding().calculateBottomOutset(fm.getHeight()); cannot be moved, because it updates a variable modified in other unmapped statements |
3 | Unmatched statement used+=this.labelInfo[band].getPadding().calculateBottomOutset(fm.getHeight()); cannot be moved, because it updates a variable modified in other unmapped statements |
4 | Unmatched statement used+=this.labelInfo[band].getPadding().calculateTopOutset(fm.getHeight()); cannot be moved, because it updates a variable modified in other unmapped statements |