if ((xxMean > (dataArea.getMinX() - aRadius)) && (xxMean < (dataArea.getMaxX() + aRadius))) { Ellipse2D.Double avgEllipse = new Ellipse2D.Double(xxMean - aRadius, yy + aRadius, aRadius * 2, aRadius * 2); g2.fill(avgEllipse); g2.draw(avgEllipse); }
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); }
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/category/BoxAndWhiskerRenderer.java File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYBoxAndWhiskerRenderer.java
Method name: void drawHorizontalItem(Graphics2D, CategoryItemRendererState, Rectangle2D, CategoryPlot, CategoryAxis, ValueAxis, CategoryDataset, int, int) Method name: void drawHorizontalItem(Graphics2D, Rectangle2D, PlotRenderingInfo, XYPlot, ValueAxis, ValueAxis, XYDataset, int, int, CrosshairState, int)
Number of AST nodes: 4 Number of AST nodes: 4
1
if ((xxMean > (dataArea.getMinX() - aRadius))
1
if ((yyAverage > (dataArea.getMinX() - aRadius)) 
2
                    && (xxMean < (dataArea.getMaxX() + aRadius))) {
2
                    && (yyAverage < (dataArea.getMaxX() + aRadius))) {
3
                Ellipse2D.Double avgEllipse = new Ellipse2D.Double(xxMean
3
                Ellipse2D.Double avgEllipse = new Ellipse2D.Double(
4
                        - aRadius, yy + aRadius, aRadius * 2, 
4
                        yyAverage - aRadius, xx - aRadius, aRadius * 2, 
5
aRadius * 2);
5
                        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 cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.5
Clones locationClones are in different classes having the same super class
Number of node comparisons17
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)1.4
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    46
    if ((xxMean > (dataArea.getMinX() - aRadius)) && (xxMean < (dataArea.getMaxX() + aRadius)))
    46
    if ((xxMean > (dataArea.getMinX() - aRadius)) && (xxMean < (dataArea.getMaxX() + aRadius)))
    56
    if ((yyAverage > (dataArea.getMinX() - aRadius)) && (yyAverage < (dataArea.getMaxX() + aRadius)))
    Differences
    Expression1Expression2Difference
    xxMeanyyAverageVARIABLE_NAME_MISMATCH
    xxMeanyyAverageVARIABLE_NAME_MISMATCH
    56
    if ((yyAverage > (dataArea.getMinX() - aRadius)) && (yyAverage < (dataArea.getMaxX() + aRadius)))
    47
    Ellipse2D.Double avgEllipse = new Ellipse2D.Double(xxMean - aRadius, yy + aRadius, aRadius * 2, aRadius * 2);
    47
    Ellipse2D.Double avgEllipse = new Ellipse2D.Double(xxMean - aRadius, yy + aRadius, aRadius * 2, aRadius * 2);
    Preondition Violations
    Unmatched statement Ellipse2D.Double avgEllipse=new Ellipse2D.Double(xxMean - aRadius,yy + aRadius,aRadius * 2,aRadius * 2); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                                                                                                                                                                            
                                                                                                                                                                                                                                  
    57
    Ellipse2D.Double avgEllipse = new Ellipse2D.Double(yyAverage - aRadius, xx - aRadius, aRadius * 2, aRadius * 2);
    Preondition Violations
    Unmatched statement Ellipse2D.Double avgEllipse=new Ellipse2D.Double(yyAverage - aRadius,xx - aRadius,aRadius * 2,aRadius * 2); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    57
    Ellipse2D.Double avgEllipse = new Ellipse2D.Double(yyAverage - aRadius, xx - aRadius, aRadius * 2, aRadius * 2);
    48
    g2.fill(avgEllipse);
    58
    g2.fill(avgEllipse);
    49
    g2.draw(avgEllipse);
    59
    g2.draw(avgEllipse);
    Precondition Violations (2)
    Row Violation
    1Unmatched statement Ellipse2D.Double avgEllipse=new Ellipse2D.Double(xxMean - aRadius,yy + aRadius,aRadius * 2,aRadius * 2); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2Unmatched statement Ellipse2D.Double avgEllipse=new Ellipse2D.Double(yyAverage - aRadius,xx - aRadius,aRadius * 2,aRadius * 2); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted