int result = 193; long temp = Double.doubleToLongBits(this.angle); result = 37 * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(this.tipRadius); result = 37 * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(this.baseRadius); result = 37 * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(this.arrowLength); result = 37 * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(this.arrowWidth); result = 37 * result + (int) (temp ^ (temp >>> 32)); result = 37 * result + HashUtilities.hashCodeForPaint(this.arrowPaint); result = 37 * result + this.arrowStroke.hashCode(); temp = Double.doubleToLongBits(this.labelOffset); result = 37 * result + (int) (temp ^ (temp >>> 32)); return result;
int result = super.hashCode(); long temp = Double.doubleToLongBits(this.angle); result = 37 * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(this.tipRadius); result = 37 * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(this.baseRadius); result = 37 * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(this.arrowLength); result = 37 * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(this.arrowWidth); result = 37 * result + (int) (temp ^ (temp >>> 32)); result = result * 37 + HashUtilities.hashCodeForPaint(this.arrowPaint); result = result * 37 + this.arrowStroke.hashCode(); temp = Double.doubleToLongBits(this.labelOffset); result = 37 * result + (int) (temp ^ (temp >>> 32)); return super.hashCode();
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/annotations/CategoryPointerAnnotation.java File path: /jfreechart-1.0.10/src/org/jfree/chart/annotations/XYPointerAnnotation.java
Method name: int hashCode() Method name: int hashCode()
Number of AST nodes: 16 Number of AST nodes: 16
1
int result = 193;
1
int result = super.hashCode();
2
        long temp = Double.doubleToLongBits(this.angle);
2
        long temp = Double.doubleToLongBits(this.angle);
3
        result = 37 * result + (int) (temp ^ (temp >>> 32));
3
        result = 37 * result + (int) (temp ^ (temp >>> 32));
4
        temp = Double.doubleToLongBits(this.tipRadius);
4
        temp = Double.doubleToLongBits(this.tipRadius);
5
        result = 37 * result + (int) (temp ^ (temp >>> 32));
5
        result = 37 * result + (int) (temp ^ (temp >>> 32));
6
        temp = Double.doubleToLongBits(this.baseRadius);
6
        temp = Double.doubleToLongBits(this.baseRadius);
7
        result = 37 * result + (int) (temp ^ (temp >>> 32));
7
        result = 37 * result + (int) (temp ^ (temp >>> 32));
8
        temp = Double.doubleToLongBits(this.arrowLength);
8
        temp = Double.doubleToLongBits(this.arrowLength);
9
        result = 37 * result + (int) (temp ^ (temp >>> 32));
9
        result = 37 * result + (int) (temp ^ (temp >>> 32));
10
        temp = Double.doubleToLongBits(this.arrowWidth);
10
        temp = Double.doubleToLongBits(this.arrowWidth);
11
        result = 37 * result + (int) (temp ^ (temp >>> 32));
11
        result = 37 * result + (int) (temp ^ (temp >>> 32));
12
        result = 37 * result + HashUtilities.hashCodeForPaint(this.arrowPaint);
12
        result = result * 37 + HashUtilities.hashCodeForPaint(this.arrowPaint);
13
        result = 37 * result + this.arrowStroke.hashCode();
13
        result = result * 37 + this.arrowStroke.hashCode();
14
        temp = Double.doubleToLongBits(this.labelOffset);
14
        temp = Double.doubleToLongBits(this.labelOffset);
15
        result = 37 * result + (int) (temp ^ (temp >>> 32));
15
        result = 37 * result + (int) (temp ^ (temp >>> 32));
16
        return result;
16
        return super.hashCode();
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 comparisons136
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements16
    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
    int result = 193;
    1
    int result = 193;
    1
    int result = super.hashCode();
    Differences
    Expression1Expression2Difference
    193super.hashCode()TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Super method call int result=super.hashCode(); cannot be extracted from method
    1
    int result = super.hashCode();
    2
    long temp = Double.doubleToLongBits(this.angle);
    2
    long temp = Double.doubleToLongBits(this.angle);
    3
    result = 37 * result + (int)(temp ^ (temp >>> 32));
    3
    result = 37 * result + (int)(temp ^ (temp >>> 32));
    4
    temp = Double.doubleToLongBits(this.tipRadius);
    4
    temp = Double.doubleToLongBits(this.tipRadius);
    5
    result = 37 * result + (int)(temp ^ (temp >>> 32));
    5
    result = 37 * result + (int)(temp ^ (temp >>> 32));
    6
    temp = Double.doubleToLongBits(this.baseRadius);
    6
    temp = Double.doubleToLongBits(this.baseRadius);
    7
    result = 37 * result + (int)(temp ^ (temp >>> 32));
    7
    result = 37 * result + (int)(temp ^ (temp >>> 32));
    8
    temp = Double.doubleToLongBits(this.arrowLength);
    8
    temp = Double.doubleToLongBits(this.arrowLength);
    9
    result = 37 * result + (int)(temp ^ (temp >>> 32));
    9
    result = 37 * result + (int)(temp ^ (temp >>> 32));
    10
    temp = Double.doubleToLongBits(this.arrowWidth);
    10
    temp = Double.doubleToLongBits(this.arrowWidth);
    11
    result = 37 * result + (int)(temp ^ (temp >>> 32));
    11
    result = 37 * result + (int)(temp ^ (temp >>> 32));
    12
    result = 37 * result + HashUtilities.hashCodeForPaint(this.arrowPaint);
    12
    result = 37 * result + HashUtilities.hashCodeForPaint(this.arrowPaint);
    12
    result = result * 37 + HashUtilities.hashCodeForPaint(this.arrowPaint);
    Differences
    Expression1Expression2Difference
    37resultTYPE_COMPATIBLE_REPLACEMENT
    result37TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression result cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression result cannot be parameterized, because it has dependencies to/from statements that will be extracted
    12
    result = result * 37 + HashUtilities.hashCodeForPaint(this.arrowPaint);
    13
    result = 37 * result + this.arrowStroke.hashCode();
    13
    result = 37 * result + this.arrowStroke.hashCode();
    13
    result = result * 37 + this.arrowStroke.hashCode();
    Differences
    Expression1Expression2Difference
    37resultTYPE_COMPATIBLE_REPLACEMENT
    result37TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression result cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression result cannot be parameterized, because it has dependencies to/from statements that will be extracted
    13
    result = result * 37 + this.arrowStroke.hashCode();
    14
    temp = Double.doubleToLongBits(this.labelOffset);
    14
    temp = Double.doubleToLongBits(this.labelOffset);
    15
    result = 37 * result + (int)(temp ^ (temp >>> 32));
    15
    result = 37 * result + (int)(temp ^ (temp >>> 32));
    16
    return result;
    16
    return result;
    16
    return super.hashCode();
    Differences
    Expression1Expression2Difference
    resultsuper.hashCode()TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression result cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Super method call return super.hashCode(); cannot be extracted from method
    16
    return super.hashCode();
    Precondition Violations (8)
    Row Violation
    1Super method call int result=super.hashCode(); cannot be extracted from method
    2Expression result cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression result cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Expression result cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5Expression result cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression result cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7Super method call return super.hashCode(); cannot be extracted from method
    8The refactoring of the clones is infeasible, because classes org.jfree.chart.annotations.CategoryPointerAnnotation and org.jfree.chart.annotations.XYPointerAnnotation do not have a common superclass