this.content = content; this.owner = owner; this.title = title; owner.getDocuments().add(this);
this.first = first; this.initial = initial; this.last = last;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/extralazy/Document.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/hql/Name.java
Method name: void Document(String, String, User) Method name: void Name(String, Character, String)
Number of AST nodes: 4 Number of AST nodes: 3
1
this.content = content;
1
this.
2
		this.owner = owner;
3
		this.title = title;
4
		owner.getDocuments().add(this)
2
first = first;
3
		this.initial = initial;
5
;
4
		this.last = last;
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 comparisons7
  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.content = content;
    1
    this.content = content;
    1
    this.first = first;
    Differences
    Expression1Expression2Difference
    contentfirstVARIABLE_NAME_MISMATCH
    contentfirstVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.content is a field being modified, and thus it cannot be parameterized
    Expression this.first is a field being modified, and thus it cannot be parameterized
    1
    this.first = first;
                                                    
    2
    this.initial = initial;
    2
    this.owner = owner;
                                            
    3
    this.title = title;
    3
    this.title = title;
    3
    this.last = last;
    Differences
    Expression1Expression2Difference
    titlelastVARIABLE_NAME_MISMATCH
    titlelastVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.title is a field being modified, and thus it cannot be parameterized
    Expression this.last is a field being modified, and thus it cannot be parameterized
    3
    this.last = last;
    4
    owner.getDocuments().add(this);
                                                                        
    Precondition Violations (4)
    Row Violation
    1Expression this.content is a field being modified, and thus it cannot be parameterized
    2Expression this.first is a field being modified, and thus it cannot be parameterized
    3Expression this.title is a field being modified, and thus it cannot be parameterized
    4Expression this.last is a field being modified, and thus it cannot be parameterized