CloneSet986


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10220.976statement_list[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11027
src/NHibernate/AdoNet/Expectations.cs
212104
src/NHibernate/AdoNet/Expectations.cs
Clone Instance
1
Line Count
10
Source Line
27
Source File
src/NHibernate/AdoNet/Expectations.cs

                                if (expectedRowCount > rowCount)
                                {
                                        throw new StaleStateException(
                                                "Unexpected row count: " + rowCount + "; expected: " + expectedRowCount);
                                }

                                if (expectedRowCount < rowCount)
                                {
                                        String msg = "Unexpected row count: " + rowCount + "; expected: " + expectedRowCount;
                                        throw new TooManyRowsAffectedException(msg, expectedRowCount, rowCount);
                                }


Clone Instance
2
Line Count
12
Source Line
104
Source File
src/NHibernate/AdoNet/Expectations.cs

                        if (expectedRowCount > rowCount)
                        {
                                throw new StaleStateException(
                                        "Batch update returned unexpected row count from update; actual row count: " + rowCount +
                                        "; expected: " + expectedRowCount);
                        }

                        if (expectedRowCount < rowCount)
                        {
                                string msg = "Batch update returned unexpected row count from update; actual row count: " + rowCount +
                                             "; expected: " + expectedRowCount;
                                throw new TooManyRowsAffectedException(msg, expectedRowCount, rowCount);
                        }


Clone AbstractionParameter Count: 2Parameter Bindings

if (expectedRowCount > rowCount)
{
   throw new StaleStateException( [[#variable46982f00]]+ rowCount + "; expected: " + expectedRowCount);
}
if (expectedRowCount < rowCount)
{
    [[#variable46982de0]]msg = [[#variable46982f00]]+ rowCount + "; expected: " + expectedRowCount;
   throw new TooManyRowsAffectedException(msg, expectedRowCount, rowCount);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#46982f00]]
"Unexpected row count: " 
12[[#46982f00]]
"Batch update returned unexpected row count from update; actual row count: " 
21[[#46982de0]]
String 
22[[#46982de0]]
string