int result = 193; result = 37 * result + HashUtilities.hashCodeForPaint(this.fillPaint); result = 37 * result + HashUtilities.hashCodeForPaint( this.outlinePaint); result = 37 * result + this.outlineStroke.hashCode(); return result;
int result = 193; result = 37 * result + ObjectUtilities.hashCode(this.position); result = 37 * result + ObjectUtilities.hashCode(this.horizontalAlignment); result = 37 * result + ObjectUtilities.hashCode(this.verticalAlignment); return result;
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/dial/DialCap.java File path: /jfreechart-1.0.10/src/org/jfree/chart/title/Title.java
Method name: int hashCode() Method name: int hashCode()
Number of AST nodes: 5 Number of AST nodes: 5
1
int result = 193;
1
int result = 193;
2
        result = 37 * result + HashUtilities.hashCodeForPaint(this.fillPaint);
2
        result = 37 * result + ObjectUtilities.hashCode(this.position);    
3
        result = 37 * result + HashUtilities.hashCodeForPaint(
3
        result = 37 * result 
4
                this.outlinePaint);
5
        result = 37 * result + this.outlineStroke.hashCode(
4
                + ObjectUtilities.hashCode(this.horizontalAlignment);    
6
);
5
        result = 37 * result + ObjectUtilities.hashCode(this.verticalAlignment);
7
        return result;
6
        return result;
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 statements3
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    int result = 193;
    1
    int result = 193;
                                                                                                                                    
    2
    result = 37 * result + ObjectUtilities.hashCode(this.position);
    Preondition Violations
    Unmatched statement result=37 * result + ObjectUtilities.hashCode(this.position); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    2
    result = 37 * result + ObjectUtilities.hashCode(this.position);
    2
    result = 37 * result + HashUtilities.hashCodeForPaint(this.fillPaint);
    2
    result = 37 * result + HashUtilities.hashCodeForPaint(this.fillPaint);
    Preondition Violations
    Unmatched statement result=37 * result + HashUtilities.hashCodeForPaint(this.fillPaint); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
                                                                                                                                                  
                                                                                                                                                          
    3
    result = 37 * result + ObjectUtilities.hashCode(this.horizontalAlignment);
    3
    result = 37 * result + HashUtilities.hashCodeForPaint(this.outlinePaint);
                                                                                                                                                        
    4
    result = 37 * result + this.outlineStroke.hashCode();
    4
    result = 37 * result + this.outlineStroke.hashCode();
    4
    result = 37 * result + ObjectUtilities.hashCode(this.verticalAlignment);
    Differences
    Expression1Expression2Difference
    this.outlineStroke.hashCode()ObjectUtilities.hashCode(this.verticalAlignment)TYPE_COMPATIBLE_REPLACEMENT
    4
    result = 37 * result + ObjectUtilities.hashCode(this.verticalAlignment);
    5
    return result;
    5
    return result;
    Precondition Violations (2)
    Row Violation
    1Unmatched statement result=37 * result + ObjectUtilities.hashCode(this.position); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    2Unmatched statement result=37 * result + HashUtilities.hashCodeForPaint(this.fillPaint); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted