if ( postListeners.length > 0 ) {
PostInsertEvent postEvent = new PostInsertEvent(
getInstance(),
getId(),
state,
getPersister(),
(EventSource) getSession()
);
for ( int i = 0; i < postListeners.length; i++ ) {
postListeners[i].onPostInsert(postEvent);
}
}
CascadeStyle componentPropertyStyle = componentType.getCascadeStyle(i);
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/action/EntityInsertAction.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/engine/Cascade.java
|
Method name: void postCommitInsert()
|
|
Method name: void cascadeComponent(Object, AbstractComponentType, Object)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 1
|
|
1 | if ( postListeners.length > 0 ) {↵ | | |
|
2 | PostInsertEvent postEvent = new PostInsertEvent(↵ | | |
|
3 | getInstance(),↵ | | |
|
4 | getId(),↵ | | |
|
5 | state,↵ | | |
|
6 | getPersister(),↵ | | |
|
7 | (EventSource) getSession() ↵ | | |
|
8 | );↵ | | |
|
9 | for ( int i = 0; i < postListeners.length; i++ ) {↵ | | |
|
10 | postListeners[i].onPostInsert(postEvent);↵ | | |
|
11 | }↵ | | |
|
12 | } | | 1 | CascadeStyle componentPropertyStyle = componentType.getCascadeStyle(i);
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 0 |