CloneSet1277


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11230.978statement_list[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110352
src/NHibernate/Cfg/SettingsFactory.cs
211369
src/NHibernate/Cfg/SettingsFactory.cs
Clone Instance
1
Line Count
10
Source Line
352
Source File
src/NHibernate/Cfg/SettingsFactory.cs

                        log.Info("Query translator: " + className);
                        try
                        {
                                return
                                        (IQueryTranslatorFactory)
                                        Environment.BytecodeProvider.ObjectsFactory.CreateInstance(ReflectHelper.ClassForName(className));
                        }
                        catch (Exception cnfe)
                        {
                                throw new HibernateException("could not instantiate QueryTranslatorFactory: " + className, cnfe);
                        }


Clone Instance
2
Line Count
11
Source Line
369
Source File
src/NHibernate/Cfg/SettingsFactory.cs

                        log.Info("Transaction factory: " + className);

                        try
                        {
                                return
                                        (ITransactionFactory)
                                        Environment.BytecodeProvider.ObjectsFactory.CreateInstance(ReflectHelper.ClassForName(className));
                        }
                        catch (Exception cnfe)
                        {
                                throw new HibernateException("could not instantiate TransactionFactory: " + className, cnfe);
                        }


Clone AbstractionParameter Count: 3Parameter Bindings

log.Info( [[#variable2bf66a40]]+ className);
try
{
   return ( [[#variable2bffea00]])Environment.BytecodeProvider.ObjectsFactory.CreateInstance(ReflectHelper.ClassForName(className));
}
catch (Exception cnfe)
{
   throw new HibernateException( [[#variable2bfffee0]]+ className, cnfe);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2bf66a40]]
"Transaction factory: " 
12[[#2bf66a40]]
"Query translator: " 
21[[#2bffea00]]
ITransactionFactory 
22[[#2bffea00]]
IQueryTranslatorFactory 
31[[#2bfffee0]]
"could not instantiate TransactionFactory: " 
32[[#2bfffee0]]
"could not instantiate QueryTranslatorFactory: "