1465-1-3

stream.defaultWriteObject(); SerialUtilities.writePaint(this.paint, stream); SerialUtilities.writeStroke(this.domainGridlineStroke, stream); SerialUtilities.writePaint(this.domainGridlinePaint, stream); SerialUtilities.writeStroke(this.rangeGridlineStroke, stream); SerialUtilities.writePaint(this.rangeGridlinePaint, stream);
stream.defaultWriteObject(); SerialUtilities.writeStroke(this.angleGridlineStroke, stream); SerialUtilities.writePaint(this.angleGridlinePaint, stream); SerialUtilities.writeStroke(this.radiusGridlineStroke, stream); SerialUtilities.writePaint(this.radiusGridlinePaint, stream); SerialUtilities.writePaint(this.angleLabelPaint, stream);

Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/FastScatterPlot.java |  | File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/PolarPlot.java
Method name: `void writeObject(ObjectOutputStream)` |  | Method name: `void writeObject(ObjectOutputStream)`
Number of AST nodes: 6 |  | Number of AST nodes: 6

1

    stream.defaultWriteObject();↵

1

    stream.defaultWriteObject();↵

2

            SerialUtilities.writePaint(this.paint, stream);↵

2

            SerialUtilities.writeStroke(this.angleGridlineStroke, stream);↵

3

            SerialUtilities.writeStroke(this.domainGridlineStroke, stream);↵

3

            SerialUtilities.writePaint(this.angleGridlinePaint, stream);↵

4

            SerialUtilities.writePaint(this.domainGridlinePaint, stream);↵

4

            SerialUtilities.writeStroke(this.radiusGridlineStroke, stream);↵

5

            SerialUtilities.writeStroke(this.rangeGridlineStroke, stream);↵

5

            SerialUtilities.writePaint(this.radiusGridlinePaint, stream);↵

6

            SerialUtilities.writePaint(this.rangeGridlinePaint, stream);

6

            SerialUtilities.writePaint(this.angleLabelPaint, stream);

See real code fragment |  | See real code fragment

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

1. {Refactorable}

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

       stream.defaultWriteObject();

   1

       stream.defaultWriteObject();

   2

       SerialUtilities.writePaint(this.paint, stream);

   2 | SerialUtilities.writePaint(this.paint, stream);
   3 | SerialUtilities.writePaint(this.angleGridlinePaint, stream);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   paint | angleGridlinePaint | VARIABLE_NAME_MISMATCH

   3

       SerialUtilities.writePaint(this.angleGridlinePaint, stream);

   3

       SerialUtilities.writeStroke(this.domainGridlineStroke, stream);

   3 | SerialUtilities.writeStroke(this.domainGridlineStroke, stream);
   2 | SerialUtilities.writeStroke(this.angleGridlineStroke, stream);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   domainGridlineStroke | angleGridlineStroke | VARIABLE_NAME_MISMATCH

   2

       SerialUtilities.writeStroke(this.angleGridlineStroke, stream);

   4

       SerialUtilities.writePaint(this.domainGridlinePaint, stream);

   4 | SerialUtilities.writePaint(this.domainGridlinePaint, stream);
   5 | SerialUtilities.writePaint(this.radiusGridlinePaint, stream);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   domainGridlinePaint | radiusGridlinePaint | VARIABLE_NAME_MISMATCH

   5

       SerialUtilities.writePaint(this.radiusGridlinePaint, stream);

   5

       SerialUtilities.writeStroke(this.rangeGridlineStroke, stream);

   5 | SerialUtilities.writeStroke(this.rangeGridlineStroke, stream);
   4 | SerialUtilities.writeStroke(this.radiusGridlineStroke, stream);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   rangeGridlineStroke | radiusGridlineStroke | VARIABLE_NAME_MISMATCH

   4

       SerialUtilities.writeStroke(this.radiusGridlineStroke, stream);

   6

       SerialUtilities.writePaint(this.rangeGridlinePaint, stream);

   6 | SerialUtilities.writePaint(this.rangeGridlinePaint, stream);
   6 | SerialUtilities.writePaint(this.angleLabelPaint, stream);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   rangeGridlinePaint | angleLabelPaint | VARIABLE_NAME_MISMATCH

   6

       SerialUtilities.writePaint(this.angleLabelPaint, stream);

   Precondition Violations (0)
   Row | Violation
   --- | ---