File path: /jfreechart-1.0.10/src/org/jfree/data/statistics/DefaultBoxAndWhiskerCategoryDataset.java | File path: /jfreechart-1.0.10/src/org/jfree/data/statistics/DefaultBoxAndWhiskerCategoryDataset.java | |||
Method name: void updateBounds()
|
Method name: void updateBounds()
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | if (min != null) {↵ | 1 | if (max != null) {↵ | |
2 | double minv = min.doubleValue();↵ | 2 | double maxv = max.doubleValue();↵ | |
3 | if (!Double.isNaN(minv)) {↵ | 3 | if (!Double.isNaN(maxv)) {↵ | |
4 | if (minv < this.minimumRangeValue || Double.isNaN(↵ | 4 | if (maxv > this.maximumRangeValue || Double.isNaN(↵ | |
5 | this.minimumRangeValue)) {↵ | 5 | this.maximumRangeValue)) {↵ | |
6 | this.minimumRangeValue = minv;↵ | 6 | this.maximumRangeValue = maxv;↵ | |
7 | this.minimumRangeValueRow = r;↵ | 7 | this.maximumRangeValueRow = r;↵ | |
8 | this.minimumRangeValueColumn = c;↵ | 8 | this.maximumRangeValueColumn = c;↵ | |
9 | }↵ | 9 | }↵ | |
10 | }↵ | 10 | }↵ | |
11 | } | 11 |
| |
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.4 |
Clones location | Clones are in the same method |
Number of node comparisons | 26 |
Number of mapped statements | 7 |
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) | 4.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
14 | if (min != null) |
| 22 | if (max != null) | |||||||||||||||||||||||||
15 | double minv = min.doubleValue(); |
| 23 | double maxv = max.doubleValue(); | |||||||||||||||||||||||||
16 | if (!Double.isNaN(minv)) |
| 24 | if (!Double.isNaN(maxv)) | |||||||||||||||||||||||||
17 | if (minv < this.minimumRangeValue || Double.isNaN(this.minimumRangeValue)) |
| 25 | if (maxv > this.maximumRangeValue || Double.isNaN(this.maximumRangeValue)) | |||||||||||||||||||||||||
18 | this.minimumRangeValue = minv; |
| 26 | this.maximumRangeValue = maxv; | |||||||||||||||||||||||||
19 | this.minimumRangeValueRow = r; |
| 27 | this.maximumRangeValueRow = r; | |||||||||||||||||||||||||
20 | this.minimumRangeValueColumn = c; |
| 28 | this.maximumRangeValueColumn = c; |
Row | Violation |
---|---|
1 | Expression this.minimumRangeValue cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression this.maximumRangeValue cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression minv < this.minimumRangeValue cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression maxv > this.maximumRangeValue cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression this.minimumRangeValue cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression this.maximumRangeValue cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression this.minimumRangeValue is a field being modified, and thus it cannot be parameterized |
8 | Expression this.maximumRangeValue is a field being modified, and thus it cannot be parameterized |
9 | Expression this.minimumRangeValueRow is a field being modified, and thus it cannot be parameterized |
10 | Expression this.maximumRangeValueRow is a field being modified, and thus it cannot be parameterized |
11 | Expression this.minimumRangeValueColumn is a field being modified, and thus it cannot be parameterized |
12 | Expression this.maximumRangeValueColumn is a field being modified, and thus it cannot be parameterized |