Projects  >  Math.NET Iridium (IRID)

  Issues    

 

 HyperLink  http://tracker.opensourcedotnet.info/Default.aspx?p=2&i=127 
IRID-127 - Collections: Intersection Collection ctor - swap typo
Created: 23/04/2008 15:14:34    
Revised: 26/04/2008 14:47:40
   Back to Issue Filter   
      
<< >>

I've discovered this by just looking through code of Iridium
I'm using Jet Brains Resharper it makes attention on some code reundancies, for example - only assigned but never used variables, like in this occurence:

// swap in order to have <c>c1.Count <= c2.Count</c>

if(c1.Count > c2.Count)

{

    ICollection c1Bis = c1;

    c1 = c2;

    c2 = c1;

}


Somehow I guess this shouldn't swap collections as expected;)

     StupidBug.patch
 
 
 
Comments (1)Attachments (1)Issue Links (0)History

Christoph Rüegg  

26/04/2008 14:47:40 * CLOSING COMMENT *

Fixed in revision 429

 

 

Issue ID IRID-127
Type Bug Bug
Priority Low Low
Severity Trivial Trivial
Visibility Everyone 
Assigned To Christoph Rüegg 
Reported By * Anonymous User * 
Component Core 
Fixed For Version [2008.8.16.470] 2008 August (2008.8.16.470) 
Affected Versions  
Risk Level No Risk 
Status Closed Closed   
Resolution Complete   
Start Date ? 
Due Date ? 
Votes 0  
 Print Friendly