super(source); this.collection = collection; this.affectedOwner = affectedOwner; this.affectedOwnerId = affectedOwnerId; this.affectedOwnerEntityName = getAffectedOwnerEntityName( collectionPersister, affectedOwner, source );
super( session ); this.ownerIdentifier = ownerIdentifier; this.owner = owner;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/event/AbstractCollectionEvent.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/event/def/ReattachVisitor.java
Method name: void AbstractCollectionEvent(CollectionPersister, PersistentCollection, EventSource, Object, Serializable) Method name: void ReattachVisitor(EventSource, Serializable, Object)
Number of AST nodes: 5 Number of AST nodes: 3
1
super(source);
1
super(
2
		this.collection = collection;
3
		this.affectedOwner = affectedOwner;
4
		this.affectedOwnerId = affectedOwnerId;
5
		this.affectedOwnerEntityName =
6
				getAffectedOwnerEntityName( collectionPersister, affectedOwner, source )
2
 session );
3
		this.ownerIdentifier = ownerIdentifier;
7
;
4
		this.owner = owner;
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 comparisons8
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    1
    super(source);
    1
    super(source);
    1
    super(session);
    Differences
    Expression1Expression2Difference
    sourcesessionVARIABLE_NAME_MISMATCH
    1
    super(session);
    2
    this.collection = collection;
                                                                
    3
    this.affectedOwner = affectedOwner;
    3
    this.affectedOwner = affectedOwner;
    3
    this.owner = owner;
    Differences
    Expression1Expression2Difference
    affectedOwnerownerVARIABLE_NAME_MISMATCH
    affectedOwnerownerVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.affectedOwner is a field being modified, and thus it cannot be parameterized
    Expression this.owner is a field being modified, and thus it cannot be parameterized
    3
    this.owner = owner;
    4
    this.affectedOwnerId = affectedOwnerId;
    4
    this.affectedOwnerId = affectedOwnerId;
    2
    this.ownerIdentifier = ownerIdentifier;
    Differences
    Expression1Expression2Difference
    affectedOwnerIdownerIdentifierVARIABLE_NAME_MISMATCH
    affectedOwnerIdownerIdentifierVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.affectedOwnerId is a field being modified, and thus it cannot be parameterized
    Expression this.ownerIdentifier is a field being modified, and thus it cannot be parameterized
    2
    this.ownerIdentifier = ownerIdentifier;
    5
    this.affectedOwnerEntityName = getAffectedOwnerEntityName(collectionPersister, affectedOwner, source);
                                                                                                                                                                                                              
    Precondition Violations (4)
    Row Violation
    1Expression this.affectedOwner is a field being modified, and thus it cannot be parameterized
    2Expression this.owner is a field being modified, and thus it cannot be parameterized
    3Expression this.affectedOwnerId is a field being modified, and thus it cannot be parameterized
    4Expression this.ownerIdentifier is a field being modified, and thus it cannot be parameterized