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/XYStepAreaRenderer.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 = new Rectangle2D.Double(transX1 - 3, transY1 - 3,↵ | 2 | shape = new Rectangle2D.Double(transX1 - 2, transY1 - 2,↵ | |
3 | 6.0, 6.0);↵ | 3 | 4.0, 4.0);↵ | |
4 | }↵ | 4 | }↵ | |
5 | else if (plot.getOrientation() == PlotOrientation.HORIZONTAL) {↵ | 5 | else if (orientation == PlotOrientation.HORIZONTAL) {↵ | |
6 | shape = new Rectangle2D.Double(transY1 - 3, transX1 - 3,↵ | 6 | shape = new Rectangle2D.Double(transY1 - 2, transX1 - 2,↵ | |
7 | 6.0, 6.0);↵ | 7 | 4.0, 4.0);↵ | |
8 | } | 8 |
| |
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) | 1.8 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 37 |
Number of mapped statements | 4 |
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) | 60.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
81 | if (plot.getOrientation() == PlotOrientation.VERTICAL) |
| 57 | if (orientation == PlotOrientation.VERTICAL) | |||||||||||||||||||
82 | shape = new Rectangle2D.Double(transX1 - 3, transY1 - 3, 6.0, 6.0); |
| 58 | shape = new Rectangle2D.Double(transX1 - 2, transY1 - 2, 4.0, 4.0); | |||||||||||||||||||
83 | else if (plot.getOrientation() == PlotOrientation.HORIZONTAL) |
| 59 | else if (orientation == PlotOrientation.HORIZONTAL) | |||||||||||||||||||
84 | shape = new Rectangle2D.Double(transY1 - 3, transX1 - 3, 6.0, 6.0); |
| 60 | shape = new Rectangle2D.Double(transY1 - 2, transX1 - 2, 4.0, 4.0); |
Row | Violation |
---|---|
1 | Expression plot.getOrientation() cannot be parameterized, because it has dependencies to/from statements that will be extracted |