8255675: Typo in java.net.HttpURLConnection

Reviewed-by: chegar
This commit is contained in:
ANUPAM DEV 2020-11-23 12:08:47 +00:00 committed by Julia Boes
parent 5ed704484e
commit 895cc4f0a2

View File

@ -511,7 +511,7 @@ public abstract class HttpURLConnection extends URLConnection {
*/
public int getResponseCode() throws IOException {
/*
* We're got the response code already
* We've got the response code already
*/
if (responseCode != -1) {
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.
*/
String statusLine = getHeaderField(0);