if (postListeners.length>0) { PostDeleteEvent postEvent = new PostDeleteEvent( getInstance(), getId(), state, getPersister(), (EventSource) getSession() ); for ( int i = 0; i < postListeners.length; i++ ) { postListeners[i].onPostDelete(postEvent); } }
for ( int i=0; i<types.length; i++ ) { CascadeStyle componentPropertyStyle = componentType.getCascadeStyle(i); if ( componentPropertyStyle.doCascade(action) ) { cascadeProperty( children[i], types[i], componentPropertyStyle, anything, false ); } }
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/action/EntityDeleteAction.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/engine/Cascade.java
Method name: void postCommitDelete() Method name: void cascadeComponent(Object, AbstractComponentType, Object)
Number of AST nodes: 4 Number of AST nodes: 4
1
if (postListeners.length>0) {
1
for ( int i=0; i<types.length; i++ ) {
2
			PostDeleteEvent postEvent = new PostDeleteEvent(
2
			
3
					getInstance(),
4
					getId(),
5
					state
3
CascadeStyle componentPropertyStyle = componentType.getCascadeStyle(i);
4
			if ( componentPropertyStyle.doCascade(action) ) {
5
				cascadeProperty(
6
,
6
						children[i],
7
					getPersister(),
7
						
8
					(EventSource) getSession()
9
			);
10
			for ( int i = 0; i < postListeners.length; i++ ) {
11
				postListeners[i].onPostDelete(postEvent
8
types[i],
9
						componentPropertyStyle,
10
						anything,
11
						false
12
);
12
					);
13
			}
13
			}
14
		}
14
		}
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes
Number of node comparisons1