Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 3 | 0.960 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 24 | src/NHibernate.Test/NHSpecificTest/NH1250/PolymorphicJoinFetchFixture.cs |
2 | 10 | 37 | src/NHibernate.Test/NHSpecificTest/NH1250/PolymorphicJoinFetchFixture.cs |
| ||||
[Test] public void FetchUsingICriteria() { using (ISession s = OpenSession()) using (ITransaction tx = s.BeginTransaction()) { s.CreateCriteria( typeof(Party)). SetMaxResults(10). List(); tx.Commit(); } } |
| ||||
[Test] public void FetchUsingIQuery() { using (ISession s = OpenSession()) using (ITransaction tx = s.BeginTransaction()) { s.CreateQuery("from Party"). SetMaxResults(10). List(); tx.Commit(); } } |
| |||
[Test] public void [[#variable289cdc40]]() { using (ISession s = OpenSession()) using (ITransaction tx = s.BeginTransaction()) { s. [[#variable289cdd20]]( [[#variable289cdd00]]).SetMaxResults(10).List(); tx.Commit(); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#289cdc40]] | FetchUsingICriteria |
1 | 2 | [[#289cdc40]] | FetchUsingIQuery |
2 | 1 | [[#289cdd20]] | CreateCriteria |
2 | 2 | [[#289cdd20]] | CreateQuery |
3 | 1 | [[#289cdd00]] | typeof(Party) |
3 | 2 | [[#289cdd00]] | "from Party" |