Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 2 | 3 | 0.966 | class_member_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 17 | 1125 | src/NHibernate/Cfg/XmlHbmBinding/ClassBinder.cs |
2 | 17 | 1304 | src/NHibernate/Cfg/XmlHbmBinding/ClassBinder.cs |
| ||||
protected static void BindIndex(XmlAttribute indexAttribute, Table table, Column column) { if (indexAttribute != null && table != null) { var tokens = new StringTokenizer(indexAttribute.Value, ",", false); foreach (string token in tokens) table.GetOrCreateIndex(token.Trim()).AddColumn(column); } } protected static void BindUniqueKey(XmlAttribute uniqueKeyAttribute, Table table, Column column) { if (uniqueKeyAttribute != null && table != null) { var tokens = new StringTokenizer(uniqueKeyAttribute.Value, ",", false); foreach (string token in tokens) table.GetOrCreateUniqueKey(token.Trim()).AddColumn(column); } } |
| ||||
protected static void BindIndex(string indexAttribute, Table table, Column column) { if (indexAttribute != null && table != null) { var tokens = new StringTokenizer(indexAttribute, ",", false); foreach (string token in tokens) table.GetOrCreateIndex(token.Trim()).AddColumn(column); } } protected static void BindUniqueKey(string uniqueKeyAttribute, Table table, Column column) { if (uniqueKeyAttribute != null && table != null) { var tokens = new StringTokenizer(uniqueKeyAttribute, ",", false); foreach (string token in tokens) table.GetOrCreateUniqueKey(token.Trim()).AddColumn(column); } } |
| |||
protected static void BindIndex( [[#variable6c537480]]indexAttribute, Table table, Column column) { if (indexAttribute != null && table != null) { var tokens = new StringTokenizer( [[#variable6e722740]], ",", false); foreach (string token in tokens) table.GetOrCreateIndex(token.Trim()).AddColumn(column); } } protected static void BindUniqueKey( [[#variable6c537480]]uniqueKeyAttribute, Table table, Column column) { if (uniqueKeyAttribute != null && table != null) { var tokens = new StringTokenizer( [[#variable6f823360]], ",", false); foreach (string token in tokens) table.GetOrCreateUniqueKey(token.Trim()).AddColumn(column); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6c537480]] | XmlAttribute |
1 | 2 | [[#6c537480]] | string |
2 | 1 | [[#6e722740]] | indexAttribute.Value |
2 | 2 | [[#6e722740]] | indexAttribute |
3 | 1 | [[#6f823360]] | uniqueKeyAttribute.Value |
3 | 2 | [[#6f823360]] | uniqueKeyAttribute |