| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 25 | 2 | 5 | 0.980 | class_member_declarations[4] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 25 | 32 | src/NHibernate/Event/MergeEvent.cs |
| 2 | 25 | 34 | src/NHibernate/Event/SaveOrUpdateEvent.cs |
| ||||
public MergeEvent(string entityName, object original, object id, IEventSource source)
: this(entityName, original, source)
{
if (id == null)
throw new ArgumentNullException("id", "attempt to create merge event with null identifier");
RequestedId = id;
}
public object Original
{
get { return original;
}
set { original = value;
}
}
public string EntityName
{
get { return entityName;
}
set { entityName = value;
}
}
public object RequestedId
{
get { return requestedId;
}
set { requestedId = value;
}
}
|
| ||||
public SaveOrUpdateEvent(string entityName, object original, object id, IEventSource source)
: this(entityName, original, source)
{
if (id == null)
throw new ArgumentNullException("id", "attempt to create saveOrUpdate event with null identifier");
requestedId = id;
}
public object Entity
{
get { return entity;
}
set { entity = value;
}
}
public string EntityName
{
get { return entityName;
}
set { entityName = value;
}
}
public object RequestedId
{
get { return requestedId;
}
set { requestedId = value;
}
}
|
| |||
public [[#variable6fd504e0]](string entityName, object original, object id, IEventSource source): this(entityName, original, source)
{
if (id == null)
throw new ArgumentNullException("id", [[#variable6fd50580]]);
[[#variable6fd504c0]]= id;
}
public object [[#variable6fd50340]]
{
get
{
return [[#variable6fd50280]];
}
set
{
[[#variable6fd50280]]= value;
}
}
public string EntityName
{
get
{
return entityName;
}
set
{
entityName = value;
}
}
public object RequestedId
{
get
{
return requestedId;
}
set
{
requestedId = value;
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#6fd504e0]] | SaveOrUpdateEvent |
| 1 | 2 | [[#6fd504e0]] | MergeEvent |
| 2 | 1 | [[#6fd50580]] | "attempt to create saveOrUpdate event with null identifier" |
| 2 | 2 | [[#6fd50580]] | "attempt to create merge event with null identifier" |
| 3 | 1 | [[#6fd504c0]] | requestedId |
| 3 | 2 | [[#6fd504c0]] | RequestedId |
| 4 | 1 | [[#6fd50340]] | Entity |
| 4 | 2 | [[#6fd50340]] | Original |
| 5 | 1 | [[#6fd50280]] | entity |
| 5 | 2 | [[#6fd50280]] | original |