this.fromClause = fromClause; this.origin = origin; this.path = path; collection = false;
this.role = role; this.foreignKeyPropertyName = foreignKeyPropertyName; this.isEmbeddedInXML = isEmbeddedInXML;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/hql/ast/tree/FromElementFactory.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/type/CollectionType.java
Method name: void FromElementFactory(FromClause, FromElement, String) Method name: void CollectionType(String, String, boolean)
Number of AST nodes: 4 Number of AST nodes: 3
1
this.fromClause = fromClause;
1
this.role = role;
2
		this.origin = origin;
2
		this.foreignKeyPropertyName = foreig
3
		this.path = path;
4
		collection = false
3
nKeyPropertyName;
5
;
4
		this.isEmbeddedInXML = isEmbeddedInXML;
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 comparisons11
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    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
    this.role = role;
    1
    this.fromClause = fromClause;
                                                                
    2
    this.origin = origin;
                                                
    3
    this.path = path;
    3
    this.path = path;
    2
    this.foreignKeyPropertyName = foreignKeyPropertyName;
    Differences
    Expression1Expression2Difference
    pathforeignKeyPropertyNameVARIABLE_NAME_MISMATCH
    pathforeignKeyPropertyNameVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.path is a field being modified, and thus it cannot be parameterized
    Expression this.foreignKeyPropertyName is a field being modified, and thus it cannot be parameterized
    2
    this.foreignKeyPropertyName = foreignKeyPropertyName;
    4
    collection = false;
    4
    collection = false;
    3
    this.isEmbeddedInXML = isEmbeddedInXML;
    Differences
    Expression1Expression2Difference
    collectionthis.isEmbeddedInXMLTYPE_COMPATIBLE_REPLACEMENT
    falseisEmbeddedInXMLTYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression collection is a field being modified, and thus it cannot be parameterized
    Expression this.isEmbeddedInXML is a field being modified, and thus it cannot be parameterized
    3
    this.isEmbeddedInXML = isEmbeddedInXML;
    Precondition Violations (4)
    Row Violation
    1Expression this.path is a field being modified, and thus it cannot be parameterized
    2Expression this.foreignKeyPropertyName is a field being modified, and thus it cannot be parameterized
    3Expression collection is a field being modified, and thus it cannot be parameterized
    4Expression this.isEmbeddedInXML is a field being modified, and thus it cannot be parameterized