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: 7 | Number of AST nodes: 7 | |||
1 | for (Iterator iterator = outlierListCollection.iterator();↵ | 1 | for (Iterator iterator = outlierListCollection.iterator(); ↵ | |
2 | iterator.hasNext();) {↵ | 2 | iterator.hasNext();) {↵ | |
3 | OutlierList list = (OutlierList) iterator.next();↵ | 3 | OutlierList list = (OutlierList) iterator.next();↵ | |
4 | Outlier outlier = list.getAveragedOutlier();↵ | 4 | Outlier outlier = list.getAveragedOutlier();↵ | |
5 | Point2D point = outlier.getPoint();↵ | 5 | Point2D point = outlier.getPoint();↵ | |
6 | if (list.isMultiple()) {↵ | 6 | if (list.isMultiple()) {↵ | |
7 | drawMultipleEllipse(point, state.getBarWidth(), oRadius,↵ | 7 | drawMultipleEllipse(point, width, oRadius,↵ | |
8 | g2);↵ | 8 | g2);↵ | |
9 | }↵ | 9 | } ↵ | |
10 | else {↵ | 10 | else {↵ | |
11 | drawEllipse(point, oRadius, g2);↵ | 11 | drawEllipse(point, oRadius, g2);↵ | |
12 | }↵ | 12 | ↵ | |
13 | ↵ | 13 | }↵ | |
14 | } | 14 |
| |
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 | 25 |
Number of mapped statements | 7 |
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) | 12.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
85 | for (Iterator iterator = outlierListCollection.iterator(); iterator.hasNext(); ) | 84 | for (Iterator iterator = outlierListCollection.iterator(); iterator.hasNext(); ) | |||||||||||
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 |
---|