File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/CategoryLabelPositions.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/block/BorderArrangement.java | |||
Method name: CategoryLabelPosition getLabelPosition(RectangleEdge)
|
Method name: void add(Block, Object)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (edge == RectangleEdge.BOTTOM) {↵ | 1 | if (edge == RectangleEdge.BOTTOM) {↵ | |
2 | result = this.positionForAxisAtBottom;↵ | 2 | this.bottomBlock = block;↵ | |
3 | }↵ | 3 | }↵ | |
4 | else if (edge == RectangleEdge.LEFT) {↵ | 4 | else if (edge == RectangleEdge.LEFT) {↵ | |
5 | result = this.positionForAxisAtLeft;↵ | 5 | this.leftBlock = block;↵ | |
6 | }↵ | 6 | }↵ | |
7 | else if (edge == RectangleEdge.RIGHT) {↵ | 7 | else if (edge == RectangleEdge.RIGHT) {↵ | |
8 | result = this.positionForAxisAtRight;↵ | 8 | ↵ | |
9 | this.rightBlock = block;↵ | |||
9 | } | 10 | } | |
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.8 |
Clones location | Clones are in different classes |
Number of node comparisons | 27 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 3 |
Number of unmapped statements in the second code fragment | 3 |
Time elapsed for statement mapping (ms) | 0.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||
---|---|---|---|---|---|---|---|
4 | else if (edge == RectangleEdge.BOTTOM) | 6 | else if (edge == RectangleEdge.BOTTOM) | ||||
5 | result = this.positionForAxisAtBottom; |
| | ||||
| 7 | this.bottomBlock = block; | |||||
6 | else if (edge == RectangleEdge.LEFT) | 8 | else if (edge == RectangleEdge.LEFT) | ||||
7 | result = this.positionForAxisAtLeft; |
| | ||||
| 9 | this.leftBlock = block; | |||||
8 | else if (edge == RectangleEdge.RIGHT) | 10 | else if (edge == RectangleEdge.RIGHT) | ||||
9 | result = this.positionForAxisAtRight; |
| | ||||
| 11 | this.rightBlock = block; |
Row | Violation |
---|---|
1 | Unmatched statement result=this.positionForAxisAtBottom; cannot be moved, because it updates a variable modified in other unmapped statements |
2 | Unmatched statement result=this.positionForAxisAtLeft; cannot be moved, because it updates a variable modified in other unmapped statements |
3 | Unmatched statement result=this.positionForAxisAtRight; cannot be moved, because it updates a variable modified in other unmapped statements |