CloneSet808


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13230.974class_member_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11317
src/NHibernate/Event/DeleteEvent.cs
21319
src/NHibernate/Event/SaveOrUpdateEvent.cs
Clone Instance
1
Line Count
13
Source Line
17
Source File
src/NHibernate/Event/DeleteEvent.cs

                /// <summary> Constructs a new DeleteEvent instance. </summary>
                /// <param name="entity">The entity to be deleted.</param>
                /// <param name="source">The session from which the delete event was generated.
                /// </param>
                public DeleteEvent(object entity, IEventSource source)
                        : base(source)
                {
                        if (entity == null)
                                throw new ArgumentNullException("entity", "Attempt to create delete event with null entity");

                        this.entity = entity;
                }

                public DeleteEvent(string entityName, object entity, IEventSource source)
                        : this(entity, source)
                {
                        this.entityName = entityName;
                }



Clone Instance
2
Line Count
13
Source Line
19
Source File
src/NHibernate/Event/SaveOrUpdateEvent.cs

                public SaveOrUpdateEvent(object entity, IEventSource source)
                        : base(source)
                {
                        if (entity == null)
                                throw new ArgumentNullException("entity", "attempt to create saveOrUpdate event with null entity");

                        this.entity = entity;
                }

                public SaveOrUpdateEvent(string entityName, object original, IEventSource source)
                        : this(original, source)
                {
                        this.entityName = entityName;
                }



Clone AbstractionParameter Count: 3Parameter Bindings

/// <summary> Constructs a new DeleteEvent instance. </summary>
/// <param name="entity">The entity to be deleted.</param>
/// <param name="source">The session from which the delete event was generated.
/// </param>
public [[#variable550e6c60]](object entity, IEventSource source): base(source)
{
   if (entity == null)
      throw new ArgumentNullException("entity", [[#variable70bd9780]]);
   this.entity = entity;
}

public [[#variable550e6c60]](string entityName, object [[#variable70bd9660]], IEventSource source): this( [[#variable70bd9660]], source)
{
   this.entityName = entityName;
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#550e6c60]]
SaveOrUpdateEvent 
12[[#550e6c60]]
DeleteEvent 
21[[#70bd9780]]
"attempt to create saveOrUpdate event with null entity" 
22[[#70bd9780]]
"Attempt to create delete event with null entity" 
31[[#70bd9660]]
original 
32[[#70bd9660]]
entity