tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 48551] New: StringCache: Use entrySet() rather than keySet() + get()
Date Fri, 15 Jan 2010 03:23:44 GMT

           Summary: StringCache: Use entrySet() rather than keySet() +
           Product: Tomcat 7
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Catalina

Created an attachment (id=24846)
 --> (
Replace keySet() + get(key) with entrySet()

Using entrySet() to iterate over a map is faster than using keySet() followed
by get(key).

Sample patch attached.

There are quite a few other examples elsewhere in the Tomcat code.
I can provide patches for those if required.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message