File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/event/PostUpdateEvent.java | File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/event/AbstractCollectionEvent.java | |||
Method name: void PostUpdateEvent(Object, Serializable, Object[], Object[], EntityPersister, EventSource)
|
Method name: void AbstractCollectionEvent(CollectionPersister, PersistentCollection, EventSource, Object, Serializable)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 5 | |||
1 | super(source);↵ | 1 | super(source);↵ | |
2 | this.entity = entity;↵ | 2 | this.↵ | |
3 | this.id = id;↵ | |||
4 | this.state = state;↵ | |||
5 | this.oldState = oldState;↵ | |||
6 | this.persister = persister↵ | 3 | collection = collection;↵ | |
4 | this.affectedOwner = affectedOwner;↵ | |||
5 | this.affectedOwnerId = affectedOwnerId;↵ | |||
6 | this.affectedOwnerEntityName =↵ | |||
7 | ; | 7 | getAffectedOwnerEntityName( collectionPersister, affectedOwner, source ); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 19 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 3 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | super(source); | 1 | super(source); | ||||||||||||||||
| 2 | this.collection = collection; | |||||||||||||||||
2 | this.entity = entity; |
| 3 | this.affectedOwner = affectedOwner; | |||||||||||||||
3 | this.id = id; |
| 4 | this.affectedOwnerId = affectedOwnerId; | |||||||||||||||
4 | this.state = state; | | |||||||||||||||||
| 5 | this.affectedOwnerEntityName = getAffectedOwnerEntityName(collectionPersister, affectedOwner, source); | |||||||||||||||||
5 | this.oldState = oldState; | | |||||||||||||||||
6 | this.persister = persister; | |
Row | Violation |
---|---|
1 | Expression this.entity is a field being modified, and thus it cannot be parameterized |
2 | Expression this.affectedOwner is a field being modified, and thus it cannot be parameterized |
3 | Expression this.id is a field being modified, and thus it cannot be parameterized |
4 | Expression this.affectedOwnerId is a field being modified, and thus it cannot be parameterized |