File path: /jfreechart-1.0.10/src/org/jfree/data/statistics/DefaultStatisticalCategoryDataset.java | File path: /jfreechart-1.0.10/src/org/jfree/data/statistics/DefaultStatisticalCategoryDataset.java | |||
Method name: void updateBounds()
|
Method name: void updateBounds()
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | if (Double.isNaN(this.maximumRangeValue)) {↵ | 1 | if (Double.isNaN(this.minimumRangeValue)) {↵ | |
2 | this.maximumRangeValue = m;↵ | 2 | this.minimumRangeValue = m;↵ | |
3 | this.maximumRangeValueRow = r;↵ | 3 | this.minimumRangeValueRow = r;↵ | |
4 | this.maximumRangeValueColumn = c;↵ | 4 | this.minimumRangeValueColumn = c;↵ | |
5 | }↵ | 5 | }↵ | |
6 | else {↵ | 6 | else {↵ | |
7 | if (m > this.maximumRangeValue) {↵ | 7 | if (m < this.minimumRangeValue) {↵ | |
8 | this.maximumRangeValue = m;↵ | 8 | this.minimumRangeValue = m;↵ | |
9 | this.maximumRangeValueRow = r;↵ | 9 | this.minimumRangeValueRow = r;↵ | |
10 | this.maximumRangeValueColumn = c;↵ | 10 | this.minimumRangeValueColumn = c;↵ | |
11 | }↵ | 11 | }↵ | |
12 | } | 12 |
| |
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 | 37 |
Number of mapped statements | 8 |
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) | 5.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
25 | if (Double.isNaN(this.maximumRangeValue)) |
| 33 | if (Double.isNaN(this.minimumRangeValue)) | |||||||||||||||||
26 | this.maximumRangeValue = m; |
| 34 | this.minimumRangeValue = m; | |||||||||||||||||
27 | this.maximumRangeValueRow = r; |
| 35 | this.minimumRangeValueRow = r; | |||||||||||||||||
28 | this.maximumRangeValueColumn = c; |
| 36 | this.minimumRangeValueColumn = c; | |||||||||||||||||
else | else | ||||||||||||||||||||
29 | if (m > this.maximumRangeValue) |
| 37 | if (m < this.minimumRangeValue) | |||||||||||||||||
30 | this.maximumRangeValue = m; |
| 38 | this.minimumRangeValue = m; | |||||||||||||||||
31 | this.maximumRangeValueRow = r; |
| 39 | this.minimumRangeValueRow = r; | |||||||||||||||||
32 | this.maximumRangeValueColumn = c; |
| 40 | this.minimumRangeValueColumn = c; |
Row | Violation |
---|---|
1 | Expression this.maximumRangeValue cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression this.minimumRangeValue cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression this.maximumRangeValue is a field being modified, and thus it cannot be parameterized |
4 | Expression this.minimumRangeValue is a field being modified, and thus it cannot be parameterized |
5 | Expression this.maximumRangeValueRow is a field being modified, and thus it cannot be parameterized |
6 | Expression this.minimumRangeValueRow is a field being modified, and thus it cannot be parameterized |
7 | Expression this.maximumRangeValueColumn is a field being modified, and thus it cannot be parameterized |
8 | Expression this.minimumRangeValueColumn is a field being modified, and thus it cannot be parameterized |
9 | Expression this.maximumRangeValue cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression this.minimumRangeValue cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Expression m > this.maximumRangeValue cannot be parameterized, because it has dependencies to/from statements that will be extracted |
12 | Expression m < this.minimumRangeValue cannot be parameterized, because it has dependencies to/from statements that will be extracted |
13 | Expression this.maximumRangeValue is a field being modified, and thus it cannot be parameterized |
14 | Expression this.minimumRangeValue is a field being modified, and thus it cannot be parameterized |
15 | Expression this.maximumRangeValueRow is a field being modified, and thus it cannot be parameterized |
16 | Expression this.minimumRangeValueRow is a field being modified, and thus it cannot be parameterized |
17 | Expression this.maximumRangeValueColumn is a field being modified, and thus it cannot be parameterized |
18 | Expression this.minimumRangeValueColumn is a field being modified, and thus it cannot be parameterized |