CloneSet1085


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11330.952statement_list[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1115223
src/NHibernate.Test/Legacy/FooBarTest.cs
2125257
src/NHibernate.Test/Legacy/FooBarTest.cs
3111137
src/NHibernate.Test/Legacy/MasterDetailTest.cs
Clone Instance
1
Line Count
11
Source Line
5223
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        try
                        {
                                s.Load( typeof(Foo), id);
                        }
                        //catch (ObjectDeletedException ode) Changed to have same behavior of H3.2
                        catch (ObjectNotFoundException ode)
                        {
                                Assert.IsNotNull(ode); //getting ride of 'ode' is never used compile warning
                                err = true;
                        }
                        Assert.IsTrue(err);


Clone Instance
2
Line Count
12
Source Line
5257
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                        try
                        {
                                s.Load( typeof(Fo), id);
                        }
                        //catch (ObjectDeletedException ode) Changed to have same behavior of H3.2
                        catch (ObjectNotFoundException ode)
                        {
                                Assert.IsNotNull(ode); //getting ride of 'ode' is never used compile warning
                                err = true;
                        }

                        Assert.IsTrue(err);


Clone Instance
3
Line Count
11
Source Line
1137
Source File
src/NHibernate.Test/Legacy/MasterDetailTest.cs

                        try
                        {
                                s.Load( typeof(Custom), id);
                        }
                        catch (ObjectNotFoundException onfe)
                        {
                                Assert.IsNotNull(onfe); //getting ride of 'onfe' is never used compile warning
                                none = true;
                        }

                        Assert.IsTrue(none);


Clone AbstractionParameter Count: 3Parameter Bindings

try
{
   s.Load( typeof( [[#variable46bbbd40]]), id);
}
//catch (ObjectDeletedException ode) Changed to have same behavior of H3.2
catch (ObjectNotFoundException [[#variable46bbbcc0]])
{
   Assert.IsNotNull( [[#variable46bbbcc0]]); //getting ride of 'onfe' is never used compile warning //getting ride of 'ode' is never used compile warning
    [[#variable46bbbd20]]= true;
}
Assert.IsTrue( [[#variable46bbbd20]]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#46bbbd40]]
Custom 
12[[#46bbbd40]]
Foo 
13[[#46bbbd40]]
Fo 
21[[#46bbbcc0]]
onfe 
22[[#46bbbcc0]]
ode 
23[[#46bbbcc0]]
ode 
31[[#46bbbd20]]
none 
32[[#46bbbd20]]
err 
33[[#46bbbd20]]
err