371-4-7

this.axis = axis; this.topOuterGap = topOuterGap; this.topInnerGap = topInnerGap; this.bottomOuterGap = bottomOuterGap; this.bottomInnerGap = bottomInnerGap; this.font = font; this.markers = new java.util.ArrayList();
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/chart/axis/MarkerAxisBand.java |  | File path: /jfreechart-1.0.10/src/org/jfree/data/time/ohlc/OHLC.java
Method name: `void MarkerAxisBand(NumberAxis, double, double, double, double, Font)` |  | Method name: `void OHLC(double, double, double, double)`
Number of AST nodes: 7 |  | Number of AST nodes: 4

1

    this.axis = axis;↵

1

    this.↵

2

            this.topOuterGap = topOuterGap;↵

2

    open = open;↵

3

            this.topInnerGap = topInnerGap;↵

3

            this.↵

4

            this.bottomOuterGap = bottomOuterGap;↵

5

            this.bottomInnerGap = bottomInnerGap↵

4

    close = close;↵

6

    ;↵

5

            this.high = high;↵

7

            this.font = font;↵

6

            this.↵

8

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

7

    low = low;

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

1. {Non-refactorable}

   Mapping Summary
   Number of mapped statements | 4
   Number of unmapped statements in the first code fragment | 3
   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.axis = axis;

   2

       this.topOuterGap = topOuterGap;

   2 | this.topOuterGap = topOuterGap;
   2 | this.close = close;

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

   Preondition Violations
   Expression this.topOuterGap 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.topInnerGap = topInnerGap;

   3 | this.topInnerGap = topInnerGap;
   3 | this.high = high;

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

   Preondition Violations
   Expression this.topInnerGap 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.bottomOuterGap = bottomOuterGap;

   4 | this.bottomOuterGap = bottomOuterGap;
   4 | this.low = low;

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

   Preondition Violations
   Expression this.bottomOuterGap 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.bottomInnerGap = bottomInnerGap;

   5 | this.bottomInnerGap = bottomInnerGap;
   1 | this.open = open;

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

   Preondition Violations
   Expression this.bottomInnerGap 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;

   6

       this.font = font;

   7

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

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