Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 3 | 0.974 | class_member_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 17 | src/NHibernate/Event/DeleteEvent.cs |
2 | 13 | 19 | src/NHibernate/Event/SaveOrUpdateEvent.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; } |
| ||||
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; } |
| |||
/// <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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#550e6c60]] | SaveOrUpdateEvent |
1 | 2 | [[#550e6c60]] | DeleteEvent |
2 | 1 | [[#70bd9780]] | "attempt to create saveOrUpdate event with null entity" |
2 | 2 | [[#70bd9780]] | "Attempt to create delete event with null entity" |
3 | 1 | [[#70bd9660]] | original |
3 | 2 | [[#70bd9660]] | entity |