CloneSet2695


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
3230.956class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1348
src/NHibernate.DomainModel/NHSpecific/NullableTypesType.cs
2332
src/NHibernate/IdentityEqualityComparer.cs
Clone Instance
1
Line Count
3
Source Line
48
Source File
src/NHibernate.DomainModel/NHSpecific/NullableTypesType.cs

                public override bool IsEqual(object x, object y)
                {
                        return Equals(x, y);
                }



Clone Instance
2
Line Count
3
Source Line
32
Source File
src/NHibernate/IdentityEqualityComparer.cs

                /// <summary>
                /// Performs a null safe comparison using "==" instead of Object.Equals()
                /// </summary>
                /// <param name="x">First object to compare.</param>
                /// <param name="y">Second object to compare.</param>
                /// <returns>
                /// true if x is the same instance as y or if both are null references; otherwise, false.
                ///</returns>
                /// <remarks>
                /// This is Lazy collection safe since it uses <see cref="Object.ReferenceEquals"/>, 
                /// unlike <c>Object.Equals()</c> which currently causes NHibernate to load up the collection.
                /// This behaivior of Collections is likely to change because Java's collections override Equals() and 
                /// .net's collections don't. So in .net there is no need to override Equals() and 
                /// GetHashCode() on the NHibernate Collection implementations.
                /// </remarks>
                public new bool Equals(object x, object y)
                {
                        return ReferenceEquals(x, y);
                }



Clone AbstractionParameter Count: 3Parameter Bindings

/// <summary>
/// Performs a null safe comparison using "==" instead of Object.Equals()
/// </summary>
/// <param name="x">First object to compare.</param>
/// <param name="y">Second object to compare.</param>
/// <returns>
/// true if x is the same instance as y or if both are null references; otherwise, false.
///</returns>
/// <remarks>
/// This is Lazy collection safe since it uses <see cref="Object.ReferenceEquals"/>, 
/// unlike <c>Object.Equals()</c> which currently causes NHibernate to load up the collection.
/// This behaivior of Collections is likely to change because Java's collections override Equals() and 
/// .net's collections don't. So in .net there is no need to override Equals() and 
/// GetHashCode() on the NHibernate Collection implementations.
/// </remarks>
public [[#variable70ae6ae0]]bool [[#variable70ae6a40]](object x, object y)
{
   return [[#variable70ae69e0]](x, y);
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#70ae6ae0]]
new 
12[[#70ae6ae0]]
override 
21[[#70ae6a40]]
Equals 
22[[#70ae6a40]]
IsEqual 
31[[#70ae69e0]]
ReferenceEquals 
32[[#70ae69e0]]
Equals