Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
33 | 2 | 6 | 0.955 | class_member_declarations[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 33 | 7 | src/NHibernate.Test/SqlTest/Order.cs |
2 | 33 | 8 | src/NHibernate.Test/SqlTest/Product.cs |
| ||||
[Serializable] public class OrderIdType { private string orgid; private string ordernumber; public string Orgid { get { return orgid; } set { orgid = value; } } public string Ordernumber { get { return ordernumber; } set { ordernumber = value; } } public override bool Equals(object obj) { OrderIdType that = obj as OrderIdType; return that != null && that.orgid == orgid && that.ordernumber == ordernumber; } public override int GetHashCode() { return orgid.GetHashCode(); } } private OrderIdType orderId; private Product product; private Person person; |
| ||||
[Serializable] public class ProductIdType { private string orgid; private string productnumber; public string Orgid { get { return orgid; } set { orgid = value; } } public string Productnumber { get { return productnumber; } set { productnumber = value; } } public override bool Equals(object obj) { ProductIdType that = obj as ProductIdType; return that != null && that.orgid == orgid && that.productnumber == productnumber; } public override int GetHashCode() { return orgid.GetHashCode(); } } private ProductIdType productId; private string name; private Person person; |
| |||
[Serializable] public class [[#variable6cd1d9c0]] { private string orgid; private string [[#variable6cd1d900]]; public string Orgid { get { return orgid; } set { orgid = value; } } public string [[#variable5eb5b980]] { get { return [[#variable6cd1d900]]; } set { [[#variable6cd1d900]]= value; } } public override bool Equals(object obj) { [[#variable6cd1d9c0]]that = obj as [[#variable6cd1d9c0]]; return that != null && that.orgid == orgid && that. [[#variable6cd1d900]]== [[#variable6cd1d900]]; } public override int GetHashCode() { return orgid.GetHashCode(); } } private [[#variable6cd1d9c0]] [[#variable6cd1d880]]; private [[#variable5eb68b60]] [[#variable6cd1d940]]; private Person person; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6cd1d9c0]] | OrderIdType |
1 | 2 | [[#6cd1d9c0]] | ProductIdType |
2 | 1 | [[#6cd1d900]] | ordernumber |
2 | 2 | [[#6cd1d900]] | productnumber |
3 | 1 | [[#5eb5b980]] | Ordernumber |
3 | 2 | [[#5eb5b980]] | Productnumber |
4 | 1 | [[#6cd1d880]] | orderId |
4 | 2 | [[#6cd1d880]] | productId |
5 | 1 | [[#5eb68b60]] | Product |
5 | 2 | [[#5eb68b60]] | string |
6 | 1 | [[#6cd1d940]] | product |
6 | 2 | [[#6cd1d940]] | name |