stream.defaultWriteObject(); SerialUtilities.writeStroke(this.domainGridlineStroke, stream); SerialUtilities.writePaint(this.domainGridlinePaint, stream); SerialUtilities.writeStroke(this.rangeGridlineStroke, stream); SerialUtilities.writePaint(this.rangeGridlinePaint, stream); SerialUtilities.writeStroke(this.rangeCrosshairStroke, stream); SerialUtilities.writePaint(this.rangeCrosshairPaint, stream);
stream.defaultWriteObject(); SerialUtilities.writePaint(this.dialBackgroundPaint, stream); SerialUtilities.writePaint(this.dialOutlinePaint, stream); SerialUtilities.writePaint(this.needlePaint, stream); SerialUtilities.writePaint(this.valuePaint, stream); SerialUtilities.writePaint(this.tickPaint, stream); SerialUtilities.writePaint(this.tickLabelPaint, stream);
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/CategoryPlot.java File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/MeterPlot.java
Method name: void writeObject(ObjectOutputStream) Method name: void writeObject(ObjectOutputStream)
Number of AST nodes: 7 Number of AST nodes: 7
1
stream.defaultWriteObject();
1
stream.defaultWriteObject();
2
        SerialUtilities.writeStroke(this.domainGridlineStroke, stream);
2
        SerialUtilities.writePaint(this.dialBackgroundPaint, stream);
3
        SerialUtilities.writePaint(this.domainGridlinePaint, stream);
3
        SerialUtilities.writePaint(this.dialOutlinePaint, stream);
4
        SerialUtilities.writeStroke(this.rangeGridlineStroke, stream);
4
        SerialUtilities.writePaint(this.needlePaint, stream);
5
        SerialUtilities.writePaint(this.rangeGridlinePaint, stream);
5
        SerialUtilities.writePaint(this.valuePaint, stream);
6
        SerialUtilities.writeStroke(this.rangeCrosshairStroke, stream);
6
        SerialUtilities.writePaint(this.tickPaint, stream);
7
        SerialUtilities.writePaint(this.rangeCrosshairPaint, stream);
7
        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 having the same super class
Number of node comparisons49
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements4
    Number of unmapped statements in the first code fragment3
    Number of unmapped statements in the second code fragment3
    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.dialBackgroundPaint, stream);
    Preondition Violations
    Unmatched statement SerialUtilities.writePaint(this.dialBackgroundPaint,stream); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    2
    SerialUtilities.writePaint(this.dialBackgroundPaint, stream);
    2
    SerialUtilities.writeStroke(this.domainGridlineStroke, stream);
    2
    SerialUtilities.writeStroke(this.domainGridlineStroke, stream);
    Preondition Violations
    Unmatched statement SerialUtilities.writeStroke(this.domainGridlineStroke,stream); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
                                                                                                                                      
    3
    SerialUtilities.writePaint(this.domainGridlinePaint, stream);
    3
    SerialUtilities.writePaint(this.domainGridlinePaint, stream);
    3
    SerialUtilities.writePaint(this.dialOutlinePaint, stream);
    Differences
    Expression1Expression2Difference
    domainGridlinePaintdialOutlinePaintVARIABLE_NAME_MISMATCH
    3
    SerialUtilities.writePaint(this.dialOutlinePaint, stream);
                                                                                                                  
    4
    SerialUtilities.writePaint(this.needlePaint, stream);
    Preondition Violations
    Unmatched statement SerialUtilities.writePaint(this.needlePaint,stream); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    4
    SerialUtilities.writePaint(this.needlePaint, stream);
    4
    SerialUtilities.writeStroke(this.rangeGridlineStroke, stream);
    4
    SerialUtilities.writeStroke(this.rangeGridlineStroke, stream);
    Preondition Violations
    Unmatched statement SerialUtilities.writeStroke(this.rangeGridlineStroke,stream); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
                                                                                                                                    
    5
    SerialUtilities.writePaint(this.rangeGridlinePaint, stream);
    5
    SerialUtilities.writePaint(this.rangeGridlinePaint, stream);
    5
    SerialUtilities.writePaint(this.valuePaint, stream);
    Differences
    Expression1Expression2Difference
    rangeGridlinePaintvaluePaintVARIABLE_NAME_MISMATCH
    5
    SerialUtilities.writePaint(this.valuePaint, stream);
                                                                                                              
    6
    SerialUtilities.writePaint(this.tickPaint, stream);
    Preondition Violations
    Unmatched statement SerialUtilities.writePaint(this.tickPaint,stream); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    6
    SerialUtilities.writePaint(this.tickPaint, stream);
    6
    SerialUtilities.writeStroke(this.rangeCrosshairStroke, stream);
    6
    SerialUtilities.writeStroke(this.rangeCrosshairStroke, stream);
    Preondition Violations
    Unmatched statement SerialUtilities.writeStroke(this.rangeCrosshairStroke,stream); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
                                                                                                                                      
    7
    SerialUtilities.writePaint(this.rangeCrosshairPaint, stream);
    7
    SerialUtilities.writePaint(this.rangeCrosshairPaint, stream);
    7
    SerialUtilities.writePaint(this.tickLabelPaint, stream);
    Differences
    Expression1Expression2Difference
    rangeCrosshairPainttickLabelPaintVARIABLE_NAME_MISMATCH
    7
    SerialUtilities.writePaint(this.tickLabelPaint, stream);
    Precondition Violations (6)
    Row Violation
    1Unmatched statement SerialUtilities.writePaint(this.dialBackgroundPaint,stream); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    2Unmatched statement SerialUtilities.writeStroke(this.domainGridlineStroke,stream); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    3Unmatched statement SerialUtilities.writePaint(this.needlePaint,stream); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    4Unmatched statement SerialUtilities.writeStroke(this.rangeGridlineStroke,stream); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    5Unmatched statement SerialUtilities.writePaint(this.tickPaint,stream); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    6Unmatched statement SerialUtilities.writeStroke(this.rangeCrosshairStroke,stream); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted