if (orientation == PlotOrientation.HORIZONTAL) { drawStackHorizontal(values, category, g2, state, adjusted, plot, domainAxis, rangeAxis, dataset); } else { drawStackVertical(values, category, g2, state, adjusted, plot, domainAxis, rangeAxis, dataset); }
if (orientation == PlotOrientation.VERTICAL) { drawItemLabel(g2, orientation, dataset, series, item, transX, transY, false); } else if (orientation == PlotOrientation.HORIZONTAL) { drawItemLabel(g2, orientation, dataset, series, item, transY, transX, false); }
Clone fragments detected by clone detection tool
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/xy/XYBubbleRenderer.java
Method name: void drawItem(Graphics2D, CategoryItemRendererState, Rectangle2D, CategoryPlot, CategoryAxis, ValueAxis, CategoryDataset, int, int, int) Method name: void drawItem(Graphics2D, XYItemRendererState, Rectangle2D, PlotRenderingInfo, XYPlot, ValueAxis, ValueAxis, XYDataset, int, int, CrosshairState, int)
Number of AST nodes: 3 Number of AST nodes: 4
1
if (orientation == PlotOrientation.HORIZONTAL) {
1
if (orientation == PlotOrientation.VERTICAL) {
2
            drawStackHorizontal(values, category, g2, state, adjusted, plot,
2
                    drawItemLabel(g2, orientation, dataset, series, item, 
3
                    domainAxis, rangeAxis, dataset);
3
                            transX, transY, false);
4
        }
4
         
5
        else {
5
       }
6
                else if (orientation == PlotOrientation.HORIZONTAL) {
6
            drawStackVertical(values, category, g2, state, adjusted, plot,
7
                    drawItemLabel(g2, orientation, dataset, series, item, 
7
                    domainAxis, rangeAxis, dataset);
8
                            transY, transX, false);
9
                
8
        }
10
                }
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.3
Clones locationClones are in different classes having the same super class
Number of node comparisons2