Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 1 | 0.989 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 110 | src/NHibernate.Test/NHSpecificTest/NH1601/Fixture1.cs |
2 | 10 | 119 | src/NHibernate.Test/NHSpecificTest/NH1601/Fixture2.cs |
| ||||
public void RefreshProject(ProjectWithOneList project) { using (ISession session = OpenSession()) using (ITransaction tx = session.BeginTransaction()) { //The project is refreshed and Scenario1, Scenario2 and Scenario3 properties can be set //This will succeed when the scenario list is set and accessed during the set but only for //Scenario 2 and Scenario3. It will fail if the scenario list is accessed during the set for Scenario1 session.Refresh(project); } } |
| ||||
public void RefreshProject(Project project) { using (ISession session = OpenSession()) using (ITransaction tx = session.BeginTransaction()) { //The project is refreshed and Scenario1, Scenario2 and Scenario3 properties can be set //This will succeed when the scenario list is set and accessed during the set but only for //Scenario 2 and Scenario3. It will fail if the scenario list is accessed during the set for Scenario1 session.Refresh(project); } } |
| |||
public void RefreshProject( [[#variable6f24c680]]project) { using (ISession session = OpenSession()) using (ITransaction tx = session.BeginTransaction()) { //The project is refreshed and Scenario1, Scenario2 and Scenario3 properties can be set //This will succeed when the scenario list is set and accessed during the set but only for //Scenario 2 and Scenario3. It will fail if the scenario list is accessed during the set for Scenario1 session.Refresh(project); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6f24c680]] | Project |
1 | 2 | [[#6f24c680]] | ProjectWithOneList |