File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/category/LineAndShapeRenderer.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/category/StatisticalLineAndShapeRenderer.java | |||
Method name: void drawItem(Graphics2D, CategoryItemRendererState, Rectangle2D, CategoryPlot, CategoryAxis, ValueAxis, CategoryDataset, int, int, int)
|
Method name: void drawItem(Graphics2D, CategoryItemRendererState, Rectangle2D, CategoryPlot, CategoryAxis, ValueAxis, CategoryDataset, int, int, int)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (orientation == PlotOrientation.HORIZONTAL) {↵ | 1 | if (orientation == PlotOrientation.HORIZONTAL) {↵ | |
2 | drawItemLabel(g2, orientation, dataset, row, column, y1,↵ | 2 | drawItemLabel(g2, orientation, dataset, row, column,↵ | |
3 | x1, (value < 0.0));↵ | 3 | y1, x1, (meanValue.doubleValue() < 0.0));↵ | |
4 | }↵ | 4 | }↵ | |
5 | else if (orientation == PlotOrientation.VERTICAL) {↵ | 5 | else if (orientation == PlotOrientation.VERTICAL) {↵ | |
6 | drawItemLabel(g2, orientation, dataset, row, column, x1,↵ | 6 | drawItemLabel(g2, orientation, dataset, row, column,↵ | |
7 | y1, (value < 0.0));↵ | 7 | x1, y1, (meanValue.doubleValue() < 0.0));↵ | |
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.4 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 14 |
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) | 43.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
52 | if (orientation == PlotOrientation.HORIZONTAL) | 77 | if (orientation == PlotOrientation.HORIZONTAL) | |||||||||||
53 | drawItemLabel(g2, orientation, dataset, row, column, y1, x1, (value < 0.0)); |
| 78 | drawItemLabel(g2, orientation, dataset, row, column, y1, x1, (meanValue.doubleValue() < 0.0)); | ||||||||||
54 | else if (orientation == PlotOrientation.VERTICAL) | 79 | else if (orientation == PlotOrientation.VERTICAL) | |||||||||||
55 | drawItemLabel(g2, orientation, dataset, row, column, x1, y1, (value < 0.0)); |
| 80 | drawItemLabel(g2, orientation, dataset, row, column, x1, y1, (meanValue.doubleValue() < 0.0)); |
Row | Violation |
---|