if (constraint.getHeightRange().contains(s.height)) {
return s;
}
else {
RectangleConstraint c = constraint.toFixedHeight(
constraint.getHeightRange().constrain(s.getHeight()));
return arrangeFF(container, g2, c);
}
if (constraint.getHeightRange().contains(s.height)) {
return s;
}
else {
RectangleConstraint c = constraint.toFixedHeight(
constraint.getHeightRange().constrain(s.getHeight())
);
return arrangeFF(container, g2, c);
}
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/block/CenterArrangement.java
|
|
File path: /jfreechart-1.0.10/src/org/jfree/chart/block/FlowArrangement.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | if (constraint.getHeightRange().contains(s.height)) {↵ | | 1 | if (constraint.getHeightRange().contains(s.height)) {↵
|
2 | return s; ↵ | | 2 | return s; ↵
|
3 | }↵ | | 3 | }↵
|
4 | else {↵ | | 4 | else {↵
|
5 | RectangleConstraint c = constraint.toFixedHeight(↵ | | 5 | RectangleConstraint c = constraint.toFixedHeight(↵
|
6 | constraint.getHeightRange().constrain(s.getHeight())↵ | | 6 | constraint.getHeightRange().constrain(s.getHeight())↵
|
7 | );↵ | | 7 | );↵
|
8 | return arrangeFF(container, g2, c);↵ | | 8 | return arrangeFF(container, g2, c);↵
|
9 | } | | 9 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |