control1.setLocation(new Point2D.Double( m1.x + (c2.x - m1.x) * smooth + point1.x - m1.x, m1.y + (c2.y - m1.y) * smooth + point1.y - m1.y));
control2.setLocation(new Point2D.Double( m2.x + (c2.x - m2.x) * smooth + point2.x - m2.x, m2.y + (c2.y - m2.y) * smooth + point2.y - m2.y));
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/experimental/org/jfree/experimental/chart/renderer/xy/XYSmoothLineAndShapeRenderer.java File path: /jfreechart-1.0.10/experimental/org/jfree/experimental/chart/renderer/xy/XYSmoothLineAndShapeRenderer.java
Method name: void getControlPoints(Point2D.Double, Point2D.Double, Point2D.Double, Point2D.Double, Point2D.Double, Point2D.Double, double) Method name: void getControlPoints(Point2D.Double, Point2D.Double, Point2D.Double, Point2D.Double, Point2D.Double, Point2D.Double, double)
Number of AST nodes: 1 Number of AST nodes: 1
1
control1.setLocation(new Point2D.Double(
1
control2.setLocation(new Point2D.Double(
2
               m1.x + (c2.x - m1.x) * smooth + point1.x - m1.x,
2
               m2.x + (c2.x - m2.x) * smooth + point2.x - m2.x,
3
               m1.y + (c2.y - m1.y) * smooth + point1.y - m1.y));
3
               m2.y + (c2.y - m2.y) * smooth + point2.y - m2.y));
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 the same method
Number of node comparisons1
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements1
    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
    15
    control1.setLocation(new Point2D.Double(m1.x + (c2.x - m1.x) * smooth + point1.x - m1.x, m1.y + (c2.y - m1.y) * smooth + point1.y - m1.y));
    15
    control1.setLocation(new Point2D.Double(m1.x + (c2.x - m1.x) * smooth + point1.x - m1.x, m1.y + (c2.y - m1.y) * smooth + point1.y - m1.y));
    16
    control2.setLocation(new Point2D.Double(m2.x + (c2.x - m2.x) * smooth + point2.x - m2.x, m2.y + (c2.y - m2.y) * smooth + point2.y - m2.y));
    Differences
    Expression1Expression2Difference
    m1m2VARIABLE_NAME_MISMATCH
    m1m2VARIABLE_NAME_MISMATCH
    point1point2VARIABLE_NAME_MISMATCH
    m1m2VARIABLE_NAME_MISMATCH
    m1m2VARIABLE_NAME_MISMATCH
    m1m2VARIABLE_NAME_MISMATCH
    point1point2VARIABLE_NAME_MISMATCH
    m1m2VARIABLE_NAME_MISMATCH
    control1control2VARIABLE_NAME_MISMATCH
    16
    control2.setLocation(new Point2D.Double(m2.x + (c2.x - m2.x) * smooth + point2.x - m2.x, m2.y + (c2.y - m2.y) * smooth + point2.y - m2.y));
    Precondition Violations (0)
    Row Violation