Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 2 | 0.962 | non_pp_embedded_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 60 | src/NHibernate/Event/Default/DirtyCollectionSearchVisitor.cs |
2 | 7 | 31 | src/NHibernate/Event/Default/FlushVisitor.cs |
| ||||
if (type.IsArrayType) { persistentCollection = session.PersistenceContext.GetCollectionHolder(collection); // if no array holder we found an unwrappered array (this can't occur, // because we now always call wrap() before getting to here) // return (ah==null) ? true : searchForDirtyCollections(ah, type); } else { // if not wrappered yet, its dirty (this can't occur, because // we now always call wrap() before getting to here) // return ( ! (obj instanceof PersistentCollection) ) ? //true : searchForDirtyCollections( (PersistentCollection) obj, type ); persistentCollection = (IPersistentCollection)collection; } |
| ||||
if (type.IsArrayType) { coll = Session.PersistenceContext.GetCollectionHolder(collection); } else { coll = (IPersistentCollection)collection; } |
| |||
if (type.IsArrayType) { [[#variable52928100]]= [[#variable52928080]].PersistenceContext.GetCollectionHolder(collection); // if no array holder we found an unwrappered array (this can't occur, // because we now always call wrap() before getting to here) // return (ah==null) ? true : searchForDirtyCollections(ah, type); } else { [[#variable52928100]]= (IPersistentCollection)collection; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#52928100]] | coll |
1 | 2 | [[#52928100]] | persistentCollection |
2 | 1 | [[#52928080]] | Session |
2 | 2 | [[#52928080]] | session |