stream.defaultReadObject(); this.upArrow = SerialUtilities.readShape(stream); this.downArrow = SerialUtilities.readShape(stream); this.leftArrow = SerialUtilities.readShape(stream); this.rightArrow = SerialUtilities.readShape(stream);
stream.defaultReadObject(); this.paint = SerialUtilities.readPaint(stream); this.backgroundPaint = SerialUtilities.readPaint(stream); this.outlinePaint = SerialUtilities.readPaint(stream); this.outlineStroke = SerialUtilities.readStroke(stream);
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/ValueAxis.java File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/dial/DialValueIndicator.java
Method name: void readObject(ObjectInputStream) Method name: void readObject(ObjectInputStream)
Number of AST nodes: 5 Number of AST nodes: 5
1
stream.defaultReadObject();
1
stream.defaultReadObject();
2
        this.upArrow = SerialUtilities.readShape(stream);
2
        this.paint = SerialUtilities.readPaint(stream);
3
        this.downArrow = SerialUtilities.readShape(stream);
3
        this.backgroundPaint = SerialUtilities.readPaint(stream);
4
        this.leftArrow = SerialUtilities.readShape(stream);
4
        this.outlinePaint = SerialUtilities.readPaint(stream);
5
        this.rightArrow = SerialUtilities.readShape(stream);
5
        this.outlineStroke = SerialUtilities.readStroke(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 comparisons25
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment4
    Number of unmapped statements in the second code fragment4
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    stream.defaultReadObject();
    1
    stream.defaultReadObject();
                                                                                                    
    2
    this.paint = SerialUtilities.readPaint(stream);
    Preondition Violations
    Unmatched statement this.paint=SerialUtilities.readPaint(stream); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    2
    this.paint = SerialUtilities.readPaint(stream);
    2
    this.upArrow = SerialUtilities.readShape(stream);
    2
    this.upArrow = SerialUtilities.readShape(stream);
    Preondition Violations
    Unmatched statement this.upArrow=SerialUtilities.readShape(stream); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
                                                                                                        
                                                                                                                        
    3
    this.backgroundPaint = SerialUtilities.readPaint(stream);
    Preondition Violations
    Unmatched statement this.backgroundPaint=SerialUtilities.readPaint(stream); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    3
    this.backgroundPaint = SerialUtilities.readPaint(stream);
    3
    this.downArrow = SerialUtilities.readShape(stream);
    3
    this.downArrow = SerialUtilities.readShape(stream);
    Preondition Violations
    Unmatched statement this.downArrow=SerialUtilities.readShape(stream); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                                                            
                                                                                                                  
    4
    this.outlinePaint = SerialUtilities.readPaint(stream);
    Preondition Violations
    Unmatched statement this.outlinePaint=SerialUtilities.readPaint(stream); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    4
    this.outlinePaint = SerialUtilities.readPaint(stream);
    4
    this.leftArrow = SerialUtilities.readShape(stream);
    4
    this.leftArrow = SerialUtilities.readShape(stream);
    Preondition Violations
    Unmatched statement this.leftArrow=SerialUtilities.readShape(stream); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                                                            
                                                                                                                      
    5
    this.outlineStroke = SerialUtilities.readStroke(stream);
    Preondition Violations
    Unmatched statement this.outlineStroke=SerialUtilities.readStroke(stream); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    5
    this.outlineStroke = SerialUtilities.readStroke(stream);
    5
    this.rightArrow = SerialUtilities.readShape(stream);
    5
    this.rightArrow = SerialUtilities.readShape(stream);
    Preondition Violations
    Unmatched statement this.rightArrow=SerialUtilities.readShape(stream); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                                                              
    Precondition Violations (8)
    Row Violation
    1Unmatched statement this.paint=SerialUtilities.readPaint(stream); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    2Unmatched statement this.upArrow=SerialUtilities.readShape(stream); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    3Unmatched statement this.backgroundPaint=SerialUtilities.readPaint(stream); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    4Unmatched statement this.downArrow=SerialUtilities.readShape(stream); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    5Unmatched statement this.outlinePaint=SerialUtilities.readPaint(stream); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    6Unmatched statement this.leftArrow=SerialUtilities.readShape(stream); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    7Unmatched statement this.outlineStroke=SerialUtilities.readStroke(stream); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    8Unmatched statement this.rightArrow=SerialUtilities.readShape(stream); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted