CloneSet1747


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6240.953statement_list[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1676
src/NHibernate/Action/EntityDeleteAction.cs
2559
src/NHibernate/Engine/TwoPhaseLoad.cs
Clone Instance
1
Line Count
6
Source Line
76
Source File
src/NHibernate/Action/EntityDeleteAction.cs

                        //postDelete:
                        // After actually deleting a row, record the fact that the instance no longer 
                        // exists on the database (needed for identity-column key generation), and
                        // remove it from the session cache
                        IPersistenceContext persistenceContext = session.PersistenceContext;

                        EntityEntry entry = persistenceContext.RemoveEntry(instance);
                        if (entry == null)
                        {
                                throw new AssertionFailure("Possible nonthreadsafe access to session");
                        }


Clone Instance
2
Line Count
5
Source Line
59
Source File
src/NHibernate/Engine/TwoPhaseLoad.cs

                        IPersistenceContext persistenceContext = session.PersistenceContext;
                        EntityEntry entityEntry = persistenceContext.GetEntry(entity);
                        if (entityEntry == null)
                        {
                                throw new AssertionFailure("possible non-threadsafe access to the session");
                        }


Clone AbstractionParameter Count: 4Parameter Bindings

//postDelete:
// After actually deleting a row, record the fact that the instance no longer 
// exists on the database (needed for identity-column key generation), and
// remove it from the session cache
IPersistenceContext persistenceContext = session.PersistenceContext;
EntityEntry [[#variable27111b00]]= persistenceContext. [[#variable27111ba0]]( [[#variable27110e80]]);
if ( [[#variable27111b00]]== null)
{
   throw new AssertionFailure( [[#variable27111a20]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#27111b00]]
entry 
12[[#27111b00]]
entityEntry 
21[[#27111ba0]]
RemoveEntry 
22[[#27111ba0]]
GetEntry 
31[[#27110e80]]
instance 
32[[#27110e80]]
entity 
41[[#27111a20]]
"Possible nonthreadsafe access to session" 
42[[#27111a20]]
"possible non-threadsafe access to the session"