final int PRIME = 31; int result = 1; result = PRIME * result + ((_colName == null) ? 0 : _colName.hashCode()); result = PRIME * result + ((_ordinalPosition == null) ? 0 : _ordinalPosition.hashCode()); return result;
final int prime = 31; int result = 1; result = prime * result + ((getName() == null) ? 0 : getName().hashCode()); return result;
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/IndexColInfo.java File path: /sql12/plugins/i18n/src/net/sourceforge/squirrel_sql/plugins/i18n/I18nBundle.java
Method name: int hashCode() Method name: int hashCode()
Number of AST nodes: 5 Number of AST nodes: 4
1
final int PRIME = 31;
1
final int prime = 31;
2
       int result = 1;
2
        int result = 1;
3
       result = PRIME * result + ((_colName == null) ? 0 : _colName.hashCode());
3
        result = prime * result
4
       result = PRIME * result + ((_ordinalPosition == null) ? 0 : _ordinalPosition
5
.hashCode());
4
                + ((getName() == null) ? 0 : getName().hashCode());
6
       return result;
5
        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 comparisons20
  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 fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    1
    final int PRIME = 31;
    1
    final int PRIME = 31;
    1
    final int prime = 31;
    Differences
    Expression1Expression2Difference
    PRIMEprimeVARIABLE_NAME_MISMATCH
    1
    final int prime = 31;
    2
    int result = 1;
    2
    int result = 1;
    3
    result = PRIME * result + ((_colName == null) ? 0 : _colName.hashCode());
    3
    result = PRIME * result + ((_colName == null) ? 0 : _colName.hashCode());
    3
    result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
    Differences
    Expression1Expression2Difference
    PRIMEprimeVARIABLE_NAME_MISMATCH
    _colNamegetName()TYPE_COMPATIBLE_REPLACEMENT
    _colNamegetName()TYPE_COMPATIBLE_REPLACEMENT
    3
    result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
                                      
    4
    return result;
    Preondition Violations
    Unmatched statement return result; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    Unmatched return result;
    4
    return result;
    4
    result = PRIME * result + ((_ordinalPosition == null) ? 0 : _ordinalPosition.hashCode());
    4
    result = PRIME * result + ((_ordinalPosition == null) ? 0 : _ordinalPosition.hashCode());
    Preondition Violations
    Unmatched statement result=PRIME * result + ((_ordinalPosition == null) ? 0 : _ordinalPosition.hashCode()); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
                                                                                                                                                                                        
    5
    return result;
    5
    return result;
    Preondition Violations
    Unmatched return result;
                                      
    Precondition Violations (4)
    Row Violation
    1Unmatched statement return result; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    2Unmatched return result;
    3Unmatched statement result=PRIME * result + ((_ordinalPosition == null) ? 0 : _ordinalPosition.hashCode()); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    4Unmatched return result;