Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 4 | 0.953 | statement_list[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 76 | src/NHibernate/Action/EntityDeleteAction.cs |
2 | 5 | 59 | src/NHibernate/Engine/TwoPhaseLoad.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"); } |
| ||||
IPersistenceContext persistenceContext = session.PersistenceContext; EntityEntry entityEntry = persistenceContext.GetEntry(entity); if (entityEntry == null) { throw new AssertionFailure("possible non-threadsafe access to the session"); } |
| |||
//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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#27111b00]] | entry |
1 | 2 | [[#27111b00]] | entityEntry |
2 | 1 | [[#27111ba0]] | RemoveEntry |
2 | 2 | [[#27111ba0]] | GetEntry |
3 | 1 | [[#27110e80]] | instance |
3 | 2 | [[#27110e80]] | entity |
4 | 1 | [[#27111a20]] | "Possible nonthreadsafe access to session" |
4 | 2 | [[#27111a20]] | "possible non-threadsafe access to the session" |