ASF Bugzilla – Attachment 33217 Details for
Bug 58545
WsHandshakeRequest inefficient use of keySet
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Replaces inefficient use of keySet() with more efficient entrySet()
WsHandshakeRequest.patch (text/plain), 940 bytes, created by
Anthony Whitford
on 2015-10-25 22:49:41 UTC
(
hide
)
Description:
Replaces inefficient use of keySet() with more efficient entrySet()
Filename:
MIME Type:
Creator:
Anthony Whitford
Created:
2015-10-25 22:49:41 UTC
Size:
940 bytes
patch
obsolete
>Index: java/org/apache/tomcat/websocket/server/WsHandshakeRequest.java >=================================================================== >--- java/org/apache/tomcat/websocket/server/WsHandshakeRequest.java (revision 1710467) >+++ java/org/apache/tomcat/websocket/server/WsHandshakeRequest.java (working copy) >@@ -76,10 +76,11 @@ > Collections.unmodifiableList( > Arrays.asList(entry.getValue()))); > } >- for (String pathName : pathParams.keySet()) { >+ for (Entry<String,String> entry : pathParams.entrySet()) { >+ final String pathName = entry.getKey(); > newParameters.put(pathName, > Collections.unmodifiableList( >- Arrays.asList(pathParams.get(pathName)))); >+ Arrays.asList(entry.getValue()))); > } > parameterMap = Collections.unmodifiableMap(newParameters); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 58545
: 33217