Re: Request for Review 6882594

2009-09-18 Thread Alan Bateman
Christopher Hegarty - Sun Microsystems Ireland wrote: On 17/09/2009 21:18, Alan Bateman wrote: Christopher Hegarty -Sun Microsystems Ireland wrote: Max (Weijun) Wang wrote: HttpURLConnection.java: I think "if (authScheme.equals(BASIC))" can be written as "authScheme == BASIC", and possibl

Re: Request for Review 6882594

2009-09-18 Thread Christopher Hegarty - Sun Microsystems Ireland
On 17/09/2009 21:18, Alan Bateman wrote: Christopher Hegarty -Sun Microsystems Ireland wrote: Max (Weijun) Wang wrote: HttpURLConnection.java: I think "if (authScheme.equals(BASIC))" can be written as "authScheme == BASIC", and possibly you can use switch/case in several places Thanks M

Re: Request for Review 6882594

2009-09-17 Thread Alan Bateman
Christopher Hegarty -Sun Microsystems Ireland wrote: Max (Weijun) Wang wrote: HttpURLConnection.java: I think "if (authScheme.equals(BASIC))" can be written as "authScheme == BASIC", and possibly you can use switch/case in several places Thanks Max, these changes certainly make the code

Re: Request for Review 6882594

2009-09-17 Thread Christopher Hegarty -Sun Microsystems Ireland
Max (Weijun) Wang wrote: HttpURLConnection.java: I think "if (authScheme.equals(BASIC))" can be written as "authScheme == BASIC", and possibly you can use switch/case in several places Thanks Max, these changes certainly make the code more readable. Updated webrev can be found at: http:

Re: Request for Review 6882594

2009-09-17 Thread Max (Weijun) Wang
HttpURLConnection.java: I think "if (authScheme.equals(BASIC))" can be written as "authScheme == BASIC", and possibly you can use switch/case in several places Thanks Max On Sep 17, 2009, at 6:55 PM, Christopher Hegarty -Sun Microsystems Ireland wrote: I removed the use of char (sch

Re: Request for Review 6882594

2009-09-17 Thread Christopher Hegarty -Sun Microsystems Ireland
I removed the use of char (schemeId) completed and replaced it the the new AuthScheme enum. This makes the code much cleaner. Thanks Max and Alan for this suggestion. Updated webrev can be found at: http://cr.openjdk.java.net/~chegar/6882594/webrev.1/webrev/ Thanks, -Chris. Christopher Hega

Request for Review 6882594

2009-09-16 Thread Christopher Hegarty - Sun Microsystems Ireland
Hi Jessie, Michael, Alan, 6882594: Remove static dependency on NTLM authentication Webrev: http://cr.openjdk.java.net/~chegar/6882594/webrev.0 The HTTP client implementation (sun.net.www.protocol.http.HttpURLConnection) loads the NTLM Authentication classes even if no authentication is used