CloneSet1208


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8250.952switch_sections[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18106
src/NHibernate/Cfg/ConfigurationSchema/ClassCacheConfiguration.cs
2855
src/NHibernate/Cfg/ConfigurationSchema/ListenerConfiguration.cs
Clone Instance
1
Line Count
8
Source Line
106
Source File
src/NHibernate/Cfg/ConfigurationSchema/ClassCacheConfiguration.cs

                                                case "class":
                                                        if (classCacheElement.Value.Trim().Length == 0)
                                                                throw new HibernateConfigException("Invalid class-cache element; the attribute <class> must be assigned with no empty value");
                                                        clazz = classCacheElement.Value;
                                                        break;
                                                case "usage":
                                                        usage = CfgXmlHelper.ClassCacheUsageConvertFrom(classCacheElement.Value);
                                                        break;


Clone Instance
2
Line Count
8
Source Line
55
Source File
src/NHibernate/Cfg/ConfigurationSchema/ListenerConfiguration.cs

                                                case "class":
                                                        if (listenerElement.Value.Trim().Length == 0)
                                                                throw new HibernateConfigException("Invalid listener element; the attribute <class> must be assigned with no empty value");
                                                        clazz = listenerElement.Value;
                                                        break;
                                                case "type":
                                                        type = CfgXmlHelper.ListenerTypeConvertFrom(listenerElement.Value);
                                                        break;


Clone AbstractionParameter Count: 5Parameter Bindings

case "class":
   if ( [[#variable28d00900]].Value.Trim().Length == 0)
      throw new HibernateConfigException( [[#variable28d007c0]]);
   clazz = [[#variable28d00900]].Value;
   break;
case [[#variable28d00780]]:
    [[#variable28d00720]]= CfgXmlHelper. [[#variable28d005e0]]( [[#variable28d00900]].Value);
   break;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#28d00900]]
classCacheElement 
12[[#28d00900]]
listenerElement 
21[[#28d007c0]]
"Invalid class-cache element; the attribute <class> must be assigned with no empty value" 
22[[#28d007c0]]
"Invalid listener element; the attribute <class> must be assigned with no empty value" 
31[[#28d00780]]
"usage" 
32[[#28d00780]]
"type" 
41[[#28d00720]]
usage 
42[[#28d00720]]
type 
51[[#28d005e0]]
ClassCacheUsageConvertFrom 
52[[#28d005e0]]
ListenerTypeConvertFrom