| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 14 | 2 | 2 | 0.981 | class_member_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 14 | 44 | src/NHibernate/SqlCommand/JoinFragment.cs |
| 2 | 14 | 61 | src/NHibernate/SqlCommand/JoinFragment.cs |
| ||||
protected bool AddCondition(SqlStringBuilder buffer, string on)
{
if (StringHelper.IsNotEmpty(on))
{
if ( !on.StartsWith(" and"))
{
buffer.Add(" and ");
}
buffer.Add(on);
return true;
}
else
{
return false;
}
}
|
| ||||
protected bool AddCondition(SqlStringBuilder buffer, SqlString on)
{
if (StringHelper.IsNotEmpty(on))
{
if ( !on.StartsWithCaseInsensitive(" and"))
{
buffer.Add(" and ");
}
buffer.Add(on);
return true;
}
else
{
return false;
}
}
|
| |||
protected bool AddCondition(SqlStringBuilder buffer, [[#variable6f4a7a20]]on)
{
if (StringHelper.IsNotEmpty(on))
{
if ( !on. [[#variable6f4a79c0]](" and"))
{
buffer.Add(" and ");
}
buffer.Add(on);
return true;
}
else
{
return false;
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#6f4a7a20]] | SqlString |
| 1 | 2 | [[#6f4a7a20]] | string |
| 2 | 1 | [[#6f4a79c0]] | StartsWithCaseInsensitive |
| 2 | 2 | [[#6f4a79c0]] | StartsWith |