int result = 19; result = 37 * result + this.categoryAnchor.hashCode(); result = 37 * result + this.labelAnchor.hashCode(); result = 37 * result + this.rotationAnchor.hashCode(); return result;
int result = 41; result = 37 * result + this.category.hashCode(); result = 37 * result + this.label.hashCode(); result = 37 * result + this.labelAnchor.hashCode(); return result;
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/CategoryLabelPosition.java File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/CategoryTick.java
Method name: int hashCode() Method name: int hashCode()
Number of AST nodes: 5 Number of AST nodes: 5
1
int result = 19;
1
int result = 41;
2
        result = 37 * result + this.categoryAnchor.hashCode();
2
        result = 37 * result + this.category.hashCode();
3
        result = 37 * result + this.labelAnchor.hashCode();
3
        result = 37 * result + this.label.hashCode();
4
        result = 37 * result + this.rotationAnchor.hashCode();
4
        result = 37 * result + this.labelAnchor.hashCode();
5
        return result;
5
        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 comparisons25
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements5
    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 = 19;
    1
    int result = 19;
    1
    int result = 41;
    Differences
    Expression1Expression2Difference
    1941LITERAL_VALUE_MISMATCH
    1
    int result = 41;
    2
    result = 37 * result + this.categoryAnchor.hashCode();
    2
    result = 37 * result + this.categoryAnchor.hashCode();
    2
    result = 37 * result + this.category.hashCode();
    Differences
    Expression1Expression2Difference
    categoryAnchorcategoryVARIABLE_NAME_MISMATCH
    org.jfree.ui.RectangleAnchorjava.lang.ComparableVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.jfree.ui.RectangleAnchor of variable this.categoryAnchor does not match with type java.lang.Comparable of variable this.category
    • Make classes org.jfree.ui.RectangleAnchor and java.lang.Comparable extend a common superclass
    2
    result = 37 * result + this.category.hashCode();
    3
    result = 37 * result + this.labelAnchor.hashCode();
    3
    result = 37 * result + this.labelAnchor.hashCode();
    3
    result = 37 * result + this.label.hashCode();
    Differences
    Expression1Expression2Difference
    labelAnchorlabelVARIABLE_NAME_MISMATCH
    org.jfree.text.TextBlockAnchororg.jfree.text.TextBlockVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.jfree.text.TextBlockAnchor of variable this.labelAnchor does not match with type org.jfree.text.TextBlock of variable this.label
    • Make classes org.jfree.text.TextBlockAnchor and org.jfree.text.TextBlock extend a common superclass
    3
    result = 37 * result + this.label.hashCode();
    4
    result = 37 * result + this.rotationAnchor.hashCode();
    4
    result = 37 * result + this.rotationAnchor.hashCode();
    4
    result = 37 * result + this.labelAnchor.hashCode();
    Differences
    Expression1Expression2Difference
    rotationAnchorlabelAnchorVARIABLE_NAME_MISMATCH
    org.jfree.ui.TextAnchororg.jfree.text.TextBlockAnchorVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.jfree.ui.TextAnchor of variable this.rotationAnchor does not match with type org.jfree.text.TextBlockAnchor of variable this.labelAnchor
    • Make classes org.jfree.ui.TextAnchor and org.jfree.text.TextBlockAnchor extend a common superclass
    4
    result = 37 * result + this.labelAnchor.hashCode();
    5
    return result;
    5
    return result;
    Precondition Violations (3)
    Row Violation
    1Type org.jfree.ui.RectangleAnchor of variable this.categoryAnchor does not match with type java.lang.Comparable of variable this.category
    2Type org.jfree.text.TextBlockAnchor of variable this.labelAnchor does not match with type org.jfree.text.TextBlock of variable this.label
    3Type org.jfree.ui.TextAnchor of variable this.rotationAnchor does not match with type org.jfree.text.TextBlockAnchor of variable this.labelAnchor