super(source); this.entity = entity; this.id = id; this.persister = persister; this.deletedState = deletedState;
super(source); this.object = object; this.lockMode = lockMode;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/event/PostDeleteEvent.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/event/LockEvent.java
Method name: void PostDeleteEvent(Object, Serializable, Object[], EntityPersister, EventSource) Method name: void LockEvent(Object, LockMode, EventSource)
Number of AST nodes: 5 Number of AST nodes: 3
1
super(source);
1
super(source);
2
		this.entity = entity;
2
		this.
3
		this.id = id;
4
		this.persister = persister;
5
		this.deletedState = deletedStat
3
object = object;
6
e;
4
		this.lockMode = lockMode;
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 having the same super class
Number of node comparisons10
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment3
    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
    super(source);
    1
    super(source);
    2
    this.entity = entity;
    2
    this.entity = entity;
    2
    this.object = object;
    Differences
    Expression1Expression2Difference
    entityobjectVARIABLE_NAME_MISMATCH
    entityobjectVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.entity is a field being modified, and thus it cannot be parameterized
    Expression this.object is a field being modified, and thus it cannot be parameterized
    2
    this.object = object;
                                                        
    3
    this.lockMode = lockMode;
    3
    this.id = id;
                                
    4
    this.persister = persister;
                                                            
    5
    this.deletedState = deletedState;
                                                                        
    Precondition Violations (2)
    Row Violation
    1Expression this.entity is a field being modified, and thus it cannot be parameterized
    2Expression this.object is a field being modified, and thus it cannot be parameterized