int result = 193; long temp = Double.doubleToLongBits(this.startAngle); result = 37 * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(this.extent); result = 37 * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(this.innerRadius); result = 37 * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(this.outerRadius); result = 37 * result + (int) (temp ^ (temp >>> 32)); result = 37 * result + HashUtilities.hashCodeForPaint( this.backgroundPaint); result = 37 * result + HashUtilities.hashCodeForPaint( this.foregroundPaint); result = 37 * result + this.stroke.hashCode(); return result;
int result = 193; result = 37 * result + ObjectUtilities.hashCode(this.background); result = 37 * result + ObjectUtilities.hashCode(this.cap); result = 37 * result + this.dialFrame.hashCode(); long temp = Double.doubleToLongBits(this.viewX); result = 37 * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(this.viewY); result = 37 * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(this.viewW); result = 37 * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(this.viewH); result = 37 * result + (int) (temp ^ (temp >>> 32)); return result;
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/dial/ArcDialFrame.java File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/dial/DialPlot.java
Method name: int hashCode() Method name: int hashCode()
Number of AST nodes: 13 Number of AST nodes: 13
1
int result = 193;
1
int result = 193;
2
        long temp = Double.doubleToLongBits(this.startAngle);
2
        
3
        result = 37 * result + (int) (temp ^ (temp >>> 32)
3
result = 37 * result + ObjectUtilities.hashCode(this.background);
4
        result = 37 * result + ObjectUtilities.hashCode(this.cap);
4
);
5
        result = 37 * result + this.dialFrame.hashCode();
5
        temp = Double.doubleToLongBits(this.extent);
6
        long temp = Double.doubleToLongBits(this.viewX);
6
        result = 37 * result + (int) (temp ^ (temp >>> 32));
7
        result = 37 * result + (int) (temp ^ (temp >>> 32));
7
        temp = Double.doubleToLongBits(this.innerRadius);
8
        temp = Double.doubleToLongBits(this.viewY);
8
        result = 37 * result + (int) (temp ^ (temp >>> 32));
9
        result = 37 * result + (int) (temp ^ (temp >>> 32));
9
        temp = Double.doubleToLongBits(this.outerRadius);
10
        temp = Double.doubleToLongBits(this.viewW);
10
        result = 37 * result + (int) (temp ^ (temp >>> 32));
11
        result = 37 * result + (int) (temp ^ (temp >>> 32));
11
        result = 37 * result + HashUtilities.hashCodeForPaint(
12
        
12
                this.backgroundPaint);
13
        result = 37 * result + HashUtilities.hashCodeForPaint(
14
                this.foregroundPaint);
15
        result = 37 * result + this.stroke.hashCode(
13
temp = Double.doubleToLongBits(this.viewH);
16
);
14
        result = 37 * result + (int) (temp ^ (temp >>> 32));
17
        return result;
15
        return result;
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes
Number of node comparisons97
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements12
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    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.background);
    Preondition Violations
    Unmatched statement result=37 * result + ObjectUtilities.hashCode(this.background); 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.background);
    2
    long temp = Double.doubleToLongBits(this.startAngle);
    2
    long temp = Double.doubleToLongBits(this.startAngle);
    5
    long temp = Double.doubleToLongBits(this.viewX);
    Differences
    Expression1Expression2Difference
    startAngleviewXVARIABLE_NAME_MISMATCH
    5
    long temp = Double.doubleToLongBits(this.viewX);
    3
    result = 37 * result + (int)(temp ^ (temp >>> 32));
    6
    result = 37 * result + (int)(temp ^ (temp >>> 32));
    4
    temp = Double.doubleToLongBits(this.extent);
    4
    temp = Double.doubleToLongBits(this.extent);
    7
    temp = Double.doubleToLongBits(this.viewY);
    Differences
    Expression1Expression2Difference
    extentviewYVARIABLE_NAME_MISMATCH
    7
    temp = Double.doubleToLongBits(this.viewY);
    5
    result = 37 * result + (int)(temp ^ (temp >>> 32));
    8
    result = 37 * result + (int)(temp ^ (temp >>> 32));
    6
    temp = Double.doubleToLongBits(this.innerRadius);
    6
    temp = Double.doubleToLongBits(this.innerRadius);
    9
    temp = Double.doubleToLongBits(this.viewW);
    Differences
    Expression1Expression2Difference
    innerRadiusviewWVARIABLE_NAME_MISMATCH
    9
    temp = Double.doubleToLongBits(this.viewW);
    7
    result = 37 * result + (int)(temp ^ (temp >>> 32));
    10
    result = 37 * result + (int)(temp ^ (temp >>> 32));
    8
    temp = Double.doubleToLongBits(this.outerRadius);
    8
    temp = Double.doubleToLongBits(this.outerRadius);
    11
    temp = Double.doubleToLongBits(this.viewH);
    Differences
    Expression1Expression2Difference
    outerRadiusviewHVARIABLE_NAME_MISMATCH
    11
    temp = Double.doubleToLongBits(this.viewH);
    9
    result = 37 * result + (int)(temp ^ (temp >>> 32));
    12
    result = 37 * result + (int)(temp ^ (temp >>> 32));
    10
    result = 37 * result + HashUtilities.hashCodeForPaint(this.backgroundPaint);
    10
    result = 37 * result + HashUtilities.hashCodeForPaint(this.backgroundPaint);
    4
    result = 37 * result + this.dialFrame.hashCode();
    Differences
    Expression1Expression2Difference
    HashUtilities.hashCodeForPaint(this.backgroundPaint)this.dialFrame.hashCode()TYPE_COMPATIBLE_REPLACEMENT
    4
    result = 37 * result + this.dialFrame.hashCode();
    11
    result = 37 * result + HashUtilities.hashCodeForPaint(this.foregroundPaint);
    11
    result = 37 * result + HashUtilities.hashCodeForPaint(this.foregroundPaint);
    Preondition Violations
    Unmatched statement result=37 * result + HashUtilities.hashCodeForPaint(this.foregroundPaint); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
                                                                                                                                                                
    12
    result = 37 * result + this.stroke.hashCode();
    12
    result = 37 * result + this.stroke.hashCode();
    3
    result = 37 * result + ObjectUtilities.hashCode(this.cap);
    Differences
    Expression1Expression2Difference
    this.stroke.hashCode()ObjectUtilities.hashCode(this.cap)TYPE_COMPATIBLE_REPLACEMENT
    3
    result = 37 * result + ObjectUtilities.hashCode(this.cap);
    13
    return result;
    13
    return result;
    Precondition Violations (2)
    Row Violation
    1Unmatched statement result=37 * result + ObjectUtilities.hashCode(this.background); 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.foregroundPaint); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted