File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/category/LayeredBarRenderer.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/category/StatisticalBarRenderer.java | |||
Method name: void drawVerticalItem(Graphics2D, CategoryItemRendererState, Rectangle2D, CategoryPlot, CategoryAxis, ValueAxis, CategoryDataset, int, int)
|
Method name: void drawVerticalItem(Graphics2D, CategoryItemRendererState, Rectangle2D, CategoryPlot, CategoryAxis, ValueAxis, StatisticalCategoryDataset, int, int)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | if (isDrawBarOutline()↵ | 1 | if (isDrawBarOutline()↵ | |
2 | && state.getBarWidth() > BAR_OUTLINE_WIDTH_THRESHOLD) {↵ | 2 | && state.getBarWidth() > BAR_OUTLINE_WIDTH_THRESHOLD) {↵ | |
3 | Stroke stroke = getItemOutlineStroke(row, column);↵ | 3 | Stroke stroke = getItemOutlineStroke(row, column);↵ | |
4 | Paint paint = getItemOutlinePaint(row, column);↵ | 4 | Paint paint = getItemOutlinePaint(row, column);↵ | |
5 | if (stroke != null && paint != null) {↵ | 5 | if (stroke != null && paint != null) {↵ | |
6 | g2.setStroke(stroke);↵ | 6 | g2.setStroke(stroke);↵ | |
7 | g2.setPaint(paint);↵ | 7 | g2.setPaint(paint);↵ | |
8 | g2.draw(bar);↵ | 8 | g2.draw(bar);↵ | |
9 | }↵ | 9 | }↵ | |
10 | } | 10 |
| |
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) | 36.0 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
49 | if (isDrawBarOutline() && state.getBarWidth() > BAR_OUTLINE_WIDTH_THRESHOLD) | 45 | if (isDrawBarOutline() && state.getBarWidth() > BAR_OUTLINE_WIDTH_THRESHOLD) | |
50 | Stroke stroke = getItemOutlineStroke(row, column); | 46 | Stroke stroke = getItemOutlineStroke(row, column); | |
51 | Paint paint = getItemOutlinePaint(row, column); | 47 | Paint paint = getItemOutlinePaint(row, column); | |
52 | if (stroke != null && paint != null) | 48 | if (stroke != null && paint != null) | |
53 | g2.setStroke(stroke); | 49 | g2.setStroke(stroke); | |
54 | g2.setPaint(paint); | 50 | g2.setPaint(paint); | |
55 | g2.draw(bar); | 51 | g2.draw(bar); |
Row | Violation |
---|