| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 10 | 2 | 0 | 1.000 | class_member_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 10 | 40 | src/NHibernate.Test/Classic/EntityWithLifecycle.cs |
| 2 | 10 | 49 | src/NHibernate.Test/Classic/Video.cs |
| ||||
public virtual IList<string> GetBrokenRules()
{
IList<string> result = new List<string> (3);
if (string.IsNullOrEmpty(Name) || Name.Trim().Length < 2)
result.Add("The Name must have more than one char.");
if (Heigth <= 0)
result.Add("Heigth must be great than 0");
if (Width <= 0)
result.Add("Width must be great than 0.");
return result;
}
|
| ||||
#region IValidatable Members
public virtual IList<string> GetBrokenRules()
{
IList<string> result = new List<string> (3);
if (string.IsNullOrEmpty(Name) || Name.Trim().Length < 2)
result.Add("The Name must have more than one char.");
if (Heigth <= 0)
result.Add("Heigth must be great than 0");
if (Width <= 0)
result.Add("Width must be great than 0.");
return result;
}
|
| |||
#region IValidatable Members
public virtual IList<string> GetBrokenRules()
{
IList<string> result = new List<string> (3);
if (string.IsNullOrEmpty(Name) || Name.Trim().Length < 2)
result.Add("The Name must have more than one char.");
if (Heigth <= 0)
result.Add("Heigth must be great than 0");
if (Width <= 0)
result.Add("Width must be great than 0.");
return result;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| None | |||