8255675: Typo in java.net.HttpURLConnection
Reviewed-by: chegar
This commit is contained in:
parent
5ed704484e
commit
895cc4f0a2
@ -511,7 +511,7 @@ public abstract class HttpURLConnection extends URLConnection {
|
|||||||
*/
|
*/
|
||||||
public int getResponseCode() throws IOException {
|
public int getResponseCode() throws IOException {
|
||||||
/*
|
/*
|
||||||
* We're got the response code already
|
* We've got the response code already
|
||||||
*/
|
*/
|
||||||
if (responseCode != -1) {
|
if (responseCode != -1) {
|
||||||
return responseCode;
|
return responseCode;
|
||||||
@ -530,7 +530,7 @@ public abstract class HttpURLConnection extends URLConnection {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If we can't a status-line then re-throw any exception
|
* If we can't find a status-line then re-throw any exception
|
||||||
* that getInputStream threw.
|
* that getInputStream threw.
|
||||||
*/
|
*/
|
||||||
String statusLine = getHeaderField(0);
|
String statusLine = getHeaderField(0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user