1646-1-2

double side = aRadius * 2; g2.draw(new Line2D.Double(xx - side, m + side, xx + side, m + side)); g2.draw(new Line2D.Double(xx - side, m + side, xx, m)); g2.draw(new Line2D.Double(xx + side, m + side, xx, m));
double side = aRadius * 2; g2.draw(new Line2D.Double(xx - side, m + side, xx + side, m + side)); g2.draw(new Line2D.Double(xx - side, m + side, xx, m)); g2.draw(new Line2D.Double(xx + side, m + side, xx, m));

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 drawHighFarOut(double, Graphics2D, double, double)` |  | Method name: `void drawHighFarOut(double, Graphics2D, double, double)`
Number of AST nodes: 4 |  | Number of AST nodes: 4

1

    double side = aRadius * 2;↵

1

    double side = aRadius * 2;↵

2

            g2.draw(new Line2D.Double(xx - side, m + side, xx + side, m + side));↵

2

            g2.draw(new Line2D.Double(xx - side, m + side, xx + side, m + side));↵

3

            g2.draw(new Line2D.Double(xx - side, m + side, xx, m));↵

3

            g2.draw(new Line2D.Double(xx - side, m + side, xx, m));↵

4

            g2.draw(new Line2D.Double(xx + side, m + side, xx, m));

4

            g2.draw(new Line2D.Double(xx + side, m + side, xx, m));

See real code fragment |  | See real code fragment

Summary
Number of common nesting structure subtrees | 1
Number of refactorable cases | 1
Number of non-refactorable cases | 0
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0
Clones location | Clones are in different classes having the same super class
Number of node comparisons | 16

1. {Refactorable}

   Mapping Summary
   Number of mapped statements | 4
   Number of unmapped statements in the first code fragment | 0
   Number of unmapped statements in the second code fragment | 0
   Time elapsed for statement mapping (ms) | 0.0
   Clone type | Type 1

   Mapped Statements
   ID | Statement |  | ID | Statement
   --- | --- | --- | --- | ---

   1

       double side = aRadius * 2;

   1

       double side = aRadius * 2;

   2

       g2.draw(new Line2D.Double(xx - side, m + side, xx + side, m + side));

   2

       g2.draw(new Line2D.Double(xx - side, m + side, xx + side, m + side));

   3

       g2.draw(new Line2D.Double(xx - side, m + side, xx, m));

   3

       g2.draw(new Line2D.Double(xx - side, m + side, xx, m));

   4

       g2.draw(new Line2D.Double(xx + side, m + side, xx, m));

   4

       g2.draw(new Line2D.Double(xx + side, m + side, xx, m));

   Precondition Violations (0)
   Row | Violation
   --- | ---