double hGap = plotArea.getWidth() * this.interiorGap; double vGap = plotArea.getHeight() * this.interiorGap; double igx1 = plotArea.getX() + hGap; double igx2 = plotArea.getMaxX() - hGap; double igy1 = plotArea.getY() + vGap; double igy2 = plotArea.getMaxY() - vGap; g2.setPaint(Color.gray); g2.draw(new Rectangle2D.Double(igx1, igy1, igx2 - igx1, igy2 - igy1));
double hGap = plotArea.getWidth() * getInteriorGap(); double vGap = plotArea.getHeight() * getInteriorGap(); double igx1 = plotArea.getX() + hGap; double igx2 = plotArea.getMaxX() - hGap; double igy1 = plotArea.getY() + vGap; double igy2 = plotArea.getMaxY() - vGap; g2.setPaint(Color.lightGray); g2.draw(new Rectangle2D.Double(igx1, igy1, igx2 - igx1, igy2 - igy1));
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/PiePlot.java File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/PiePlot3D.java
Method name: void drawPie(Graphics2D, Rectangle2D, PlotRenderingInfo) Method name: void draw(Graphics2D, Rectangle2D, Point2D, PlotState, PlotRenderingInfo)
Number of AST nodes: 8 Number of AST nodes: 8
1
double hGap = plotArea.getWidth() * this.interiorGap;
1
double hGap = plotArea.getWidth() * getInteriorGap();
2
            double vGap = plotArea.getHeight() * this.interiorGap;
2
            double vGap = plotArea.getHeight() * getInteriorGap
3
        
3
();
4
            double igx1 = plotArea.getX() + hGap;
4
            double igx1 = plotArea.getX() + hGap;
5
            double igx2 = plotArea.getMaxX() - hGap;
5
            double igx2 = plotArea.getMaxX() - hGap;
6
            double igy1 = plotArea.getY() + vGap;
6
            double igy1 = plotArea.getY() + vGap;
7
            double igy2 = plotArea.getMaxY() - vGap;
7
            double igy2 = plotArea.getMaxY() - vGap;
8
            g2.setPaint(Color.gray);
8
            g2.setPaint(Color.lightGray);
9
            g2.draw(new Rectangle2D.Double(igx1, igy1, igx2 - igx1, 
9
            g2.draw(new Rectangle2D.Double(igx1, igy1, igx2 - igx1, 
10
                    igy2 - igy1));
10
                    igy2 - igy1));
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.0
Clones locationClones are in different classes having the same super class
Number of node comparisons64
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements8
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    8
    double hGap = plotArea.getWidth() * this.interiorGap;
    8
    double hGap = plotArea.getWidth() * this.interiorGap;
    17
    double hGap = plotArea.getWidth() * getInteriorGap();
    Differences
    Expression1Expression2Difference
    thisMISSING_METHOD_INVOCATION_EXPRESSION
    this.interiorGapgetInteriorGap()FIELD_ACCESS_REPLACED_WITH_GETTER
    17
    double hGap = plotArea.getWidth() * getInteriorGap();
    9
    double vGap = plotArea.getHeight() * this.interiorGap;
    9
    double vGap = plotArea.getHeight() * this.interiorGap;
    18
    double vGap = plotArea.getHeight() * getInteriorGap();
    Differences
    Expression1Expression2Difference
    thisMISSING_METHOD_INVOCATION_EXPRESSION
    this.interiorGapgetInteriorGap()FIELD_ACCESS_REPLACED_WITH_GETTER
    18
    double vGap = plotArea.getHeight() * getInteriorGap();
    10
    double igx1 = plotArea.getX() + hGap;
    19
    double igx1 = plotArea.getX() + hGap;
    11
    double igx2 = plotArea.getMaxX() - hGap;
    20
    double igx2 = plotArea.getMaxX() - hGap;
    12
    double igy1 = plotArea.getY() + vGap;
    21
    double igy1 = plotArea.getY() + vGap;
    13
    double igy2 = plotArea.getMaxY() - vGap;
    22
    double igy2 = plotArea.getMaxY() - vGap;
    14
    g2.setPaint(Color.gray);
    14
    g2.setPaint(Color.gray);
    23
    g2.setPaint(Color.lightGray);
    Differences
    Expression1Expression2Difference
    graylightGrayVARIABLE_NAME_MISMATCH
    23
    g2.setPaint(Color.lightGray);
    15
    g2.draw(new Rectangle2D.Double(igx1, igy1, igx2 - igx1, igy2 - igy1));
    24
    g2.draw(new Rectangle2D.Double(igx1, igy1, igx2 - igx1, igy2 - igy1));
    Precondition Violations (0)
    Row Violation