371-6-7

this.xLow = xLow; this.xHigh = xHigh; this.y = y; this.yLow = yLow; this.yHigh = yHigh;
this.open = open; this.close = close; this.high = high; this.low = low;

Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/data/xy/XYInterval.java |  | File path: /jfreechart-1.0.10/src/org/jfree/data/time/ohlc/OHLC.java
Method name: `void XYInterval(double, double, double, double, double)` |  | Method name: `void OHLC(double, double, double, double)`
Number of AST nodes: 5 |  | Number of AST nodes: 4

1

    this.xLow = xLow;↵

1

    this.open = open;↵

2

            this.xHigh = xHigh;↵

2

            this.close = close;↵

3

            this.y = y;↵

3

            this.high = high;↵

4

            this.yLow = yLow;↵

4

            this.low = low;

5

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

1. {Non-refactorable}

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

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

   1

       this.xLow = xLow;

   1 | this.xLow = xLow;
   1 | this.open = open;

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

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

   1

       this.open = open;

   2

       this.xHigh = xHigh;

   2 | this.xHigh = xHigh;
   2 | this.close = close;

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

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

   2

       this.close = close;

   3

       this.y = y;

   3 | this.y = y;
   3 | this.high = high;

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   y | high | VARIABLE_NAME_MISMATCH
   y | high | VARIABLE_NAME_MISMATCH

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

   3

       this.high = high;

   4

       this.yLow = yLow;

   4 | this.yLow = yLow;
   4 | this.low = low;

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

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

   4

       this.low = low;

   5

       this.yHigh = yHigh;

   Precondition Violations (8)
   Row | Violation
   --- | ---
   1 | Expression this.xLow is a field being modified, and thus it cannot be parameterized
   2 | Expression this.open 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.close is a field being modified, and thus it cannot be parameterized
   5 | Expression this.y is a field being modified, and thus it cannot be parameterized
   6 | Expression this.high is a field being modified, and thus it cannot be parameterized
   7 | Expression this.yLow is a field being modified, and thus it cannot be parameterized
   8 | Expression this.low is a field being modified, and thus it cannot be parameterized