if (this.minimumRangeValue == null) { this.minimumRangeValue = item.getMinRegularValue(); } else { if (item.getMinRegularValue().doubleValue() < this.minimumRangeValue.doubleValue()) { this.minimumRangeValue = item.getMinRegularValue(); } }
if (this.maximumRangeValue == null) { this.maximumRangeValue = item.getMaxRegularValue(); } else { if (item.getMaxRegularValue().doubleValue() > this.maximumRangeValue.doubleValue()) { this.maximumRangeValue = item.getMaxRegularValue(); } }
Clone fragments detected by clone detection tool
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
        }
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.2
Clones locationClones are in the same method
Number of node comparisons1