File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/category/StackedBarRenderer3D.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/category/StackedBarRenderer3D.java | |||
Method name: void drawStackHorizontal(List, Comparable, Graphics2D, CategoryItemRendererState, Rectangle2D, CategoryPlot, CategoryAxis, ValueAxis, CategoryDataset)
|
Method name: void drawStackVertical(List, Comparable, Graphics2D, CategoryItemRendererState, Rectangle2D, CategoryPlot, CategoryAxis, ValueAxis, CategoryDataset)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | if (f == 5) {↵ | 1 | if (f == 5) {↵ | |
2 | g2.setPaint(fillPaint);↵ | 2 | g2.setPaint(fillPaint);↵ | |
3 | }↵ | 3 | }↵ | |
4 | else {↵ | 4 | else {↵ | |
5 | g2.setPaint(fillPaintDark);↵ | 5 | g2.setPaint(fillPaintDark);↵ | |
6 | }↵ | 6 | }↵ | |
7 | g2.fill(faces[f]);↵ | 7 | g2.fill(faces[f]);↵ | |
8 | if (drawOutlines) {↵ | 8 | if (drawOutlines) {↵ | |
9 | g2.setPaint(outlinePaint);↵ | 9 | g2.setPaint(outlinePaint);↵ | |
10 | g2.draw(faces[f]);↵ | 10 | g2.draw(faces[f]);↵ | |
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.2 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 31 |
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) | 1.6 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
32 | if (f == 5) | 32 | if (f == 5) | |
33 | g2.setPaint(fillPaint); | 33 | g2.setPaint(fillPaint); | |
else | else | |||
34 | g2.setPaint(fillPaintDark); | 34 | g2.setPaint(fillPaintDark); | |
35 | g2.fill(faces[f]); | 35 | g2.fill(faces[f]); | |
36 | if (drawOutlines) | 36 | if (drawOutlines) | |
37 | g2.setPaint(outlinePaint); | 37 | g2.setPaint(outlinePaint); | |
38 | g2.draw(faces[f]); | 38 | g2.draw(faces[f]); |
Row | Violation |
---|