371-3-14

this.xValue = xValue; this.yValue = yValue; this.fillPath = fillPath; this.drawPath = drawPath; this.fillPaint = fillPaint; this.drawPaint = drawPaint; this.drawStroke = drawStroke; this.composite = composite;
this.series = series; this.series.addChangeListener(this); this.editable = editable;

Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/ClipPath.java |  | File path: /jfreechart-1.0.10/src/org/jfree/data/time/TimeSeriesTableModel.java
Method name: `void ClipPath(double[], double[], boolean, boolean, Paint, Paint, Stroke, Composite)` |  | Method name: `void TimeSeriesTableModel(TimeSeries, boolean)`
Number of AST nodes: 8 |  | Number of AST nodes: 3

1

    this.xValue = xValue;↵

1

    this.↵

2

            this.yValue = yValue;↵

3

            this.fillPath = fillPath;↵

4

            this.drawPath = drawPath;↵

5

            this.fillPaint = fillPaint;↵

6

            this.drawPaint = drawPaint;↵

7

            this.drawStroke = drawStroke;↵

8

            this.composite = composit↵

2

    series = series;↵

3

            this.series.addChangeListener(this);↵

9

    e;

4

            this.editable = editable;

See real code fragment |  | See real code fragment

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

1. {Non-refactorable}

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

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

   1

       this.series = series;

   1

       this.xValue = xValue;

   2

       this.series.addChangeListener(this);

   2

       this.yValue = yValue;

   3

       this.fillPath = fillPath;

   3 | this.fillPath = fillPath;
   3 | this.editable = editable;

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   fillPath | editable | VARIABLE_NAME_MISMATCH
   fillPath | editable | VARIABLE_NAME_MISMATCH

   Preondition Violations
   Expression this.fillPath is a field being modified, and thus it cannot be parameterized
   Expression this.editable is a field being modified, and thus it cannot be parameterized

   3

       this.editable = editable;

   4

       this.drawPath = drawPath;

   5

       this.fillPaint = fillPaint;

   6

       this.drawPaint = drawPaint;

   7

       this.drawStroke = drawStroke;

   8

       this.composite = composite;

   Precondition Violations (2)
   Row | Violation
   --- | ---
   1 | Expression this.fillPath is a field being modified, and thus it cannot be parameterized
   2 | Expression this.editable is a field being modified, and thus it cannot be parameterized