Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 3 | 3 | 0.960 | class_member_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 28 | src/NHibernate/Properties/BackrefPropertyAccessor.cs |
2 | 8 | 17 | src/NHibernate/Properties/NoopAccessor.cs |
3 | 8 | 55 | src/NHibernate/Properties/ReadonlyAccessor.cs |
| ||||
public ISetter GetSetter(System.Type theClass, string propertyName) { return new BackrefSetter(); } public bool CanAccessThroughReflectionOptimizer { get { return false; } } |
| ||||
public ISetter GetSetter(System.Type theClass, string propertyName) { return new NoopSetter(); } public bool CanAccessThroughReflectionOptimizer { get { return false; } } |
| ||||
/// <summary> /// Create a <see cref="NoopAccessor.NoopSetter"/> to do nothing when trying to /// se the value of the mapped Property /// </summary> /// <param name="type">The <see cref="System.Type"/> to find the mapped Property in.</param> /// <param name="propertyName">The name of the mapped Property to set.</param> /// <returns> /// An instance of <see cref="NoopAccessor.NoopSetter"/>. /// </returns> public ISetter GetSetter(System.Type type, string propertyName) { return new NoopSetter(); } public bool CanAccessThroughReflectionOptimizer { get { return true; } } |
| |||
/// <summary> /// Create a <see cref="NoopAccessor.NoopSetter"/> to do nothing when trying to /// se the value of the mapped Property /// </summary> /// <param name="type">The <see cref="System.Type"/> to find the mapped Property in.</param> /// <param name="propertyName">The name of the mapped Property to set.</param> /// <returns> /// An instance of <see cref="NoopAccessor.NoopSetter"/>. /// </returns> public ISetter GetSetter(System.Type [[#variable2897fbe0]], string propertyName) { return new [[#variable2897fbc0]](); } public bool CanAccessThroughReflectionOptimizer { get { return [[#variable2897fb80]]; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2897fbe0]] | type |
1 | 2 | [[#2897fbe0]] | theClass |
1 | 3 | [[#2897fbe0]] | theClass |
2 | 1 | [[#2897fbc0]] | NoopSetter |
2 | 2 | [[#2897fbc0]] | NoopSetter |
2 | 3 | [[#2897fbc0]] | BackrefSetter |
3 | 1 | [[#2897fb80]] | true |
3 | 2 | [[#2897fb80]] | false |
3 | 3 | [[#2897fb80]] | false |