this.propertyName = propertyName; this.otherPropertyName = otherPropertyName; this.op = op;
this.firstName = firstName; this.lastName = lastName; this.companyName = companyName;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/criterion/PropertyExpression.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/jpa/fetch/Person.java
Method name: void PropertyExpression(String, String, String) Method name: void Person(String, String, String)
Number of AST nodes: 3 Number of AST nodes: 3
1
this.propertyName = propertyName;
1
this.firstName = firstName;
2
		this.otherPropertyName = otherPropertyName;
2
		this.lastName = lastName;
3
		this.op = op;
3
		this.companyName = companyName;
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.propertyName = propertyName;
    1
    this.propertyName = propertyName;
    1
    this.firstName = firstName;
    Differences
    Expression1Expression2Difference
    propertyNamefirstNameVARIABLE_NAME_MISMATCH
    propertyNamefirstNameVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.propertyName is a field being modified, and thus it cannot be parameterized
    Expression this.firstName is a field being modified, and thus it cannot be parameterized
    1
    this.firstName = firstName;
    2
    this.otherPropertyName = otherPropertyName;
    2
    this.otherPropertyName = otherPropertyName;
    2
    this.lastName = lastName;
    Differences
    Expression1Expression2Difference
    otherPropertyNamelastNameVARIABLE_NAME_MISMATCH
    otherPropertyNamelastNameVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.otherPropertyName is a field being modified, and thus it cannot be parameterized
    Expression this.lastName is a field being modified, and thus it cannot be parameterized
    2
    this.lastName = lastName;
    3
    this.op = op;
    3
    this.op = op;
    3
    this.companyName = companyName;
    Differences
    Expression1Expression2Difference
    opcompanyNameVARIABLE_NAME_MISMATCH
    opcompanyNameVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.op is a field being modified, and thus it cannot be parameterized
    Expression this.companyName is a field being modified, and thus it cannot be parameterized
    3
    this.companyName = companyName;
    Precondition Violations (6)
    Row Violation
    1Expression this.propertyName is a field being modified, and thus it cannot be parameterized
    2Expression this.firstName is a field being modified, and thus it cannot be parameterized
    3Expression this.otherPropertyName is a field being modified, and thus it cannot be parameterized
    4Expression this.lastName is a field being modified, and thus it cannot be parameterized
    5Expression this.op is a field being modified, and thus it cannot be parameterized
    6Expression this.companyName is a field being modified, and thus it cannot be parameterized