File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/ContourPlot.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/ContourPlot.java | |||
Method name: void contourRenderer(Graphics2D, Rectangle2D, PlotRenderingInfo, ContourPlot, ValueAxis, ValueAxis, ColorBar, ContourDataset, CrosshairState)
|
Method name: void pointRenderer(Graphics2D, Rectangle2D, PlotRenderingInfo, ContourPlot, ValueAxis, ValueAxis, ColorBar, ContourDataset, CrosshairState)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (zNumber[k] != null) {↵ | 1 | if (zNumber[k] != null) {↵ | |
2 | g2.setPaint(colorBar.getPaint(zNumber[k].doubleValue()));↵ | 2 | g2.setPaint(colorBar.getPaint(zNumber[k].doubleValue()));↵ | |
3 | g2.fill(rect);↵ | 3 | g2.fill(rect);↵ | |
4 | }↵ | 4 | }↵ | |
5 | else if (this.missingPaint != null) {↵ | 5 | else if (this.missingPaint != null) {↵ | |
6 | g2.setPaint(this.missingPaint);↵ | 6 | g2.setPaint(this.missingPaint);↵ | |
7 | g2.fill(rect);↵ | 7 | g2.fill(rect);↵ | |
8 | } | 8 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.5 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 29 |
Number of mapped statements | 6 |
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) | 2.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
81 | if (zNumber[k] != null) | 27 | if (zNumber[k] != null) | |||||||||||
82 | g2.setPaint(colorBar.getPaint(zNumber[k].doubleValue())); | 28 | g2.setPaint(colorBar.getPaint(zNumber[k].doubleValue())); | |||||||||||
83 | g2.fill(rect); |
| 29 | g2.fill(rect); | ||||||||||
84 | else if (this.missingPaint != null) | 30 | else if (this.missingPaint != null) | |||||||||||
85 | g2.setPaint(this.missingPaint); | 31 | g2.setPaint(this.missingPaint); | |||||||||||
86 | g2.fill(rect); |
| 32 | g2.fill(rect); |
Row | Violation |
---|