Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
35 | 2 | 3 | 0.952 | compilation_unit |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 35 | 1 | src/NHibernate.Test/Any/IntegerPropertyValue.cs |
2 | 32 | 1 | src/NHibernate.Test/Any/StringPropertyValue.cs |
| ||||
namespace NHibernate.Test.Any { public class IntegerPropertyValue : IPropertyValue { private long id; private int value; public IntegerPropertyValue() { } public IntegerPropertyValue(int value) { this.value = value; } public virtual long Id { get { return id; } set { id = value; } } public virtual int Value { get { return value; } set { this.value = value; } } #region IPropertyValue Members public virtual string AsString() { return value.ToString(); } #endregion } } |
| ||||
namespace NHibernate.Test.Any { public class StringPropertyValue: IPropertyValue { private long id; private string value; public StringPropertyValue() { } public StringPropertyValue(string value) { this.value = value; } public virtual long Id { get { return id; } set { id = value; } } public virtual string Value { get { return value; } set { this.value = value; } } public virtual string AsString() { return value; } } } |
| |||
namespace NHibernate.Test.Any { public class [[#variable2c4de020]]: IPropertyValue { private long id; private [[#variable282e3f80]]value; public [[#variable2c4de020]]() { } public [[#variable2c4de020]]( [[#variable282e3f80]]value) { this.value = value; } public virtual long Id { get { return id; } set { id = value; } } public virtual [[#variable282e3f80]]Value { get { return value; } set { this.value = value; } } #region IPropertyValue Members public virtual string AsString() { return [[#variable282e3f00]]; } #endregion } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2c4de020]] | IntegerPropertyValue |
1 | 2 | [[#2c4de020]] | StringPropertyValue |
2 | 1 | [[#282e3f80]] | int |
2 | 2 | [[#282e3f80]] | string |
3 | 1 | [[#282e3f00]] | value.ToString() |
3 | 2 | [[#282e3f00]] | value |