if (yyQ1Median < yyQ3Median) { box = new Rectangle2D.Double(yyQ1Median, xx - width / 2, yyQ3Median - yyQ1Median, width); } else { box = new Rectangle2D.Double(yyQ3Median, xx - width / 2, yyQ1Median - yyQ3Median, width); }
if (yyQ1Median > yyQ3Median) { box = new Rectangle2D.Double(xx - width / 2, yyQ3Median, width, yyQ1Median - yyQ3Median); } else { box = new Rectangle2D.Double(xx - width / 2, yyQ1Median, width, yyQ3Median - yyQ1Median); }
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYBoxAndWhiskerRenderer.java File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYBoxAndWhiskerRenderer.java
Method name: void drawHorizontalItem(Graphics2D, Rectangle2D, PlotRenderingInfo, XYPlot, ValueAxis, ValueAxis, XYDataset, int, int, CrosshairState, int) Method name: void drawVerticalItem(Graphics2D, Rectangle2D, PlotRenderingInfo, XYPlot, ValueAxis, ValueAxis, XYDataset, int, int, CrosshairState, int)
Number of AST nodes: 3 Number of AST nodes: 3
1
if (yyQ1Median < yyQ3Median) {
1
if (yyQ1Median > yyQ3Median) {
2
            box = new Rectangle2D.Double(yyQ1Median, xx - width / 2, 
2
            box = new Rectangle2D.Double(xx - width / 2, yyQ3Median, width, 
3
                    yyQ3Median - yyQ1Median, width);
3
                    yyQ1Median - yyQ3Median);
4
        }
4
        }
5
        else {
5
        else {
6
            box = new Rectangle2D.Double(yyQ3Median, xx - width / 2, 
6
            box = new Rectangle2D.Double(xx - width / 2, yyQ1Median, width, 
7
                    yyQ1Median - yyQ3Median, width);
7
                    yyQ3Median - yyQ1Median);
8
        }
8
        }
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.1
Clones locationClones are declared in the same class
Number of node comparisons1