1
Vote

Bug report--There is a bug in IMethodDefinitionExtensions.cs

description

The statement "if(thisOperation.OperationCode!=targetOperation.OperationCode)" should be "if(!thisOperation.OperationCode.Equals(targetOperation.OperationCode))"
otherwise, you can't identify the difference for this kind of comparisons:
 
new version:
public class example
{ private double balance;
private boolean isOverdraft;
 
public void withdraw(double amount)
{
   if(balance<10)
       isOverdraft=true;
}
}
 
old version:
public class example
{ private double balance;
private boolean isOverdraft;
 
public void withdraw(double amount)
{
   if(balance<1)
       isOverdraft=true;
}
}

comments