CloneSet1075


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14220.981class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11444
src/NHibernate/SqlCommand/JoinFragment.cs
21461
src/NHibernate/SqlCommand/JoinFragment.cs
Clone Instance
1
Line Count
14
Source Line
44
Source File
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;
                        }
                }



Clone Instance
2
Line Count
14
Source Line
61
Source File
src/NHibernate/SqlCommand/JoinFragment.cs

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



Clone AbstractionParameter Count: 2Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6f4a7a20]]
SqlString 
12[[#6f4a7a20]]
string 
21[[#6f4a79c0]]
StartsWithCaseInsensitive 
22[[#6f4a79c0]]
StartsWith