this.id = id; this.description = description; this.ends = ends; this.maxAmount = maxAmount;
this.pk = pk; this.name = name; this.id = id;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/tutorials/eg/src/main/java/org/hibernate/auction/AuctionInfo.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/idprops/Person.java
Method name: void AuctionInfo(long, String, Date, Float) Method name: void Person(Long, String, int)
Number of AST nodes: 4 Number of AST nodes: 3
1
this.id = id;
1
this.
2
		this.description = description;
3
		this.ends = ends;
4
		this.maxAmount = maxAmount
2
pk = pk;
3
		this.name = name;
5
;
4
		this.id = id;
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 comparisons10
  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.id = id;
                                
    2
    this.description = description;
    2
    this.description = description;
    2
    this.name = name;
    Differences
    Expression1Expression2Difference
    descriptionnameVARIABLE_NAME_MISMATCH
    descriptionnameVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.description is a field being modified, and thus it cannot be parameterized
    Expression this.name is a field being modified, and thus it cannot be parameterized
    2
    this.name = name;
    3
    this.ends = ends;
                                        
    4
    this.maxAmount = maxAmount;
    4
    this.maxAmount = maxAmount;
    1
    this.pk = pk;
    Differences
    Expression1Expression2Difference
    maxAmountpkVARIABLE_NAME_MISMATCH
    maxAmountpkVARIABLE_NAME_MISMATCH
    java.lang.Floatjava.lang.LongSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression this.maxAmount is a field being modified, and thus it cannot be parameterized
    Expression this.pk is a field being modified, and thus it cannot be parameterized
    1
    this.pk = pk;
                                
    3
    this.id = id;
    Precondition Violations (4)
    Row Violation
    1Expression this.description is a field being modified, and thus it cannot be parameterized
    2Expression this.name is a field being modified, and thus it cannot be parameterized
    3Expression this.maxAmount is a field being modified, and thus it cannot be parameterized
    4Expression this.pk is a field being modified, and thus it cannot be parameterized