double h = usableSize * plot.getWeight() / this.totalWeight; this.subplotAreas[i] = new Rectangle2D.Double(x, y, adjustedPlotArea.getWidth(), h); y = y + h + this.gap;
double h = usableSize * plot.getWeight() / this.totalWeight; this.subplotArea[i] = new Rectangle2D.Double(x, y, adjustedPlotArea.getWidth(), h); y = y + h + this.gap;
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/CombinedDomainCategoryPlot.java File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/CombinedRangeCategoryPlot.java
Method name: AxisSpace calculateAxisSpace(Graphics2D, Rectangle2D) Method name: AxisSpace calculateAxisSpace(Graphics2D, Rectangle2D)
Number of AST nodes: 3 Number of AST nodes: 3
1
double h = usableSize * plot.getWeight() / this.totalWeight;
1
double h = usableSize * plot.getWeight() / this.totalWeight;
2
                this.subplotAreas[i] = new Rectangle2D.Double(x, y,
2
                this.subplotArea[i] = new Rectangle2D.Double(x, y, 
3
                        adjustedPlotArea.getWidth(), h);
3
                        adjustedPlotArea.getWidth(), h);
4
                y = y + h + this.gap;
4
                y = y + h + this.gap;
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 comparisons6
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements3
    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
    34
    double h = usableSize * plot.getWeight() / this.totalWeight;
    32
    double h = usableSize * plot.getWeight() / this.totalWeight;
    35
    this.subplotAreas[i] = new Rectangle2D.Double(x, y, adjustedPlotArea.getWidth(), h);
    35
    this.subplotAreas[i] = new Rectangle2D.Double(x, y, adjustedPlotArea.getWidth(), h);
    33
    this.subplotArea[i] = new Rectangle2D.Double(x, y, adjustedPlotArea.getWidth(), h);
    Differences
    Expression1Expression2Difference
    subplotAreassubplotAreaVARIABLE_NAME_MISMATCH
    33
    this.subplotArea[i] = new Rectangle2D.Double(x, y, adjustedPlotArea.getWidth(), h);
    36
    y = y + h + this.gap;
    34
    y = y + h + this.gap;
    Precondition Violations (0)
    Row Violation