1 | if ( collectionLoadContexts != null ) {↵ | | 1 | if ( entityLoadContexts != null ) {↵
|
2 | Iterator itr = collectionLoadContexts.values().iterator();↵ | | 2 | Iterator itr = entityLoadContexts.values().iterator();↵
|
3 | while ( itr.hasNext() ) {↵ | | 3 | while ( itr.hasNext() ) {↵
|
4 | CollectionLoadContext collectionLoadContext = ( CollectionLoadContext ) itr.next();↵ | | 4 | EntityLoadContext entityLoadContext = ( EntityLoadContext ) itr.next();↵
|
5 | log.warn( "fail-safe cleanup (collections) : " + collectionLoadContext );↵ | | 5 | log.warn( "fail-safe cleanup (entities) : " + entityLoadContext );↵
|
6 | collectionLoadContext.cleanup();↵ | | 6 | entityLoadContext.cleanup();↵
|
7 | }↵ | | 7 | }↵
|
8 | collectionLoadContexts.clear();↵ | | 8 | entityLoadContexts.clear();↵
|
9 | } | | 9 | }
|