The changes look good to me.

Mandy Chung wrote:
6819122: DefaultProxySelector should lazily initialize the Pattern object and the NonProxyInfo objects

Webrev at:
 http://cr.openjdk.java.net/~mchung/6819122/webrev.00/

Details:
1. The Pattern object is only used for checking a IPv6 loopback address. The current fix is to create a Pattern object for every check instead of caching it. The other alternative is to cache the Pattern object at the first time it is needed. Do you believe typically applications will hit this path frequently such that caching the Pattern object is needed? 2. Move the static NonProxyInfo fields into the NonProxyInfo classes so that they will only be initialized when it is needed.

Thanks
Mandy

begin:vcard
fn:Jean-Christophe Collet
n:Collet;Jean-Christophe
org:Sun Microsystems
adr:;;2 rue de Jargonnant;Geneva;;1207;Switzerland
email;internet:jean-christophe.col...@sun.com
title:Staff Engineer
x-mozilla-html:FALSE
version:2.1
end:vcard

Reply via email to