217-1-3

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; long temp = Double.doubleToLongBits(this.lowerBound); result = 37 * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(this.upperBound); 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.paint); 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/StandardDialRange.java
Method name: `int hashCode()` |  | Method name: `int hashCode()`
Number of AST nodes: 13 |  | Number of AST nodes: 11

1

    int result = 193;↵

1

    int result = 193;     ↵

2

            long temp = Double.doubleToLongBits(this.startAngle);↵

2

            long temp = Double.doubleToLongBits(this.lowerBound);↵

3

            result = 37 * result + (int) (temp ^ (temp >>> 32));↵

3

            result = 37 * result + (int) (temp ^ (temp >>> 32));        ↵

4

            temp = Double.doubleToLongBits(this.extent);↵

4

            temp = Double.doubleToLongBits(this.upperBound);↵

5

            result = 37 * result + (int) (temp ^ (temp >>> 32));↵

5

            result = 37 * result + (int) (temp ^ (temp >>> 32));        ↵

6

            temp = Double.doubleToLongBits(this.innerRadius);↵

6

            temp = Double.doubleToLongBits(this.innerRadius);↵

7

            result = 37 * result + (int) (temp ^ (temp >>> 32));↵

7

            result = 37 * result + (int) (temp ^ (temp >>> 32));        ↵

8

            temp = Double.doubleToLongBits(this.outerRadius);↵

8

            temp = Double.doubleToLongBits(this.outerRadius);↵

9

            result = 37 * result + (int) (temp ^ (temp >>> 32));↵

9

            result = 37 * result + (int) (temp ^ (temp >>> 32));↵

10

            result = 37 * result + HashUtilities.hashCodeForPaint(↵

10

            ↵

11

                    this.backgroundPaint);↵

12

            result = 37 * result + HashUtilities.hashCodeForPaint(↵

13

                    this.foregroundPaint);↵

14

            result = 37 * result + this.stroke.hashCode(↵

15

    );↵

11

            result = 37 * result + HashUtilities.hashCodeForPaint(this.paint);↵

16

            return result;

12

            return result;

See real code fragment |  | See real code fragment

Summary
Number of common nesting structure subtrees | 1
Number of refactorable cases | 0
Number of non-refactorable cases | 1
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0
Clones location | Clones are in different classes having the same super class
Number of node comparisons | 79

1. {Non-refactorable}

   Mapping Summary
   Number of mapped statements | 11
   Number of unmapped statements in the first code fragment | 2
   Number of unmapped statements in the second code fragment | 0
   Time elapsed for statement mapping (ms) | 0.0
   Clone type | Type 3

   Mapped Statements
   ID | Statement |  | ID | Statement
   --- | --- | --- | --- | ---

   1

       int result = 193;

   1

       int result = 193;

   2

       long temp = Double.doubleToLongBits(this.startAngle);

   2 | long temp = Double.doubleToLongBits(this.startAngle);
   2 | long temp = Double.doubleToLongBits(this.lowerBound);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   startAngle | lowerBound | VARIABLE_NAME_MISMATCH

   2

       long temp = Double.doubleToLongBits(this.lowerBound);

   3

       result = 37 * result + (int)(temp ^ (temp >>> 32));

   3

       result = 37 * result + (int)(temp ^ (temp >>> 32));

   4

       temp = Double.doubleToLongBits(this.extent);

   4 | temp = Double.doubleToLongBits(this.extent);
   4 | temp = Double.doubleToLongBits(this.upperBound);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   extent | upperBound | VARIABLE_NAME_MISMATCH

   4

       temp = Double.doubleToLongBits(this.upperBound);

   5

       result = 37 * result + (int)(temp ^ (temp >>> 32));

   5

       result = 37 * result + (int)(temp ^ (temp >>> 32));

   6

       temp = Double.doubleToLongBits(this.innerRadius);

   6

       temp = Double.doubleToLongBits(this.innerRadius);

   7

       result = 37 * result + (int)(temp ^ (temp >>> 32));

   7

       result = 37 * result + (int)(temp ^ (temp >>> 32));

   8

       temp = Double.doubleToLongBits(this.outerRadius);

   8

       temp = Double.doubleToLongBits(this.outerRadius);

   9

       result = 37 * result + (int)(temp ^ (temp >>> 32));

   9

       result = 37 * result + (int)(temp ^ (temp >>> 32));

   10

       result = 37 * result + HashUtilities.hashCodeForPaint(this.backgroundPaint);

   10 | result = 37 * result + HashUtilities.hashCodeForPaint(this.backgroundPaint);
   10 | result = 37 * result + HashUtilities.hashCodeForPaint(this.paint);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   backgroundPaint | paint | VARIABLE_NAME_MISMATCH

   10

       result = 37 * result + HashUtilities.hashCodeForPaint(this.paint);

   11

       result = 37 * result + HashUtilities.hashCodeForPaint(this.foregroundPaint);

   12

       result = 37 * result + this.stroke.hashCode();

   13

       return result;

   11

       return result;

   Precondition Violations (1)
   Row | Violation
   --- | ---
   1 | Clone fragment #1 returns variables result , while Clone fragment #2 returns variables