CloneSet539


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
24230.984class_member_declarations[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12463
src/NHibernate/Id/Enhanced/OptimizerFactory.cs
224198
src/NHibernate/Id/Enhanced/OptimizerFactory.cs
Clone Instance
1
Line Count
24
Source Line
63
Source File
src/NHibernate/Id/Enhanced/OptimizerFactory.cs

                        private long lastSourceValue = - 1;

                        private long value_Renamed;

                        public HiLoOptimizer(System.Type returnClass, int incrementSize) : base(returnClass, incrementSize)
                        {
                                if (incrementSize < 1)
                                {
                                        throw new HibernateException("increment size cannot be less than 1");
                                }
                                if (log.IsDebugEnabled)
                                {
                                        log.Debug("creating hilo optimizer with [incrementSize=" + incrementSize + "; returnClass=" + returnClass.FullName +
                                                    "]");
                                }
                        }

                        public override long LastSourceValue
                        {
                                get { return lastSourceValue;
                                    }
                        }

                        public long LastValue
                        {
                                get { return value_Renamed - 1;
                                    }
                        }



Clone Instance
2
Line Count
24
Source Line
198
Source File
src/NHibernate/Id/Enhanced/OptimizerFactory.cs

                        private long hiValue = - 1;

                        private long value_Renamed;

                        public PooledOptimizer(System.Type returnClass, int incrementSize) : base(returnClass, incrementSize)
                        {
                                if (incrementSize < 1)
                                {
                                        throw new HibernateException("increment size cannot be less than 1");
                                }
                                if (log.IsDebugEnabled)
                                {
                                        log.Debug("creating pooled optimizer with [incrementSize=" + incrementSize + "; returnClass=" +
                                                    returnClass.FullName + "]");
                                }
                        }

                        public override long LastSourceValue
                        {
                                get { return hiValue;
                                    }
                        }

                        public long LastValue
                        {
                                get { return value_Renamed - 1;
                                    }
                        }



Clone AbstractionParameter Count: 3Parameter Bindings

private long [[#variable5e478be0]]= - 1;

private long value_Renamed;

public [[#variable5e478bc0]](System.Type returnClass, int incrementSize): base(returnClass, incrementSize)
{
   if (incrementSize < 1)
   {
      throw new HibernateException("increment size cannot be less than 1");
   }
   if (log.IsDebugEnabled)
   {
      log.Debug( [[#variable5e478b60]]+ incrementSize + "; returnClass=" + returnClass.FullName + "]");
   }
}

public override long LastSourceValue
{
   get
   {
      return [[#variable5e478be0]];
   }
}

public long LastValue
{
   get
   {
      return value_Renamed - 1;
   }
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5e478be0]]
lastSourceValue 
12[[#5e478be0]]
hiValue 
21[[#5e478bc0]]
HiLoOptimizer 
22[[#5e478bc0]]
PooledOptimizer 
31[[#5e478b60]]
"creating hilo optimizer with [incrementSize=" 
32[[#5e478b60]]
"creating pooled optimizer with [incrementSize="