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 add(BoxAndWhiskerItem, Comparable, Comparable)
|
Method name: void add(BoxAndWhiskerItem, Comparable, Comparable)
|
|||
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 = maxval;↵ | 2 | this.minimumRangeValue = minval;↵ | |
3 | this.maximumRangeValueRow = r;↵ | 3 | this.minimumRangeValueRow = r;↵ | |
4 | this.maximumRangeValueColumn = c;↵ | 4 | this.minimumRangeValueColumn = c;↵ | |
5 | }↵ | 5 | }↵ | |
6 | else if (maxval > this.maximumRangeValue) {↵ | 6 | else if (minval < this.minimumRangeValue) {↵ | |
7 | this.maximumRangeValue = maxval;↵ | 7 | this.minimumRangeValue = minval;↵ | |
8 | this.maximumRangeValueRow = r;↵ | 8 | this.minimumRangeValueRow = r;↵ | |
9 | this.maximumRangeValueColumn = c;↵ | 9 | this.minimumRangeValueColumn = c;↵ | |
10 | } | 10 |
| |
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.7 |
Clones location | Clones are in the same method |
Number of node comparisons | 50 |
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) | 4.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
12 | if (Double.isNaN(this.maximumRangeValue)) |
| 20 | if (Double.isNaN(this.minimumRangeValue)) | ||||||||||||||||||
13 | this.maximumRangeValue = maxval; |
| 21 | this.minimumRangeValue = minval; | ||||||||||||||||||
14 | this.maximumRangeValueRow = r; |
| 22 | this.minimumRangeValueRow = r; | ||||||||||||||||||
15 | this.maximumRangeValueColumn = c; |
| 23 | this.minimumRangeValueColumn = c; | ||||||||||||||||||
16 | else if (maxval > this.maximumRangeValue) |
| 24 | else if (minval < this.minimumRangeValue) | ||||||||||||||||||
17 | this.maximumRangeValue = maxval; |
| 25 | this.minimumRangeValue = minval; | ||||||||||||||||||
18 | this.maximumRangeValueRow = r; |
| 26 | this.minimumRangeValueRow = r; | ||||||||||||||||||
19 | this.maximumRangeValueColumn = c; |
| 27 | this.minimumRangeValueColumn = c; |
Row | Violation |
---|---|
1 | Expression this.maximumRangeValue is a field being modified, and thus it cannot be parameterized |
2 | Expression this.minimumRangeValue is a field being modified, and thus it cannot be parameterized |
3 | Expression this.maximumRangeValueRow is a field being modified, and thus it cannot be parameterized |
4 | Expression this.minimumRangeValueRow is a field being modified, and thus it cannot be parameterized |
5 | Expression this.maximumRangeValueColumn is a field being modified, and thus it cannot be parameterized |
6 | Expression this.minimumRangeValueColumn is a field being modified, and thus it cannot be parameterized |
7 | Expression maxval > this.maximumRangeValue cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Expression minval < this.minimumRangeValue cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Expression this.maximumRangeValue is a field being modified, and thus it cannot be parameterized |
10 | Expression this.minimumRangeValue is a field being modified, and thus it cannot be parameterized |
11 | Expression this.maximumRangeValueRow is a field being modified, and thus it cannot be parameterized |
12 | Expression this.minimumRangeValueRow is a field being modified, and thus it cannot be parameterized |
13 | Expression this.maximumRangeValueColumn is a field being modified, and thus it cannot be parameterized |
14 | Expression this.minimumRangeValueColumn is a field being modified, and thus it cannot be parameterized |