371-2-4

this.key = key; this.angle = angle; this.baseY = baseY; this.allocatedY = baseY; this.label = label; this.labelHeight = labelHeight; this.gap = gap; this.linkPercent = linkPercent;
this.axis = axis; this.topOuterGap = topOuterGap; this.topInnerGap = topInnerGap; this.bottomOuterGap = bottomOuterGap; this.bottomInnerGap = bottomInnerGap; this.font = font; this.markers = new java.util.ArrayList();

Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/PieLabelRecord.java |  | File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/MarkerAxisBand.java
Method name: `void PieLabelRecord(Comparable, double, double, TextBox, double, double, double)` |  | Method name: `void MarkerAxisBand(NumberAxis, double, double, double, double, Font)`
Number of AST nodes: 8 |  | Number of AST nodes: 7

1

    this.key = key;↵

1

    this.↵

2

            this.angle = angle;↵

3

            this.baseY = baseY;↵

4

            this.allocatedY = baseY↵

2

    axis = axis;↵

3

            this.topOuterGap = topOuterGap;↵

5

    ;↵

4

            this.topInnerGap = topInnerGap;↵

6

            this.label = label;↵

5

            this.bottomOuterGap = bottomOuterGap;↵

7

            this.labelHeight = labelHeight;↵

6

            this.bottomInnerGap = bottomInnerGap;↵

8

            this.gap = gap;↵

7

            this.font = font;↵

9

            this.linkPercent = linkPercent;

8

            this.markers = new java.util.ArrayList();

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 | 38

1. {Non-refactorable}

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

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

   1

       this.axis = axis;

   1

       this.key = key;

   2

       this.angle = angle;

   2 | this.angle = angle;
   2 | this.topOuterGap = topOuterGap;

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   angle | topOuterGap | VARIABLE_NAME_MISMATCH
   angle | topOuterGap | VARIABLE_NAME_MISMATCH

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

   2

       this.topOuterGap = topOuterGap;

   3

       this.baseY = baseY;

   3 | this.baseY = baseY;
   3 | this.topInnerGap = topInnerGap;

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   baseY | topInnerGap | VARIABLE_NAME_MISMATCH
   baseY | topInnerGap | VARIABLE_NAME_MISMATCH

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

   3

       this.topInnerGap = topInnerGap;

   4

       this.allocatedY = baseY;

   4 | this.allocatedY = baseY;
   4 | this.bottomOuterGap = bottomOuterGap;

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   allocatedY | bottomOuterGap | VARIABLE_NAME_MISMATCH
   baseY | bottomOuterGap | VARIABLE_NAME_MISMATCH

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

   4

       this.bottomOuterGap = bottomOuterGap;

   5

       this.label = label;

   6

       this.labelHeight = labelHeight;

   6 | this.labelHeight = labelHeight;
   5 | this.bottomInnerGap = bottomInnerGap;

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   labelHeight | bottomInnerGap | VARIABLE_NAME_MISMATCH
   labelHeight | bottomInnerGap | VARIABLE_NAME_MISMATCH

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

   5

       this.bottomInnerGap = bottomInnerGap;

   6

       this.font = font;

   7

       this.markers = new java.util.ArrayList();

   7

       this.gap = gap;

   8

       this.linkPercent = linkPercent;

   Precondition Violations (8)
   Row | Violation
   --- | ---
   1 | Expression this.angle is a field being modified, and thus it cannot be parameterized
   2 | Expression this.topOuterGap is a field being modified, and thus it cannot be parameterized
   3 | Expression this.baseY is a field being modified, and thus it cannot be parameterized
   4 | Expression this.topInnerGap is a field being modified, and thus it cannot be parameterized
   5 | Expression this.allocatedY is a field being modified, and thus it cannot be parameterized
   6 | Expression this.bottomOuterGap is a field being modified, and thus it cannot be parameterized
   7 | Expression this.labelHeight is a field being modified, and thus it cannot be parameterized
   8 | Expression this.bottomInnerGap is a field being modified, and thus it cannot be parameterized