371-9-10

this.y = y; this.xLow = xLow; this.xHigh = xHigh;
this.y = y; this.yLow = yLow; this.yHigh = yHigh;

Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/data/xy/YWithXInterval.java |  | File path: /jfreechart-1.0.10/src/org/jfree/data/xy/YInterval.java
Method name: `void YWithXInterval(double, double, double)` |  | Method name: `void YInterval(double, double, double)`
Number of AST nodes: 3 |  | Number of AST nodes: 3

1

    this.y = y;↵

1

    this.y = y;↵

2

            this.xLow = xLow;↵

2

            this.yLow = yLow;↵

3

            this.xHigh = xHigh;

3

            this.yHigh = yHigh;

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

1. {Non-refactorable}

   Mapping Summary
   Number of mapped statements | 3
   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 2

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

   1

       this.y = y;

   1

       this.y = y;

   2

       this.xLow = xLow;

   2 | this.xLow = xLow;
   2 | this.yLow = yLow;

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   xLow | yLow | VARIABLE_NAME_MISMATCH
   xLow | yLow | VARIABLE_NAME_MISMATCH

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

   2

       this.yLow = yLow;

   3

       this.xHigh = xHigh;

   3 | this.xHigh = xHigh;
   3 | this.yHigh = yHigh;

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   xHigh | yHigh | VARIABLE_NAME_MISMATCH
   xHigh | yHigh | VARIABLE_NAME_MISMATCH

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

   3

       this.yHigh = yHigh;

   Precondition Violations (4)
   Row | Violation
   --- | ---
   1 | Expression this.xLow is a field being modified, and thus it cannot be parameterized
   2 | Expression this.yLow is a field being modified, and thus it cannot be parameterized
   3 | Expression this.xHigh is a field being modified, and thus it cannot be parameterized
   4 | Expression this.yHigh is a field being modified, and thus it cannot be parameterized