CloneSet354


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
33210.987class_member_declarations[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
13386
src/NHibernate/Loader/Custom/ColumnCollectionAliases.cs
233105
src/NHibernate/Loader/GeneratedCollectionAliases.cs
Clone Instance
1
Line Count
33
Source Line
86
Source File
src/NHibernate/Loader/Custom/ColumnCollectionAliases.cs

                private static string Join(IEnumerable aliases)
                {
                        if (aliases == null)
                        {
                                return null;
                        }

                        return StringHelper.Join(", ", aliases);
                }

                private string[] GetUserProvidedAliases(string propertyPath, string[] defaultAliases)
                {
                        string[] result;
                        if ( !userProvidedAliases.TryGetValue(propertyPath, out result))
                        {
                                return defaultAliases;
                        }
                        else
                        {
                                return result;
                        }
                }

                private string GetUserProvidedAlias(string propertyPath, string defaultAlias)
                {
                        string[] columns;
                        if ( !userProvidedAliases.TryGetValue(propertyPath, out columns))
                        {
                                return defaultAlias;
                        }
                        else
                        {
                                return columns[0];
                        }
                }



Clone Instance
2
Line Count
33
Source Line
105
Source File
src/NHibernate/Loader/GeneratedCollectionAliases.cs

                private static string Join(IEnumerable<string> aliases)
                {
                        if (aliases == null)
                        {
                                return null;
                        }

                        return StringHelper.Join(", ", aliases);
                }

                private string[] GetUserProvidedAliases(string propertyPath, string[] defaultAliases)
                {
                        string[] result;
                        if ( !userProvidedAliases.TryGetValue(propertyPath, out result))
                        {
                                return defaultAliases;
                        }
                        else
                        {
                                return result;
                        }
                }

                private string GetUserProvidedAlias(string propertyPath, string defaultAlias)
                {
                        string[] columns;
                        if ( !userProvidedAliases.TryGetValue(propertyPath, out columns))
                        {
                                return defaultAlias;
                        }
                        else
                        {
                                return columns[0];
                        }
                }



Clone AbstractionParameter Count: 1Parameter Bindings

private static string Join( [[#variable6c9db460]]aliases)
{
   if (aliases == null)
   {
      return null;
   }
   return StringHelper.Join(", ", aliases);
}

private string[] GetUserProvidedAliases(string propertyPath, string[] defaultAliases)
{
   string[] result;
   if ( !userProvidedAliases.TryGetValue(propertyPath, out result))
   {
      return defaultAliases;
   }
   else
   {
      return result;
   }
}

private string GetUserProvidedAlias(string propertyPath, string defaultAlias)
{
   string[] columns;
   if ( !userProvidedAliases.TryGetValue(propertyPath, out columns))
   {
      return defaultAlias;
   }
   else
   {
      return columns[0];
   }
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6c9db460]]
IEnumerable<string> 
12[[#6c9db460]]
IEnumerable