stream.defaultWriteObject(); SerialUtilities.writePaint(this.paint, stream); SerialUtilities.writeStroke(this.stroke, stream); SerialUtilities.writePaint(this.outlinePaint, stream); SerialUtilities.writeStroke(this.outlineStroke, stream); SerialUtilities.writePaint(this.labelPaint, stream);
stream.defaultWriteObject(); SerialUtilities.writePaint(this.majorTickPaint, stream); SerialUtilities.writeStroke(this.majorTickStroke, stream); SerialUtilities.writePaint(this.minorTickPaint, stream); SerialUtilities.writeStroke(this.minorTickStroke, stream); SerialUtilities.writePaint(this.tickLabelPaint, stream);
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/Marker.java File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/dial/StandardDialScale.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.writePaint(this.majorTickPaint, stream);
3
        SerialUtilities.writeStroke(this.stroke, stream);
3
        SerialUtilities.writeStroke(this.majorTickStroke, stream);
4
        SerialUtilities.writePaint(this.outlinePaint, stream);
4
        SerialUtilities.writePaint(this.minorTickPaint, stream);
5
        SerialUtilities.writeStroke(this.outlineStroke, stream);
5
        SerialUtilities.writeStroke(this.minorTickStroke, stream);
6
        SerialUtilities.writePaint(this.labelPaint, stream);
6
        SerialUtilities.writePaint(this.tickLabelPaint, stream);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes
Number of node comparisons36
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements6
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 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);
    2
    SerialUtilities.writePaint(this.majorTickPaint, stream);
    Differences
    Expression1Expression2Difference
    paintmajorTickPaintVARIABLE_NAME_MISMATCH
    2
    SerialUtilities.writePaint(this.majorTickPaint, stream);
    3
    SerialUtilities.writeStroke(this.stroke, stream);
    3
    SerialUtilities.writeStroke(this.stroke, stream);
    3
    SerialUtilities.writeStroke(this.majorTickStroke, stream);
    Differences
    Expression1Expression2Difference
    strokemajorTickStrokeVARIABLE_NAME_MISMATCH
    3
    SerialUtilities.writeStroke(this.majorTickStroke, stream);
    4
    SerialUtilities.writePaint(this.outlinePaint, stream);
    4
    SerialUtilities.writePaint(this.outlinePaint, stream);
    4
    SerialUtilities.writePaint(this.minorTickPaint, stream);
    Differences
    Expression1Expression2Difference
    outlinePaintminorTickPaintVARIABLE_NAME_MISMATCH
    4
    SerialUtilities.writePaint(this.minorTickPaint, stream);
    5
    SerialUtilities.writeStroke(this.outlineStroke, stream);
    5
    SerialUtilities.writeStroke(this.outlineStroke, stream);
    5
    SerialUtilities.writeStroke(this.minorTickStroke, stream);
    Differences
    Expression1Expression2Difference
    outlineStrokeminorTickStrokeVARIABLE_NAME_MISMATCH
    5
    SerialUtilities.writeStroke(this.minorTickStroke, stream);
    6
    SerialUtilities.writePaint(this.labelPaint, stream);
    6
    SerialUtilities.writePaint(this.labelPaint, stream);
    6
    SerialUtilities.writePaint(this.tickLabelPaint, stream);
    Differences
    Expression1Expression2Difference
    labelPainttickLabelPaintVARIABLE_NAME_MISMATCH
    6
    SerialUtilities.writePaint(this.tickLabelPaint, stream);
    Precondition Violations (0)
    Row Violation