this.x = x; this.y = y; this.description = description;
this.name = name; this.effectiveStartDate = effectiveStartDate; this.effectiveEndDate = effectiveEndDate;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/proxy/DataPoint.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/filter/Category.java
Method name: void DataPoint(BigDecimal, BigDecimal, String) Method name: void Category(String, Date, Date)
Number of AST nodes: 3 Number of AST nodes: 3
1
this.x = x;
1
this.
2
		this.y = y;
3
		this.description = description
2
name = name;
3
		this.effectiveStartDate = effectiveStartDate;
4
;
4
		this.effectiveEndDate = effectiveEndDate;
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 comparisons6
  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 fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    this.x = x;
    1
    this.x = x;
    2
    this.effectiveStartDate = effectiveStartDate;
    Differences
    Expression1Expression2Difference
    xeffectiveStartDateVARIABLE_NAME_MISMATCH
    xeffectiveStartDateVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.x is a field being modified, and thus it cannot be parameterized
    Expression this.effectiveStartDate is a field being modified, and thus it cannot be parameterized
    2
    this.effectiveStartDate = effectiveStartDate;
    2
    this.y = y;
    2
    this.y = y;
    3
    this.effectiveEndDate = effectiveEndDate;
    Differences
    Expression1Expression2Difference
    yeffectiveEndDateVARIABLE_NAME_MISMATCH
    yeffectiveEndDateVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.y is a field being modified, and thus it cannot be parameterized
    Expression this.effectiveEndDate is a field being modified, and thus it cannot be parameterized
    3
    this.effectiveEndDate = effectiveEndDate;
    3
    this.description = description;
    3
    this.description = description;
    1
    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
    1
    this.name = name;
    Precondition Violations (6)
    Row Violation
    1Expression this.x is a field being modified, and thus it cannot be parameterized
    2Expression this.effectiveStartDate is a field being modified, and thus it cannot be parameterized
    3Expression this.y is a field being modified, and thus it cannot be parameterized
    4Expression this.effectiveEndDate is a field being modified, and thus it cannot be parameterized
    5Expression this.description is a field being modified, and thus it cannot be parameterized
    6Expression this.name is a field being modified, and thus it cannot be parameterized