Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
47 | 2 | 5 | 0.970 | compilation_unit |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 47 | 1 | src/NHibernate.DomainModel/Middle.cs |
2 | 47 | 1 | src/NHibernate.DomainModel/Outer.cs |
| ||||
using System; namespace NHibernate.DomainModel { /// <summary> /// Summary description for Middle. /// </summary> [Serializable] public class Middle { private MiddleKey _id; private string _bla; public MiddleKey Id { get { return _id; } set { _id = value; } } public string Bla { get { return _bla; } set { _bla = value; } } #region System.Object Members public override bool Equals(object obj) { if (this == obj) return true; Middle cidMaster = obj as Middle; if (cidMaster == null) return false; if (_id != null ? !_id.Equals(cidMaster.Id): cidMaster.Id != null) return false; return true; } public override int GetHashCode() { return (_id != null ? _id.GetHashCode(): 0); } #endregion } } |
| ||||
using System; namespace NHibernate.DomainModel { /// <summary> /// Summary description for Outer. /// </summary> [Serializable] public class Outer { private OuterKey _id; private string _bubu; public OuterKey Id { get { return _id; } set { _id = value; } } public string Bubu { get { return _bubu; } set { _bubu = value; } } #region System.Object Members public override bool Equals(object obj) { if (this == obj) return true; Outer rhs = obj as Outer; if (rhs == null) return false; if (_id != null ? !_id.Equals(rhs.Id): rhs.Id != null) return false; return true; } public override int GetHashCode() { return (_id != null ? _id.GetHashCode(): 0); } #endregion } } |
| |||
using System; namespace NHibernate.DomainModel { /// <summary> /// Summary description for Middle. /// Summary description for Outer. /// </summary> [Serializable] public class [[#variable687ae2e0]] { private [[#variable687ae240]]_id; private string [[#variable687ae1c0]]; public [[#variable687ae240]]Id { get { return _id; } set { _id = value; } } public string [[#variable687ae120]] { get { return [[#variable687ae1c0]]; } set { [[#variable687ae1c0]]= value; } } #region System.Object Members public override bool Equals(object obj) { if (this == obj) return true; [[#variable687ae2e0]] [[#variable687ae0c0]]= obj as [[#variable687ae2e0]]; if ( [[#variable687ae0c0]]== null) return false; if (_id != null ? !_id.Equals( [[#variable687ae0c0]].Id): [[#variable687ae0c0]].Id != null) return false; return true; } public override int GetHashCode() { return (_id != null ? _id.GetHashCode(): 0); } #endregion } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#687ae2e0]] | Middle |
1 | 2 | [[#687ae2e0]] | Outer |
2 | 1 | [[#687ae240]] | MiddleKey |
2 | 2 | [[#687ae240]] | OuterKey |
3 | 1 | [[#687ae1c0]] | _bla |
3 | 2 | [[#687ae1c0]] | _bubu |
4 | 1 | [[#687ae120]] | Bla |
4 | 2 | [[#687ae120]] | Bubu |
5 | 1 | [[#687ae0c0]] | cidMaster |
5 | 2 | [[#687ae0c0]] | rhs |