File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/impl/SessionImpl.java | File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/impl/SessionImpl.java | |||
Method name: void fireReplicate(ReplicateEvent)
|
Method name: void fireEvict(EvictEvent)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | errorIfClosed();↵ | 1 | errorIfClosed();↵ | |
2 | checkTransactionSynchStatus();↵ | 2 | checkTransactionSynchStatus();↵ | |
3 | ReplicateEventListener[] replicateEventListener = listeners.getReplicateEventListeners();↵ | 3 | EvictEventListener[] evictEventListener = listeners.getEvictEventListeners();↵ | |
4 | for ( int i = 0; i < replicateEventListener.length; i++ ) {↵ | 4 | for ( int i = 0; i < evictEventListener.length; i++ ) {↵ | |
5 | replicateEventListener[i].onReplicate(event);↵ | 5 | evictEventListener[i].onEvict( evictEvent );↵ | |
6 | } | 6 |
| |
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.2 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 13 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 1.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | errorIfClosed(); | 1 | errorIfClosed(); | |||||||||||||||
2 | checkTransactionSynchStatus(); | 2 | checkTransactionSynchStatus(); | |||||||||||||||
| 3 | EvictEventListener[] evictEventListener = listeners.getEvictEventListeners(); | ||||||||||||||||
3 | ReplicateEventListener[] replicateEventListener = listeners.getReplicateEventListeners(); | | ||||||||||||||||
4 | for (int i = 0; i < replicateEventListener.length; i++) |
| 4 | for (int i = 0; i < evictEventListener.length; i++) | ||||||||||||||
|
| 5 | evictEventListener[i].onEvict(evictEvent); | |||||||||||||||
5 | replicateEventListener[i].onReplicate(event); |
| |
Row | Violation |
---|---|
1 | Type org.hibernate.event.ReplicateEventListener[] of variable replicateEventListener does not match with type org.hibernate.event.EvictEventListener[] of variable evictEventListener |
2 | Unmatched statement evictEventListener[i].onEvict(evictEvent); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
3 | Unmatched statement replicateEventListener[i].onReplicate(event); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |