CloneSet726


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7201.000non_pp_embedded_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1781
src/NHibernate/Id/SequenceHiLoGenerator.cs
2784
src/NHibernate/Id/TableHiLoGenerator.cs
Clone Instance
1
Line Count
7
Source Line
81
Source File
src/NHibernate/Id/SequenceHiLoGenerator.cs

                        if (maxLo < 1)
                        {
                                //keep the behavior consistent even for boundary usages
                                long val = Convert.ToInt64( base.Generate(session, obj));
                                if (val == 0)
                                        val = Convert.ToInt64( base.Generate(session, obj));
                                return IdentifierGeneratorFactory.CreateNumber(val, returnClass);
                        }


Clone Instance
2
Line Count
7
Source Line
84
Source File
src/NHibernate/Id/TableHiLoGenerator.cs

                        if (maxLo < 1)
                        {
                                //keep the behavior consistent even for boundary usages
                                long val = Convert.ToInt64( base.Generate(session, obj));
                                if (val == 0)
                                        val = Convert.ToInt64( base.Generate(session, obj));
                                return IdentifierGeneratorFactory.CreateNumber(val, returnClass);
                        }


Clone AbstractionParameter Count: 0Parameter Bindings

if (maxLo < 1)
{
   //keep the behavior consistent even for boundary usages
   long val = Convert.ToInt64( base.Generate(session, obj));
   if (val == 0)
      val = Convert.ToInt64( base.Generate(session, obj));
   return IdentifierGeneratorFactory.CreateNumber(val, returnClass);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None