| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 15 | 2 | 1 | 0.992 | class_member_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 15 | 374 | src/NHibernate/Collection/PersistentBag.cs |
| 2 | 14 | 245 | src/NHibernate/Collection/PersistentList.cs |
| ||||
public int Add(object value)
{
if ( !IsOperationQueueEnabled)
{
Write();
return bag.Add(value);
}
else
{
QueueOperation(new SimpleAddDelayedOperation(this, value));
//TODO: take a look at this - I don't like it because it changes the
// meaning of Add - instead of returning the index it was added at
// returns a "fake" index - not consistent with IList interface...
return - 1;
}
}
|
| ||||
#region IList Members
public int Add(object value)
{
if ( !IsOperationQueueEnabled)
{
Write();
return list.Add(value);
}
else
{
QueueOperation(new SimpleAddDelayedOperation(this, value));
//TODO: take a look at this - I don't like it because it changes the
// meaning of Add - instead of returning the index it was added at
// returns a "fake" index - not consistent with IList interface...
return - 1;
}
}
|
| |||
#region IList Members
public int Add(object value)
{
if ( !IsOperationQueueEnabled)
{
Write();
return [[#variable2d329fc0]].Add(value);
}
else
{
QueueOperation(new SimpleAddDelayedOperation(this, value));
//TODO: take a look at this - I don't like it because it changes the
// meaning of Add - instead of returning the index it was added at
// returns a "fake" index - not consistent with IList interface...
return - 1;
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#2d329fc0]] | bag |
| 1 | 2 | [[#2d329fc0]] | list |