CloneSet669


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10201.000class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11040
src/NHibernate.Test/Classic/EntityWithLifecycle.cs
21049
src/NHibernate.Test/Classic/Video.cs
Clone Instance
1
Line Count
10
Source Line
40
Source File
src/NHibernate.Test/Classic/EntityWithLifecycle.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;
                }



Clone Instance
2
Line Count
10
Source Line
49
Source File
src/NHibernate.Test/Classic/Video.cs

                #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;
                }



Clone AbstractionParameter Count: 0Parameter Bindings

#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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None