File path: /jfreechart-1.0.10/experimental/org/jfree/experimental/chart/renderer/xy/XYSmoothLineAndShapeRenderer.java | File path: /jfreechart-1.0.10/experimental/org/jfree/experimental/chart/renderer/xy/XYSmoothLineAndShapeRenderer.java | |||
Method name: void drawPrimaryLine(XYItemRendererState, Graphics2D, XYPlot, XYDataset, int, int, int, ValueAxis, ValueAxis, Rectangle2D)
|
Method name: void drawPrimaryLine(XYItemRendererState, Graphics2D, XYPlot, XYDataset, int, int, int, ValueAxis, ValueAxis, Rectangle2D)
|
|||
Number of AST nodes: 2 | Number of AST nodes: 2 | |||
1 | point0.x = domainAxis.valueToJava2D(dataset.getXValue(series, ↵ | 1 | point3.x = domainAxis.valueToJava2D(dataset.getXValue(series, ↵ | |
2 | item - 2), dataArea, xAxisLocation);↵ | 2 | item + 1), dataArea, xAxisLocation);↵ | |
3 | point0.y = rangeAxis.valueToJava2D(dataset.getYValue(series, ↵ | 3 | point3.y = rangeAxis.valueToJava2D(dataset.getYValue(series, ↵ | |
4 | item - 2), dataArea, yAxisLocation); | 4 | item + 1), dataArea, yAxisLocation); | |
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.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 4 |
Number of mapped statements | 2 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
25 | point0.x = domainAxis.valueToJava2D(dataset.getXValue(series, item - 2), dataArea, xAxisLocation); |
| 33 | point3.x = domainAxis.valueToJava2D(dataset.getXValue(series, item + 1), dataArea, xAxisLocation); | ||||||||||||||||||
26 | point0.y = rangeAxis.valueToJava2D(dataset.getYValue(series, item - 2), dataArea, yAxisLocation); |
| 34 | point3.y = rangeAxis.valueToJava2D(dataset.getYValue(series, item + 1), dataArea, yAxisLocation); |
Row | Violation |
---|---|
1 | Expression point0.y cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression point3.y cannot be parameterized, because it has dependencies to/from statements that will be extracted |