result.setRect(
area.getX() + this.left,
area.getY() + this.top,
area.getWidth() - this.left - this.right,
area.getHeight() - this.top - this.bottom
);
result.setRect(
area.getX() - this.left,
area.getY() - this.top,
area.getWidth() + this.left + this.right,
area.getHeight() + this.top + this.bottom
);
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/AxisSpace.java
|
|
File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/AxisSpace.java
|
Method name: Rectangle2D shrink(Rectangle2D, Rectangle2D)
|
|
Method name: Rectangle2D expand(Rectangle2D, Rectangle2D)
|
Number of AST nodes: 1
|
|
Number of AST nodes: 1
|
|
1 | result.setRect(↵ | | 1 | result.setRect(↵
|
2 | area.getX() + this.left, ↵ | | 2 | area.getX() - this.left, ↵
|
3 | area.getY() + this.top,↵ | | 3 | area.getY() - this.top,↵
|
4 | area.getWidth() - this.left - this.right,↵ | | 4 | area.getWidth() + this.left + this.right,↵
|
5 | area.getHeight() - this.top - this.bottom↵ | | 5 | area.getHeight() + this.top + this.bottom↵
|
6 | ); | | 6 | );
|
See real code fragment |
|
See real code fragment |
Summary
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 | 1 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 0 |
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 | Unknown type |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
Precondition Violations (0)
Row |
Violation |