ValueTick tick = (ValueTick) iterator.next();
double current = tick.getValue();
if (fillBand) {
getRenderer().fillDomainGridBand(g2, this, xAxis, dataArea,
previous, current);
}
previous = current;
fillBand = !fillBand;
Number value = dataset.getValue(row, column);
if (value != null) {
double v = value.doubleValue();
minimum = Math.min(minimum, v);
maximum = Math.max(maximum, v);
}
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java
|
|
File path: /jfreechart-1.0.10/src/org/jfree/data/general/DatasetUtilities.java
|
Method name: void drawDomainTickBands(Graphics2D, Rectangle2D, List)
|
|
Method name: Range iterateRangeBounds(CategoryDataset, boolean)
|
Number of AST nodes: 6
|
|
Number of AST nodes: 5
|
|
1 | ValueTick tick = (ValueTick) iterator.next();↵ | | |
|
2 | double current = tick.getValue();↵ | | 1 | Number value = dataset.getValue(row, column);↵
|
3 | if (fillBand) {↵ | | 2 | if (value != null) {↵
|
4 | getRenderer().fillDomainGridBand(g2, this, xAxis, dataArea,↵ | | 3 | ↵
|
5 | previous, current↵ | | 4 | double v = value.doubleValue();↵
|
6 | );↵ | | 5 | minimum = Math.min(minimum, v);↵
|
7 | }↵ | | 6 | ↵
|
8 | previous = current;↵ | | 7 | ↵
|
9 | fillBand = !fillBand; | | 8 | maximum = Math.max(maximum, v);↵
|
| | | 9 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |