Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 3 | 0.965 | non_pp_embedded_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 320 | src/NHibernate/Cfg/SettingsFactory.cs |
2 | 7 | 185 | src/NHibernate/Dialect/Dialect.cs |
| ||||
try { return (ICacheProvider) Environment.BytecodeProvider.ObjectsFactory.CreateInstance(ReflectHelper.ClassForName(cacheClassName)); } catch (Exception e) { throw new HibernateException("could not instantiate CacheProvider: " + cacheClassName, e); } |
| ||||
try { return (Dialect) Environment.BytecodeProvider.ObjectsFactory.CreateInstance(ReflectHelper.ClassForName(dialectName)); } catch (Exception e) { throw new HibernateException("Could not instantiate dialect class " + dialectName, e); } |
| |||
try { return ( [[#variable27801ae0]])Environment.BytecodeProvider.ObjectsFactory.CreateInstance(ReflectHelper.ClassForName( [[#variable27801a20]])); } catch (Exception e) { throw new HibernateException( [[#variable27801a00]]+ [[#variable27801a20]], e); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#27801ae0]] | ICacheProvider |
1 | 2 | [[#27801ae0]] | Dialect |
2 | 1 | [[#27801a20]] | cacheClassName |
2 | 2 | [[#27801a20]] | dialectName |
3 | 1 | [[#27801a00]] | "could not instantiate CacheProvider: " |
3 | 2 | [[#27801a00]] | "Could not instantiate dialect class " |