1674-1-3

if (info != null) { EntityCollection entities = info.getOwner().getEntityCollection(); if (entities != null) { addEntity(entities, bar, dataset, series, item, bar.getCenterX(), bar.getCenterY()); } }
entities = info.getOwner().getEntityCollection(); if (entities != null && circle.intersects(dataArea)) { addEntity(entities, circle, dataset, series, item, circle.getCenterX(), circle.getCenterY()); }

Clone fragments detected by clone detection tool
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/XYBubbleRenderer.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: 3

1

    if (info != null) {↵

2

                EntityCollection entities = info.getOwner().getEntityCollection();↵

1

    entities = info.getOwner().getEntityCollection();↵

3

                if (entities != null) {↵

2

                    if (entities != null && circle.intersects(dataArea)) {↵

4

                    addEntity(entities, bar, dataset, series, item, ↵

3

                        addEntity(entities, circle, dataset, series, item, ↵

5

                            bar.getCenterX(), bar.getCenterY());↵

4

                                circle.getCenterX(), circle.getCenterY());↵

6

                }↵

5

            ↵

7

            }

6

            }

See real code fragment |  | See real code fragment

Summary
Number of common nesting structure subtrees | 0
Number of refactorable cases | 0
Number of non-refactorable cases | 0
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1
Clones location | Clones are in different classes having the same super class
Number of node comparisons | 1