File path: /jfreechart-1.0.10/src/org/jfree/data/statistics/DefaultBoxAndWhiskerXYDataset.java | File path: /jfreechart-1.0.10/src/org/jfree/data/statistics/DefaultBoxAndWhiskerXYDataset.java | |||
Method name: void add(Date, BoxAndWhiskerItem)
|
Method name: void add(Date, BoxAndWhiskerItem)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (this.minimumRangeValue == null) {↵ | 1 | if (this.maximumRangeValue == null) {↵ | |
2 | this.minimumRangeValue = item.getMinRegularValue();↵ | 2 | this.maximumRangeValue = item.getMaxRegularValue();↵ | |
3 | }↵ | 3 | }↵ | |
4 | else {↵ | 4 | else {↵ | |
5 | if (item.getMinRegularValue().doubleValue() ↵ | 5 | if (item.getMaxRegularValue().doubleValue() ↵ | |
6 | < this.minimumRangeValue.doubleValue()) {↵ | 6 | > this.maximumRangeValue.doubleValue()) {↵ | |
7 | this.minimumRangeValue = item.getMinRegularValue();↵ | 7 | this.maximumRangeValue = item.getMaxRegularValue();↵ | |
8 | }↵ | 8 | }↵ | |
9 | } | 9 |
| |
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 | 8 |
Number of mapped statements | 4 |
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.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | if (this.minimumRangeValue == null) |
| 7 | if (this.maximumRangeValue == null) | ||||||||||||||||||
4 | this.minimumRangeValue = item.getMinRegularValue(); |
| 8 | this.maximumRangeValue = item.getMaxRegularValue(); | ||||||||||||||||||
else | else | |||||||||||||||||||||
5 | if (item.getMinRegularValue().doubleValue() < this.minimumRangeValue.doubleValue()) |
| 9 | if (item.getMaxRegularValue().doubleValue() > this.maximumRangeValue.doubleValue()) | ||||||||||||||||||
6 | this.minimumRangeValue = item.getMinRegularValue(); |
| 10 | this.maximumRangeValue = item.getMaxRegularValue(); |
Row | Violation |
---|---|
1 | Expression this.minimumRangeValue is a field being modified, and thus it cannot be parameterized |
2 | Expression this.maximumRangeValue is a field being modified, and thus it cannot be parameterized |
3 | Expression item.getMinRegularValue().doubleValue() < this.minimumRangeValue.doubleValue() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression item.getMaxRegularValue().doubleValue() > this.maximumRangeValue.doubleValue() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression this.minimumRangeValue is a field being modified, and thus it cannot be parameterized |
6 | Expression this.maximumRangeValue is a field being modified, and thus it cannot be parameterized |
7 | Expression item.getMinRegularValue() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Expression item.getMaxRegularValue() cannot be parameterized, because it has dependencies to/from statements that will be extracted |