File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/category/StatisticalLineAndShapeRenderer.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYDifferenceRenderer.java | |||
Method name: void drawItem(Graphics2D, CategoryItemRendererState, Rectangle2D, CategoryPlot, CategoryAxis, ValueAxis, CategoryDataset, int, int, int)
|
Method name: void drawItemPass1(Graphics2D, Rectangle2D, PlotRenderingInfo, XYPlot, ValueAxis, ValueAxis, XYDataset, int, int, CrosshairState)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (orientation == PlotOrientation.HORIZONTAL) {↵ | 1 | if (PlotOrientation↵ | |
2 | ↵ | 2 | .HORIZONTAL == l_orientation) {↵ | |
3 | line = new Line2D.Double(y0, x0, y1, x1);↵ | 3 | l_line = new Line2D.Double(↵ | |
4 | }↵ | |||
5 | ↵ | 4 | l_y1, l_x1, l_y2, l_x2);↵ | |
5 | }↵ | |||
6 | else if (orientation == PlotOrientation.VERTICAL) {↵ | 6 | else if (PlotOrientation.VERTICAL == l_orientation) {↵ | |
7 | line = new Line2D.Double(x0, y0, x1, y1);↵ | 7 | l_line = new Line2D.Double(↵ | |
8 | ↵ | 8 | l_x1, l_y1, l_x2, l_y2);↵ | |
9 | } | 9 |
| |
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.4 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 13 |
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) | 1.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
42 | if (orientation == PlotOrientation.HORIZONTAL) |
| 48 | if (PlotOrientation.HORIZONTAL == l_orientation) | ||||||||||||||||||||||
43 | line = new Line2D.Double(y0, x0, y1, x1); |
| 49 | l_line = new Line2D.Double(l_y1, l_x1, l_y2, l_x2); | ||||||||||||||||||||||
44 | else if (orientation == PlotOrientation.VERTICAL) |
| 50 | else if (PlotOrientation.VERTICAL == l_orientation) | ||||||||||||||||||||||
45 | line = new Line2D.Double(x0, y0, x1, y1); |
| 51 | l_line = new Line2D.Double(l_x1, l_y1, l_x2, l_y2); |
Row | Violation |
---|