Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 3 | 0.959 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 18 | src/NHibernate.Test/Events/Collections/ChildValue.cs |
2 | 12 | 63 | src/NHibernate/Engine/Query/Sql/NativeSQLQuerySpecification.cs |
| ||||
public override bool Equals(object obj) { if (this == obj) return true; ChildValue that = obj as ChildValue; if (that == null) return false; return name == that.name; } |
| ||||
public override bool Equals(object obj) { if (this == obj) return true; var that = obj as NativeSQLQuerySpecification; if (that == null) return false; // NHibernate different impl.: NativeSQLQuerySpecification is immutable and the hash is calculated at Ctor return hashCode == that.hashCode; } |
| |||
public override bool Equals(object obj) { if (this == obj) return true; [[#variable28c72da0]]that = obj as [[#variable28c72d40]]; if (that == null) return false; // NHibernate different impl.: NativeSQLQuerySpecification is immutable and the hash is calculated at Ctor return [[#variable28c72ce0]]== that. [[#variable28c72ce0]]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#28c72da0]] | var |
1 | 2 | [[#28c72da0]] | ChildValue |
2 | 1 | [[#28c72d40]] | NativeSQLQuerySpecification |
2 | 2 | [[#28c72d40]] | ChildValue |
3 | 1 | [[#28c72ce0]] | hashCode |
3 | 2 | [[#28c72ce0]] | name |