Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
20 | 2 | 1 | 0.995 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 20 | 585 | src/NHibernate/Type/ComponentType.cs |
2 | 20 | 634 | src/NHibernate/Type/ComponentType.cs |
| ||||
public override bool IsEqual(object x, object y, EntityMode entityMode) { if (x == y) { return true; } if (x == null || y == null) { return false; } object[] xvalues = GetPropertyValues(x, entityMode); object[] yvalues = GetPropertyValues(y, entityMode); for (int i = 0; i < propertySpan; i++) { if ( !propertyTypes[i].IsEqual(xvalues[i], yvalues[i], entityMode)) { return false; } } return true; } |
| ||||
public override bool IsSame(object x, object y, EntityMode entityMode) { if (x == y) { return true; } if (x == null || y == null) { return false; } object[] xvalues = GetPropertyValues(x, entityMode); object[] yvalues = GetPropertyValues(y, entityMode); for (int i = 0; i < propertySpan; i++) { if ( !propertyTypes[i].IsSame(xvalues[i], yvalues[i], entityMode)) { return false; } } return true; } |
| |||
public override bool [[#variable662f9a80]](object x, object y, EntityMode entityMode) { if (x == y) { return true; } if (x == null || y == null) { return false; } object[] xvalues = GetPropertyValues(x, entityMode); object[] yvalues = GetPropertyValues(y, entityMode); for (int i = 0; i < propertySpan; i++) { if ( !propertyTypes[i]. [[#variable662f9a80]](xvalues[i], yvalues[i], entityMode)) { return false; } } return true; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#662f9a80]] | IsSame |
1 | 2 | [[#662f9a80]] | IsEqual |