if (exactBoxWidth <= 0.0) {
int itemCount = boxAndWhiskerData.getItemCount(series);
exactBoxWidth = dataAreaX / itemCount * 4.5 / 7;
if (exactBoxWidth < 3) {
width = 3;
}
else if (exactBoxWidth > maxBoxWidth) {
width = maxBoxWidth;
}
else {
width = exactBoxWidth;
if (exactBoxWidth <= 0.0) {
int itemCount = boxAndWhiskerData.getItemCount(series);
exactBoxWidth = dataAreaX / itemCount * 4.5 / 7;
if (exactBoxWidth < 3) {
width = 3;
}
else if (exactBoxWidth > maxBoxWidth) {
width = maxBoxWidth;
}
else {
width = exactBoxWidth;
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYBoxAndWhiskerRenderer.java
|
|
File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYBoxAndWhiskerRenderer.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | if (exactBoxWidth <= 0.0) {↵ | | 1 | if (exactBoxWidth <= 0.0) {↵
|
2 | int itemCount = boxAndWhiskerData.getItemCount(series);↵ | | 2 | int itemCount = boxAndWhiskerData.getItemCount(series);↵
|
3 | exactBoxWidth = dataAreaX / itemCount * 4.5 / 7;↵ | | 3 | exactBoxWidth = dataAreaX / itemCount * 4.5 / 7;↵
|
4 | if (exactBoxWidth < 3) {↵ | | 4 | if (exactBoxWidth < 3) {↵
|
5 | width = 3;↵ | | 5 | width = 3;↵
|
6 | }↵ | | 6 | } ↵
|
7 | else if (exactBoxWidth > maxBoxWidth) {↵ | | 7 | else if (exactBoxWidth > maxBoxWidth) {↵
|
8 | width = maxBoxWidth;↵ | | 8 | width = maxBoxWidth;↵
|
9 | }↵ | | 9 | } ↵
|
10 | else {↵ | | 10 | else {↵
|
11 | width = exactBoxWidth;↵ | | 11 | width = exactBoxWidth;↵
|
12 | | | 12 |
|
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 |