if ((yyAverage > (dataArea.getMinX() - aRadius)) && (yyAverage < (dataArea.getMaxX() + aRadius))) { Ellipse2D.Double avgEllipse = new Ellipse2D.Double( yyAverage - aRadius, xx - aRadius, aRadius * 2, aRadius * 2); g2.fill(avgEllipse); g2.draw(avgEllipse); }
if ((yyAverage > (dataArea.getMinY() - aRadius)) && (yyAverage < (dataArea.getMaxY() + aRadius))) { Ellipse2D.Double avgEllipse = new Ellipse2D.Double(xx - aRadius, yyAverage - aRadius, aRadius * 2, aRadius * 2); g2.fill(avgEllipse); g2.draw(avgEllipse); }
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: 4 Number of AST nodes: 4
1
if ((yyAverage > (dataArea.getMinX() - aRadius)) 
1
if ((yyAverage > (dataArea.getMinY() - aRadius)) 
2
                    && (yyAverage < (dataArea.getMaxX() + aRadius))) {
2
                    && (yyAverage < (dataArea.getMaxY() + aRadius))) {
3
                Ellipse2D.Double avgEllipse = new Ellipse2D.Double(
3
                Ellipse2D.Double avgEllipse = new Ellipse2D.Double(xx - aRadius, 
4
                        yyAverage - aRadius, xx - aRadius, aRadius * 2, 
4
                        yyAverage - aRadius, 
5
                        aRadius * 2);
5
aRadius * 2, aRadius * 2);
6
                g2.fill(avgEllipse);
6
                g2.fill(avgEllipse);
7
                g2.draw(avgEllipse);
7
                g2.draw(avgEllipse);
8
            }
8
            }
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.5
Clones locationClones are declared in the same class
Number of node comparisons17
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements4
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)1.6
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    56
    if ((yyAverage > (dataArea.getMinX() - aRadius)) && (yyAverage < (dataArea.getMaxX() + aRadius)))
    56
    if ((yyAverage > (dataArea.getMinX() - aRadius)) && (yyAverage < (dataArea.getMaxX() + aRadius)))
    60
    if ((yyAverage > (dataArea.getMinY() - aRadius)) && (yyAverage < (dataArea.getMaxY() + aRadius)))
    Differences
    Expression1Expression2Difference
    getMinXgetMinYMETHOD_INVOCATION_NAME_MISMATCH
    getMaxXgetMaxYMETHOD_INVOCATION_NAME_MISMATCH
    60
    if ((yyAverage > (dataArea.getMinY() - aRadius)) && (yyAverage < (dataArea.getMaxY() + aRadius)))
    57
    Ellipse2D.Double avgEllipse = new Ellipse2D.Double(yyAverage - aRadius, xx - aRadius, aRadius * 2, aRadius * 2);
    57
    Ellipse2D.Double avgEllipse = new Ellipse2D.Double(yyAverage - aRadius, xx - aRadius, aRadius * 2, aRadius * 2);
    61
    Ellipse2D.Double avgEllipse = new Ellipse2D.Double(xx - aRadius, yyAverage - aRadius, aRadius * 2, aRadius * 2);
    Differences
    Expression1Expression2Difference
    yyAveragexxVARIABLE_NAME_MISMATCH
    xxyyAverageVARIABLE_NAME_MISMATCH
    61
    Ellipse2D.Double avgEllipse = new Ellipse2D.Double(xx - aRadius, yyAverage - aRadius, aRadius * 2, aRadius * 2);
    58
    g2.fill(avgEllipse);
    62
    g2.fill(avgEllipse);
    59
    g2.draw(avgEllipse);
    63
    g2.draw(avgEllipse);
    Precondition Violations (0)
    Row Violation