File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/StackedXYAreaRenderer.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/StackedXYAreaRenderer.java | |||
Method name: void drawItem(Graphics2D, XYItemRendererState, Rectangle2D, PlotRenderingInfo, XYPlot, ValueAxis, ValueAxis, XYDataset, int, int, CrosshairState, int)
|
Method name: void drawItem(Graphics2D, XYItemRendererState, Rectangle2D, PlotRenderingInfo, XYPlot, ValueAxis, ValueAxis, XYDataset, int, int, CrosshairState, int)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (plot.getOrientation() == PlotOrientation.VERTICAL) {↵ | 1 | if (orientation == PlotOrientation.VERTICAL) {↵ | |
2 | shape = ShapeUtilities.createTranslatedShape(shape,↵ | 2 | areaState.getLine().setLine(transX0, transY0, transX1,↵ | |
3 | transX1, transY1);↵ | 3 | transY1);↵ | |
4 | }↵ | 4 | }↵ | |
5 | else if (plot.getOrientation() == PlotOrientation.HORIZONTAL) {↵ | 5 | else if (orientation == PlotOrientation.HORIZONTAL) {↵ | |
6 | shape = ShapeUtilities.createTranslatedShape(shape,↵ | 6 | ↵ | |
7 | areaState.getLine().setLine(transY0, transX0, transY1,↵ | |||
7 | transY1, transX1);↵ | 8 | transX1);↵ | |
8 | } | 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.5 |
Clones location | Clones are in the same method |
Number of node comparisons | 14 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 48.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
69 | if (plot.getOrientation() == PlotOrientation.VERTICAL) |
| 39 | if (orientation == PlotOrientation.VERTICAL) | ||||||||||
| 40 | areaState.getLine().setLine(transX0, transY0, transX1, transY1); | ||||||||||||
70 | shape = ShapeUtilities.createTranslatedShape(shape, transX1, transY1); |
| | |||||||||||
71 | else if (plot.getOrientation() == PlotOrientation.HORIZONTAL) |
| 41 | else if (orientation == PlotOrientation.HORIZONTAL) | ||||||||||
| 42 | areaState.getLine().setLine(transY0, transX0, transY1, transX1); | ||||||||||||
72 | shape = ShapeUtilities.createTranslatedShape(shape, transY1, transX1); |
| |
Row | Violation |
---|---|
1 | Unmatched statement shape=ShapeUtilities.createTranslatedShape(shape,transX1,transY1); cannot be moved, because it updates a variable modified in other unmapped statements |
2 | Unmatched statement shape=ShapeUtilities.createTranslatedShape(shape,transY1,transX1); cannot be moved, because it updates a variable modified in other unmapped statements |