File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/ClusteredXYBarRenderer.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/StackedXYBarRenderer.java | |||
Method name: void drawItem(Graphics2D, XYItemRendererState, Rectangle2D, PlotRenderingInfo, XYPlot, ValueAxis, ValueAxis, XYDataset, int, int, CrosshairState, int)
|
Method name: void drawItem(Graphics2D, XYItemRendererState, Rectangle2D, PlotRenderingInfo, XYPlot, ValueAxis, ValueAxis, XYDataset, int, int, CrosshairState, int)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (info != null) {↵ | 1 | if (info != null) {↵ | |
2 | EntityCollection entities = info.getOwner()↵ | 2 | EntityCollection entities = info.getOwner()↵ | |
3 | .getEntityCollection();↵ | 3 | .getEntityCollection();↵ | |
4 | if (entities != null) {↵ | 4 | if (entities != null) {↵ | |
5 | addEntity(entities, bar, dataset, series, item, ↵ | 5 | addEntity(entities, bar, dataset, series, item, ↵ | |
6 | bar.getCenterX(), bar.getCenterY());↵ | 6 | bar.getCenterX(), bar.getCenterY());↵ | |
7 | }↵ | 7 | ↵ | |
8 | }↵ | |||
8 | } | 9 | } | |
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 in different classes having the same super class |
Number of node comparisons | 8 |
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) | 0.9 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
61 | if (info != null) | 70 | if (info != null) | |
62 | EntityCollection entities = info.getOwner().getEntityCollection(); | 71 | EntityCollection entities = info.getOwner().getEntityCollection(); | |
63 | if (entities != null) | 72 | if (entities != null) | |
64 | addEntity(entities, bar, dataset, series, item, bar.getCenterX(), bar.getCenterY()); | 73 | addEntity(entities, bar, dataset, series, item, bar.getCenterX(), bar.getCenterY()); |
Row | Violation |
---|