File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/category/BoxAndWhiskerRenderer.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYBoxAndWhiskerRenderer.java | |||
Method name: void drawVerticalItem(Graphics2D, CategoryItemRendererState, Rectangle2D, CategoryPlot, CategoryAxis, ValueAxis, CategoryDataset, int, int)
|
Method name: void drawVerticalItem(Graphics2D, Rectangle2D, PlotRenderingInfo, XYPlot, ValueAxis, ValueAxis, XYDataset, int, int, CrosshairState, int)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | OutlierList list = (OutlierList) iterator.next();↵ | 1 | OutlierList list = (OutlierList) iterator.next();↵ | |
2 | Outlier outlier = list.getAveragedOutlier();↵ | 2 | Outlier outlier = list.getAveragedOutlier();↵ | |
3 | Point2D point = outlier.getPoint();↵ | 3 | Point2D point = outlier.getPoint();↵ | |
4 | if (list.isMultiple()) {↵ | 4 | if (list.isMultiple()) {↵ | |
5 | drawMultipleEllipse(point, state.getBarWidth(), oRadius,↵ | 5 | drawMultipleEllipse(point, width, oRadius,↵ | |
6 | g2);↵ | 6 | g2);↵ | |
7 | }↵ | 7 | ↵ | |
8 | ↵ | 8 | } ↵ | |
9 | else {↵ | 9 | else {↵ | |
10 | drawEllipse(point, oRadius, g2);↵ | 10 | drawEllipse(point, oRadius, g2);↵ | |
11 | } | 11 |
| |
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.3 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 19 |
Number of mapped statements | 6 |
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) | 9.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
86 | OutlierList list = (OutlierList)iterator.next(); | 85 | OutlierList list = (OutlierList)iterator.next(); | |||||||||||
87 | Outlier outlier = list.getAveragedOutlier(); | 86 | Outlier outlier = list.getAveragedOutlier(); | |||||||||||
88 | Point2D point = outlier.getPoint(); | 87 | Point2D point = outlier.getPoint(); | |||||||||||
89 | if (list.isMultiple()) | 88 | if (list.isMultiple()) | |||||||||||
90 | drawMultipleEllipse(point, state.getBarWidth(), oRadius, g2); |
| 89 | drawMultipleEllipse(point, width, oRadius, g2); | ||||||||||
else | else | |||||||||||||
91 | drawEllipse(point, oRadius, g2); | 90 | drawEllipse(point, oRadius, g2); |
Row | Violation |
---|