[infinispan-dev] Perhaps a bogus sentence in BoundedConcurrentHashMap.containsValue()?

"이희승 (Trustin Lee)" trustin at gmail.com
Wed Oct 20 06:44:01 EDT 2010


In BoundedConcurrentHashMap.containsValue(), there are three assignments
whose left-side variable isn't accessed at all:

   1) int sum = 0;
   2) int c = segments[i].count;
   3) int c = segments[i].count; (same with 2 but in a different place)

The first one is apparently safe to remove but I'm not sure about the
others.  Is there any reason to retain them, or can we remove them simply?

-- 
Trustin Lee - http://gleamynode.net/


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 290 bytes
Desc: OpenPGP digital signature
Url : http://lists.jboss.org/pipermail/infinispan-dev/attachments/20101020/b482eef5/attachment-0001.bin 


More information about the infinispan-dev mailing list