Bug 161967 - Map.keySet() can be replaced with Map.entrySet() when value is used
Summary: Map.keySet() can be replaced with Map.entrySet() when value is used
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 M3   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2006-10-23 11:33 EDT by Olivier Thomann CLA
Modified: 2006-10-30 06:39 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Thomann CLA 2006-10-23 11:33:13 EDT
When iterating over map.keySet(), if the value is retrieved in the loop, then using entrySet() is more efficient.
Comment 1 Olivier Thomann CLA 2006-10-23 22:50:38 EDT
Released for 3.3M3.
Comment 2 David Audel CLA 2006-10-30 06:39:00 EST
Verified for 3.3 M3 using build I20061030-0010