Object key = baseType.nullSafeGet(rs, names, session, owner); return key==null ? null : values.get(key);
Object key = baseType.nullSafeGet(rs, name, session, owner); return key==null ? null : values.get(key);
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/type/MetaType.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/type/MetaType.java
Method name: Object nullSafeGet(ResultSet, String[], SessionImplementor, Object) Method name: Object nullSafeGet(ResultSet, String, SessionImplementor, Object)
Number of AST nodes: 2 Number of AST nodes: 2
1
Object key = baseType.nullSafeGet(rs, names, session, owner);
1
Object key = baseType.nullSafeGet(rs, name, session, owner);
2
		return key==null ? null : values.get(key);
2
		return key==null ? null : values.get(key);
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 declared in the same class
Number of node comparisons4
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    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
    Object key = baseType.nullSafeGet(rs, names, session, owner);
    1
    Object key = baseType.nullSafeGet(rs, names, session, owner);
    1
    Object key = baseType.nullSafeGet(rs, name, session, owner);
    Differences
    Expression1Expression2Difference
    namesnameVARIABLE_NAME_MISMATCH
    java.lang.String[]java.lang.StringVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type java.lang.String[] of variable names does not match with type java.lang.String of variable name
    • Make classes java.lang.String[] and java.lang.String extend a common superclass
    1
    Object key = baseType.nullSafeGet(rs, name, session, owner);
    2
    return key == null ? null : values.get(key);
    2
    return key == null ? null : values.get(key);
    Precondition Violations (1)
    Row Violation
    1Type java.lang.String[] of variable names does not match with type java.lang.String of variable name