File path: /jfreechart-1.0.10/src/org/jfree/chart/block/BorderArrangement.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/block/BorderArrangement.java | |||
Method name: Size2D arrangeFN(BlockContainer, Graphics2D, double)
|
Method name: Size2D arrangeFF(BlockContainer, Graphics2D, RectangleConstraint)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 3 | |||
1 | RectangleConstraint c4 = new RectangleConstraint(width - w[2]↵ | 1 | RectangleConstraint c2 = new RectangleConstraint(w[0], null,↵ | |
2 | - w[3], null, LengthConstraintType.FIXED, 0.0, null,↵ | 2 | LengthConstraintType.FIXED, 0.0, new Range(0.0,↵ | |
3 | LengthConstraintType.NONE);↵ | 3 | constraint.getHeight() - h[0]), LengthConstraintType.RANGE);↵ | |
4 | Size2D size = this.centerBlock.arrange(g2, c4);↵ | 4 | Size2D size = this.bottomBlock.arrange(g2, c2);↵ | |
5 | w[4] = size.width;↵ | |||
6 | h[4] = size.height; | 5 | h[1] = size.height; | |
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.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 7 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
26 | RectangleConstraint c4 = new RectangleConstraint(width - w[2] - w[3], null, LengthConstraintType.FIXED, 0.0, null, LengthConstraintType.NONE); |
| 10 | RectangleConstraint c2 = new RectangleConstraint(w[0], null, LengthConstraintType.FIXED, 0.0, new Range(0.0, constraint.getHeight() - h[0]), LengthConstraintType.RANGE); | |||||||||||||||||||
27 | Size2D size = this.centerBlock.arrange(g2, c4); |
| 11 | Size2D size = this.bottomBlock.arrange(g2, c2); | |||||||||||||||||||
28 | w[4] = size.width; |
| | ||||||||||||||||||||
29 | h[4] = size.height; |
| 12 | h[1] = size.height; |
Row | Violation |
---|---|
1 | Unmatched statement w[4]=size.width; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Clone fragment #1 returns variables size , while Clone fragment #2 returns variables |