Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 2 | 5 | 0.950 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 17 | 44 | src/NHibernate/Util/StringHelper.cs |
2 | 17 | 63 | src/NHibernate/Util/StringHelper.cs |
| ||||
public static string Join(string separator, IEnumerable objects) { StringBuilder buf = new StringBuilder(); bool first = true; foreach (object obj in objects) { if ( !first) { buf.Append(separator); } first = false; buf.Append(obj); } return buf.ToString(); } |
| ||||
public static SqlString Join(SqlString separator, IEnumerable objects) { SqlStringBuilder buf = new SqlStringBuilder(); bool first = true; foreach (object obj in objects) { if ( !first) { buf.Add(separator); } first = false; buf.AddObject(obj); } return buf.ToSqlString(); } |
| |||
public static [[#variable2c2383e0]]Join( [[#variable2c2383e0]]separator, IEnumerable objects) { [[#variable2c2382c0]]buf = new [[#variable2c2382c0]](); bool first = true; foreach (object obj in objects) { if ( !first) { buf. [[#variable2bf83cc0]](separator); } first = false; buf. [[#variable26f0a900]](obj); } return buf. [[#variable2c2382e0]](); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2c2383e0]] | SqlString |
1 | 2 | [[#2c2383e0]] | string |
2 | 1 | [[#2c2382c0]] | SqlStringBuilder |
2 | 2 | [[#2c2382c0]] | StringBuilder |
3 | 1 | [[#2bf83cc0]] | Add |
3 | 2 | [[#2bf83cc0]] | Append |
4 | 1 | [[#26f0a900]] | AddObject |
4 | 2 | [[#26f0a900]] | Append |
5 | 1 | [[#2c2382e0]] | ToSqlString |
5 | 2 | [[#2c2382e0]] | ToString |