this.role = role; this.foreignKeyPropertyName = foreignKeyPropertyName; this.isEmbeddedInXML = isEmbeddedInXML;
this.session = session; this.entityOrClassName = entityOrClassName; this.cacheable = false; this.rootAlias = alias;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/type/CollectionType.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/impl/CriteriaImpl.java
Method name: void CollectionType(String, String, boolean) Method name: void CriteriaImpl(String, String, SessionImplementor)
Number of AST nodes: 3 Number of AST nodes: 4
1
this.role = role;
1
this.
2
		this.foreignKeyPropertyName = foreignKeyPropertyName;
3
		this.isEmbeddedInXML = isEmbeddedInXML
2
session = session;
3
		this.entityOrClassName = entityOrClassName;
4
		this.cacheable = false;
4
;
5
		this.rootAlias = alias;
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 comparisons9
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    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
    this.session = session;
    1
    this.role = role;
    1
    this.role = role;
    2
    this.entityOrClassName = entityOrClassName;
    Differences
    Expression1Expression2Difference
    roleentityOrClassNameVARIABLE_NAME_MISMATCH
    roleentityOrClassNameVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.role is a field being modified, and thus it cannot be parameterized
    Expression this.entityOrClassName is a field being modified, and thus it cannot be parameterized
    2
    this.entityOrClassName = entityOrClassName;
    2
    this.foreignKeyPropertyName = foreignKeyPropertyName;
    2
    this.foreignKeyPropertyName = foreignKeyPropertyName;
    4
    this.rootAlias = alias;
    Differences
    Expression1Expression2Difference
    foreignKeyPropertyNamerootAliasVARIABLE_NAME_MISMATCH
    foreignKeyPropertyNamealiasVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.foreignKeyPropertyName is a field being modified, and thus it cannot be parameterized
    Expression this.rootAlias is a field being modified, and thus it cannot be parameterized
    4
    this.rootAlias = alias;
    3
    this.isEmbeddedInXML = isEmbeddedInXML;
    3
    this.isEmbeddedInXML = isEmbeddedInXML;
    3
    this.cacheable = false;
    Differences
    Expression1Expression2Difference
    isEmbeddedInXMLcacheableVARIABLE_NAME_MISMATCH
    isEmbeddedInXMLfalseTYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression this.isEmbeddedInXML is a field being modified, and thus it cannot be parameterized
    Expression this.cacheable is a field being modified, and thus it cannot be parameterized
    3
    this.cacheable = false;
    Precondition Violations (6)
    Row Violation
    1Expression this.role is a field being modified, and thus it cannot be parameterized
    2Expression this.entityOrClassName is a field being modified, and thus it cannot be parameterized
    3Expression this.foreignKeyPropertyName is a field being modified, and thus it cannot be parameterized
    4Expression this.rootAlias is a field being modified, and thus it cannot be parameterized
    5Expression this.isEmbeddedInXML is a field being modified, and thus it cannot be parameterized
    6Expression this.cacheable is a field being modified, and thus it cannot be parameterized