CloneSet2409


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7220.962non_pp_embedded_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11460
src/NHibernate/Event/Default/DirtyCollectionSearchVisitor.cs
2731
src/NHibernate/Event/Default/FlushVisitor.cs
Clone Instance
1
Line Count
14
Source Line
60
Source File
src/NHibernate/Event/Default/DirtyCollectionSearchVisitor.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;
                                }


Clone Instance
2
Line Count
7
Source Line
31
Source File
src/NHibernate/Event/Default/FlushVisitor.cs

                                if (type.IsArrayType)
                                {
                                        coll = Session.PersistenceContext.GetCollectionHolder(collection);
                                }
                                else
                                {
                                        coll = (IPersistentCollection)collection;
                                }


Clone AbstractionParameter Count: 2Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#52928100]]
coll 
12[[#52928100]]
persistentCollection 
21[[#52928080]]
Session 
22[[#52928080]]
session