Inefficient use of keySet iterator instead of entrySet iterator
commita5ead05ede94f050aba75e129a3742a5e7c2dac9
authorYann Simon <yann.simon.fr@gmail.com>
Thu, 19 Mar 2009 09:17:56 +0000 (19 10:17 +0100)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 19 Mar 2009 16:17:23 +0000 (19 09:17 -0700)
tree092a428c912ab1ad3c3132300b55ceeb15cc0dc5
parent14896978943214fd3287bdb957434e5c8cd57bc7
Inefficient use of keySet iterator instead of entrySet iterator

From FindBugs:
This method accesses the value of a Map entry, using a key that
was retrieved from a keySet iterator. It is more efficient to use
an iterator on the entrySet of the map, to avoid the Map.get(key)
lookup.

Signed-off-by: Yann Simon <yann.simon.fr@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/lib/ObjectIdMap.java
org.spearce.jgit/src/org/spearce/jgit/transport/AmazonS3.java